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?
Cheers David On 2 September 2011 21:17, David Zambrano <dzambr...@gmail.com> wrote: > 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 that it is in fact adding the > record-route properly with the correct ip address of the loadbalancer > and the transport=tcp tag but the problem for incoming calls still > presents itself. The transcoder is still trying to reach the softphone > directly skipping the loadbalancer. Any ideas why would this still > happen? Or did I just screw up the config and oversimplified it? > > Thanks again > > David > > > > > > On 2 September 2011 17:04, Andrew Pogrebennyk <apogreben...@sipwise.com> > wrote: >> 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 loose_route for routing new in-dialog requests. >> >>> 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? >> >> yes, it's in the documentation of dispatcher module: >> http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html#id2806108 >> >>> route{ >>> ds_select_dst("2", "4"); >>> t_relay(); >>> } >> >> well, with such config the chances are that the subsequent BYE may arrive at >> the different server than the INVITE, so again you need the loose_route >> section for this. You should get familiar with the default config file to >> get a feeling of things. >> >> Regards, >> Andrew >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> > _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users