[SR-Users] Trouble with Asterisk behind Kamailio

Tickling Contest tickling.contest at gmail.com
Wed Jul 20 22:37:42 CEST 2016


Hello,

I am following the instructions in
http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
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:

(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).
(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?):

!ifdef WITH_ASTERISK
asterisk.bindip = "192.168.1.102" desc "Asterisk IP Address"
asterisk.bindport = "5060" desc "Asterisk Port"
kamailio.bindip = "192.168.1.101" desc "Kamailio IP Address"
kamailio.bindport = "5060" desc "Kamailio Port"

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?

Any help is appreciated. My entire /etc/kamailio/kamailio.cfg file is in
here:
https://gist.github.com/ticklingcontest/c7437dbc2d8e838834ee4d852753f254. I
am using Kamailio 4.0.4 with Asterisk 13.7.2 using TCP for PJSIP.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160720/87002ad7/attachment.html>


More information about the sr-users mailing list