[Asterisk-Users] Dial via sip gateway?
Greg Hill
gregh-asterisk at hillnet.us
Sun Feb 1 12:48:57 MST 2004
On Sun, 1 Feb 2004, Greg Hill wrote:
<snip>
> So try something like this in extensions.conf:
> exten => 101,1,Dial(SIP/<number>@mediatrixport1)
> exten => 102,1,Dial(SIP/<number>@mediatrixport2)
> exten => 103,1,Dial(SIP/<number>@mediatrixport3)
> exten => 104,1,Dial(SIP/<number>@mediatrixport4)
Oops, maybe I should have written these extensions to be more like this:
exten => _9NXXXXXX,1,Dial(SIP/${EXTEN:1}@mediatrixport1)
exten => _8NXXXXXX,1,Dial(SIP/${EXTEN:1}@mediatrixport2)
exten => _7NXXXXXX,1,Dial(SIP/${EXTEN:1}@mediatrixport3)
exten => _6NXXXXXX,1,Dial(SIP/${EXTEN:1}@mediatrixport4)
so that you can choose which port you'll dial out on by prefixing your
number with 9/8/7/6.
Greg
More information about the asterisk-users
mailing list