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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users