Hi need some help please,

 

kamailio v-4.2.2

asterisk 13.1

 

;#### sip.conf

[general]

context=incoming calls    

allowguest=yes                                      

bindport=5080                                     

bindaddr=192.168.1.77                                    

rtcachefriends=yes

                                                                       

                                                                       

[kamailio]

type=friend

host=192.168.1.77

port=5060

context=kamailio-trunk

canreinvite=no

insecure=port,invite

dtmfmode=rfc2833

nat=force_rport,comedia

qualify=yes

 

i have followed this tutorial

http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

 

My DDI provider sending call to ip address via DDNS.

DDI à DDNS à kamailio & asterisk in one server [192.168.1.77]. 

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?

 

Many thanks

Sathees