[Asterisk-Users] Cut leading digit?

Eric Wieling aka ManxPower eric at fnords.org
Mon Aug 22 14:35:13 MST 2005


Derek Whitten wrote:
> try something like this.. the EXTEN:1 strips the leading 8 off
> 
> exten => _8.,s,1,Dial(IAX2/user at provider/${EXTEN:1},60,Ttr)

Not only is the above not a valid extensions.conf line, the poster even 
put Ttr in the sample.  Horrible.

Assuming NANPA dialing, try

exten => _8NXXNXXXXXX,1,Dial(IAX2/user at provider/${EXTEN:1})

See the notes in my .sig about the "r" option to dial.

-- 
Eric Wieling * BTEL Consulting * 504-210-3699 x2120

r: Generate a ringing tone for the calling party, passing no audio from
the called channel(s) until one answers. Use with care and don't insert
this by default into all your dial statements as you are killing call
progress information for the user. Really, you almost certainly do not
want to use this. Asterisk will generate ring tones automatically where
it is appropriate to do so. "r" makes it go the next step and
additionally generate ring tones where it is probably not appropriate to
do so.




More information about the asterisk-users mailing list