<div dir="ltr">Hello,<div><br></div><div>I am following the instructions inĀ <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a> to configure my Kamailio and Asterisk (using PJSIP realtime with MySQL). I am able to get Kamailio register the clients (tested with Zoiper softphone), but having trouble getting any further to load balance a couple of Asterisk servers. Here is a range of issues I have:</div><div><br></div><div>(a) The Kamailio server keeps sending UDP SIP messages to the Asterisk server and it is not clear where to control what protocol to use to send SIP messages Asterisk server(s).</div><div>(b) I followed the instructions for the dispatcher module in the wiki, but it is not clear why I should use the #!define WITH_ASTERISK directive to enumerate the bind IPs and ports (how does this reconcile with the list of Asterisk servers in the dispatcher.list file?):</div><div><br></div><div><div>!ifdef WITH_ASTERISK</div><div>asterisk.bindip = "192.168.1.102" desc "Asterisk IP Address"</div><div>asterisk.bindport = "5060" desc "Asterisk Port"</div><div>kamailio.bindip = "192.168.1.101" desc "Kamailio IP Address"</div><div>kamailio.bindport = "5060" desc "Kamailio Port"</div></div><div><br></div><div>Also, where do I specify the protocol to use when sending to the Asterisk servers? Is it auto detected? If so, why is Kamailio not detecting that the Asterisk servers are only listening on TCP?</div><div><br></div><div>Any help is appreciated. My entire /etc/kamailio/kamailio.cfg file is in here: <a href="https://gist.github.com/ticklingcontest/c7437dbc2d8e838834ee4d852753f254">https://gist.github.com/ticklingcontest/c7437dbc2d8e838834ee4d852753f254</a>. I am using Kamailio 4.0.4 with Asterisk 13.7.2 using TCP for PJSIP.</div><div><br></div><div>Thanks!</div><div><br></div></div>