[asterisk-users] Experimenting- Sip dialing with Zap

James FitzGibbon james.fitzgibbon at gmail.com
Thu Aug 16 11:49:16 CDT 2007


On 8/16/07, John Meksavan <jmeksavan at hotmail.com> wrote:
>
> CLI.  What am I doing wrong? Thanks in advance.


The channel spec you need to use is:

Dial(Zap/g0/${EXTEN:1})

not

Dial({Zap/g0/{EXTEN:1})

Though bear in mind that the :1 is removing the first char of your
extension, so if you dial '123' on your Linksys, you'll dial '23' out your
analog line, which is unlikely to be what you want to do if said line is
connected to the PSTN.  It's more typical to see something like

exten => _9NXXNXXXXXX,1,Dial(Zap/g0/${EXTEN:1})

which matches a 10 digit local number prefixed by nine, but removes the
leading 9 (using :1) because it's not needed (or wanted) by the telco.

-- 
j.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070816/dc6ecaff/attachment.htm 


More information about the asterisk-users mailing list