Re: [SR-Users] Nat problems

2011-09-12 Thread Daniel-Constantin Mierla
Hello, On 9/7/11 12:49 AM, David Zambrano wrote: Ok so It now includes the record-route but its still not modifying the contact header and the problem persists. ¿Any suggestions as to how to do that? for updating the contact header you have to use nathelper module with fix_natted_contact().

[SR-Users] Nat problems

2011-09-02 Thread David Zambrano
Hi Ive been trying to configure kamailio as a loadbalancer between two transcoders that afterwards send all calls to a softswitch but I currently have two problems. My first and most important one is a NAT problem or so I think. All calls in UDP work perfectly but when dealing with calls in TCP

Re: [SR-Users] Nat problems

2011-09-02 Thread Andrew Pogrebennyk
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

Re: [SR-Users] Nat problems

2011-09-02 Thread David Zambrano
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

Re: [SR-Users] Nat problems

2011-09-02 Thread David Zambrano
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,

Re: [SR-Users] Nat problems

2011-09-02 Thread Andrew Pogrebennyk
On 09/02/2011 10:33 PM, David Zambrano wrote: Hi andrew. Thanks for your help. What module or config should I use to make sure the connection goes back through the loadbalancer? That's simply the task for record-route like: if (is_method(INVITE)) record_route(); But you also need the

Re: [SR-Users] Nat problems

2011-09-02 Thread David Zambrano
Thanks Andrew Ill deal with the ping config once I resolve the route problem. So now this is my config: route{ if (method != REGISTER) loose_route(); if (is_method(INVITE)) record_route(); ds_select_dst(2, 4); t_relay(); } Now I can see in the sip headers