[Asterisk-Users] SIP question
Benjamin Lawetz
blawetz at teliphone.ca
Fri Feb 3 11:59:21 MST 2006
I'd change your definition to something like
[providerX]
context=providerX-inbound
host=11.222.222.23
in your providerX-inbound context you can match the different extensions
[providerX-inbound]
exten => 5149075555,1,NoOp(5149075555)
exten => 5555555555,1,NoOp(5555555555)
Now a question I've always wondered, What if providerX uses multiple IPs. Is
there any way to specify a range of IPs for the "host" in sip.conf ?
So far I've had to make a sip entry for each IP my provider uses.
Thanks
Ben
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Michaël
Gaudette
Sent: February 3, 2006 12:47 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] SIP question
Hi,
I have a provider sending me data through SIP, but with no registration.
(there are constraints that forces us to work like this). And, as far as I
am concerned, that's fine.
Here is the relevant portion of my SIP.conf file.
[5149075555]
context=5149075555-inbound
type=friend
host=11.222.222.23
language=fr
disallow=all
allow=ulaw
dtmf=rcf2833
Basically, I understand that I am saying everything coming in from
11.222.222.23 should be sent to the context 5149075555-inbound. Right?
If it is, how do I ask this provider for another DID, let`s say
555-555-5555, and send those calls ina different context (let`s say
5555555555-inbound)???
There doesn't seem to be a way of differenciating between calls meant for
5149075555 and 5555555555, since they both come in from the same provider
(hence same IP address). What am I missing to treat those calls
differently?
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060203/618fdb17/attachment.htm
More information about the asterisk-users
mailing list