On 19 Jan 2015, at 21:42, mail@sathees.co.uk <mahan.sathees@gmail.com> wrote:

kamailio passing DDI to asterisk, but its sending to wrong context.

 

 If any of the sip users is registered, the calls were sending to registered user context. If no sip user is online then calls has been send to kamailio-trunk. How can I get all DDI to kamailio-trunk?  How can I solve this problem?


THis is an Asterisk problem. Turn on SIP debugging in Asterisk and Asterisk will tell you how it matches an incoming request
to your list of peers and users, and selects incoming context based on that. Based on that you can fix your sip.conf to 
always match the proper peer and thus get the calls to the context you want.

/Olle