[VoIP] Zaptel end-of-dialing

Shane Young voiptandem at shaneyoung.com
Thu Sep 6 13:20:16 CDT 2007


Build your extension with a trailing #

exten => _NXXNXXXXXX,1,Macro(foo)
exten => _NXXXXXX,1,Macro(foo)
exten => _NXXXXXX#,1,Macro(foo)



This will dial immediately after 10 digits
It will wait for addtional digits on the 7th digit and dial after the  
timer expires.

It will dial immediately after 7 digits and the #.

The rest of your logic will need to strip the # off the end, as that  
will be part of the dialed number.

You could do something like
exten => _X.,1,Macro(foo)
exten => _X.#,1,Macro(foo)

This would require one or more digits with no screening of digits  
dialed and will either time out or wait for the # and dial immediately.


I have my dialplan on my home system built in such a way that it  
always knows when correct number of digits is reached, just like a  
normal PSTN swich.

For example, it knows if I dial 612 (my area code) or any other  
"local" NPA (763,651,952) it needs to wait for 7 more digits.
N11 will fire after the second "1"

Any other number beginning with "N" will fire immediately after  
receiving the 7th digits.

Toll calls are always dialed as 1+ and expects 10 digits after the 1.




If I dial 821



Quoting Greg Blakely <greg at vyger.net>:

> A purely zapata-related question:
>
> Does anyone know of a way to tell asterisk that we're done sending
> digits?  On the real-world PSTN, the # sign works for that purpose, and
> many IP phones have a "dial" button.
>
> So, I have to think that there would be a way, through extensions.conf,
> or a patch, to send a call along its way once the # sign is hit.
>
> Anyone know?
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>

--Shane
+1-821-7311 CNET




More information about the VoIP mailing list