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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michaƫl Gaudette
Sent: February 3, 2006 12:47 PM
To: [email protected]
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
 
 
 
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to