On Fri, Sep 30, 2016 at 10:29:16PM +0530, Infinicalls Infinicalls wrote:
Hi Daniel, This seems to be ideal setup for my requirement. Would you mind sharing the kamailio.cfg file with me (with all the important data masked) ?
Not much important stuff to censor. LBIPADDR is the ipadress of the machine itself. REGISTRARNET/30 is the net of the backend machines. The dispatcher.list contains the backend registrars
The backend is essentially the default config (with an always on rtpengine) with the following additions: You need to enable path.so and set modparam("path", "use_received", 1)
Tell the registrar module to use path (path_mode 1 fixes you 420 problem): modparam("registrar", "use_path", 1) modparam("registrar", "path_mode", 1) modparam("registrar", "path_use_received", 1)
If you want to send keepalives from the registrar to the enduser: modparam("nathelper", "ping_nated_only", 0) modparam("nathelper", "udpping_from_path", 1) the loadbalancer config has a little blurb about relaying the sipping from the backend manually using the path header. But I'd advice to ping from the an external process to have better control (eg sipsak)
Hi Daniel, Thanks very much. But I still couldn't get the system working. I get the following errors :
Oct 5 06:05:03 infinicalls-proxy1 /usr/local/sbin/kamailio[4840]: ERROR: dispatcher [dispatcher.c:788]: ds_warn_fixup(): failover functions used, but required AVP parameters are NULL -- feature disabled
and also
5 06:05:03 infinicalls-proxy1 /usr/local/sbin/kamailio[4840]: ERROR: <core> [udp_server.c:367]: udp_init(): bind(7, 0x7f2a8fe6bf74, 16) on 52.233.25.164: Cannot assign requested address
And I am not sure how to solve this. I tried changing almost all the parameters but didn't work.
Can somebody help me. Thanks.
regards Ganesh Kumar
On Wed, Oct 05, 2016 at 11:40:49AM +0530, Infinicalls Infinicalls wrote:
Oct 5 06:05:03 infinicalls-proxy1 /usr/local/sbin/kamailio[4840]: ERROR: dispatcher [dispatcher.c:788]: ds_warn_fixup(): failover functions used, but required AVP parameters are NULL -- feature disabled
In an other mail you mention using failover mode 2. The error indicates you need to define some avp to store store the failover mechanism, see http://www.kamailio.org/docs/modules/4.3.x/modules/dispatcher.html#dispatche... and the next entry:
"You must set this parameter if you want to do load balancing fail over."
5 06:05:03 infinicalls-proxy1 /usr/local/sbin/kamailio[4840]: ERROR: <core> [udp_server.c:367]: udp_init(): bind(7, 0x7f2a8fe6bf74, 16) on 52.233.25.164: Cannot assign requested address
You mentioned in an other mail the/a machine behind nat. Is the address 52.233.25.164 a local address configured? If yes, I have no idea what is wrong. Otherwise you need to use: listen=udp:PRIVATEIP:5060 advertise PUBLICIP:5060
Hi, This problem looked strange, as even with the local IP, it throws the same error.
listen=udp:PRIVATEIP:5060 advertise PUBLICIP:5060
also throws the same error, as before. I am not sure what is wrong. But by searching some posts here, I was advised to comment out the line. And it worked. Kamailio compiled successfully without errors.
But without this line, I am not sure how to enable TLS later.
thanks Ganesh Kumar
5 06:05:03 infinicalls-proxy1 /usr/local/sbin/kamailio[4840]: ERROR: <core> [udp_server.c:367]: udp_init(): bind(7, 0x7f2a8fe6bf74, 16) on 52.233.25.164: Cannot assign requested address
You mentioned in an other mail the/a machine behind nat. Is the address 52.233.25.164 a local address configured? If yes, I have no idea what is wrong. Otherwise you need to use: listen=udp:PRIVATEIP:5060 advertise PUBLICIP:5060