Hello,
On 05/12/2016 11:29, Alex Balashov wrote: > Hello, > > On Mon, Dec 05, 2016 at 04:53:55PM +0800, zhang90501 wrote: > >> My kamailio listen at internal ip and external ip(advertise parameter), it >> send message to freeswitch from internal ip and to client from external ip. >> How can I configure my kamailio to auto generate correct record route header? > In principle, Kamailio should do this automatically and no explicit > action on your part should be required, provided that your 'listen=' > statements are indeed as you describe. > > However, do ensure that the following parameter is enabled: > > http://kamailio.org/docs/modules/4.4.x/modules/rr.html#idp20509612 > > as a further hint I would add the forcing of outgoing socket -- be sure the appropriate socket is used for sending out (see force_send_socket() or assignment to $fs). Then all double record-routing should be done automatically. Cheers, Daniel -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com _______________________________________________ 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