[asterisk-users] Update (IAX Trunking Help)

Alejandro Kauffmann akauffma at prodigy.net.mx
Thu Oct 9 21:45:05 CDT 2008


Steve Anness wrote:
> Thanks for the all the help, I have been pulling my hair out
> 
> I now have the trunk working in both directions.  However, how do I add
> voicemail capability?
> 
> 
> exten => _11XXX,1,Dial(iax2/colo/${EXTEN:2},20,Ttr)
> exten => _11XXX,n,Voicemail(${EXTEN:2:3}|su)
> 
> Thinking that if I dialed 11127 and after 20 if there was no answer it would
> dial 327 (but maybe am mistaken about that).  327 is the voicemail box for
> extension 127. 
> 
> Steve Anness 


${EXTEN:2:3} says:

Start with an offset of 2 and dial the next 3 digits.  Offset 0 is the 
first 1, offset 1 is the second 1, and offset 2 is the first X.  This 
will simply dial XXX not substitute the first X for a 3.  You would need 
something like:

exten => _11XXX,n,Voicemail(3${EXTEN:3:2}|su)

Not sure why the mailbox for 127 isn't 127, but you probably have your 
reasons.

Alex



More information about the asterisk-users mailing list