[Asterisk-Users] dialing out to PSTN from SIP phones

Anon asterisk_user at tarottoni.com
Tue May 4 01:58:04 MST 2004


On Saturday 01 May 2004 09:42 pm, Tom Scott wrote:
> okay, will use ${EXTEN}.
>
> it all seems to be working now. I think my problem was
> understanding the flow of control using contexts, but
> i also needed to do some reading on syntax and variables
> -- and more to come.
>
> the working commands that we ended up using are:
>
> [trunklocal]
> exten => _9NXXXXXXXXX,1,StripMSD(1)
> exten => _NXXXXXXXXX,2,Dial(${TRUNK}/${EXTEN})
> exten => _NXXXXXXXXX,3,Congestion

You could make that example shorter:
exten => _NXXXXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _NXXXXXXXXX,2,Congestion

Anon




More information about the asterisk-users mailing list