Hi<br><br>I have two phone numbers from my SIP provider <a href="http://sippro.com">sippro.com</a>, say 1111 and 2222. I use two sip.conf entries to register this phone numbers:<br><br>register =&gt; <a href="http://1111:pass@sippro.com/1111">
1111:pass@sippro.com/1111</a><br>register =&gt; <a href="http://2222:pass@sippro.com/2222">2222:pass@sippro.com/2222</a><br><br>[1111]<br>type=friend<br>username=1111<br>secret=pass<br>insecure=very<br>host=<a href="http://sip.sippro.com">
sip.sippro.com</a><br>context=incoming-1111<br><br>[2222]<br>
type=friend<br>
username=2222<br>
secret=pass<br>
insecure=very<br>
host=<a href="http://sip.sippro.com">sip.sippro.com</a><br>
context=incoming-2222<br><br>Now, from my dialplan I can use them to do outgoing calls, like Dial(SIP/9999@1111). That works pretty fine. The problem are incoming calls. According to [1] asterisk should lookup a match in 
sip.conf when somebody (outside <a href="http://sippro.com">sippro.com</a>) 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.
<br><br>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?<br><br>1. <a href="http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf">
http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf</a><br>