[SR-Users] Nat problems

David Zambrano dzambrano at gmail.com
Fri Sep 2 23:28:49 CEST 2011


Hi
Heres the config Im using, I was out of the office when I answered the
last email. Its a very very simple config as you can see.

# -- dispatcher params --

modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")
modparam("dispatcher", "flags", 2)

route{
        ds_select_dst("2", "4");
         t_relay();
}



David Zambrano Reyes





On 2 September 2011 15:33, David Zambrano <dzambrano at gmail.com> wrote:
> Hi andrew. Thanks for your help. What module or config should I use to make
> sure the connection goes back through the loadbalancer?
>
> For the failover I didnt specify anything ping related. Im using the
> dispatcher module. Can I specify the ping config in that module or should I
> use another module for that?
>
> On Sep 2, 2011 2:24 PM, "Andrew Pogrebennyk" <apogrebennyk at sipwise.com>
> wrote:
>> On 09/02/2011 08:58 PM, David Zambrano wrote:
>>> After doing some traces
>>> on the network I realized that the transcoder is trying to reach the
>>> router in front of the softphone and skipping the Kamailio
>>> loadbalancer. The call never reaches the softphone so the phonecall
>>> never completes. In UDP exactly the same thing happens, the call skips
>>> the Kamailio loadbalancer but the call completes perfectly fine.
>>
>> Well, you can not open the TCP connection to the client behind NAT. You
>> need to reuse the existing connection created during registration, so
>> the request should go via load balancer by record-route or path. I'm not
>> sure why this works for UDP, probably your router is too permissive in
>> this case :-)
>>
>> Regarding the loadbalancing and failover, I don't understand what is the
>> problem. Could you specify which lb module do you use and preferable
>> post the part of config responsible for failover. I believe you don't
>> need to send request to both transcoders. To skip the transcoder that
>> goes down you need to setup ping checks, if that is the only problem.
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



More information about the sr-users mailing list