[Asterisk-Users] Dial via sip gateway?
Rich Adamson
radamson at routers.com
Sun Feb 1 13:14:12 MST 2004
Greg,
> > 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.
I don't believe the above will work. There is only one IP address for the box,
and no way that I've found to send a sip packet to the box with "additional"
information that would suggest using port 1 vs port 2. From what others have
hinted at (and it seems the majority of us are limited either to what's printed
or experimentation), the 1204 has an internal function that kind of resembles
a trunk group. "It" decides which port to use.
As mentioned previously, the sip "register" function in the box is inop in
both directions, therefore there does not seem to be a way to address the
ports through contexts or anything else. Mediatrix has provided the mib
variables where one can enter a different password for each port, but that
has no value either since the register function doesn't work.
You've sort of touched on a method that might work, by prefixing called numbers
with a digit, then strip it in the 1204, etc. However, when you think that
process through for anything other than the simpliest of cases, it creates
a fairly major dialplan management issue. For the price of the box, think
I'll delay the purchase for now.
Rich
More information about the asterisk-users
mailing list