Hi

I have two phone numbers from my SIP provider sippro.com, say 1111 and 2222. I use two sip.conf entries to register this phone numbers:

register => 1111:[EMAIL PROTECTED]/1111
register => 2222:[EMAIL PROTECTED]/2222

[1111]
type=friend
username=1111
secret=pass
insecure=very
host= sip.sippro.com
context=incoming-1111

[2222]
type=friend
username=2222
secret=pass
insecure=very
host=sip.sippro.com
context=incoming-2222

Now, from my dialplan I can use them to do outgoing calls, like Dial(SIP/[EMAIL PROTECTED]). That works pretty fine. The problem are incoming calls. According to [1] asterisk should lookup a match in sip.conf when somebody (outside sippro.com) calls 1111 or 2222. For example, a call to 1111 should look for a extension in context 'incoming-1111'. A call for 2222 should go to context incoming-2222. But in the above scenario, asterisk always gets a match on '2222'. As a result, context 'incoming-2222' is always used.

How does asterisk search for a match in sip,conf for incoming calls and how can I get it to use the context specified in the account settings?

1. http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf
_______________________________________________
--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