Thanks Daniel
I think i got this solved :)
Record-Route: <sip:LOCALIP;r2=on;lr=on;nat=yes>.
Record-Route: <sip:EXTERNALIP:25060;r2=on;lr=on;nat=yes>.
Cheers!
2016-02-24 9:42 GMT+01:00 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
Hello,
my remark was related to the fact that you may have another
record_route*() function executed in the configuration file for the same
SIP request.
It may be simpler also from routing/security point of view to use
different ports for internal and external communications. E.g., port 5060
for communication with internal and port 5080 for external. The you can do
advertising on the listen with external port:
listen=udp:localip:5060
listen=udp:localip:5080 advertise externip:5080
Then you just need to force the socket to be used before sending out to
use the right port and record_route() will do the rest.
Cheers,
Daniel
On 24/02/16 09:22, Alberto Sagredo wrote:
Hi Daniel
I use it once, i have read about double record routing and it seems in
kamailio only possible if two ips are configured?:
Im using Kamailio behind NAT with advertised address and proxy to an
external provider but i have seen , with Asterisk behind, Record route is
wrong to Asterisk so i plan to change in order to do not lose ACks .
Any idea to do it better ?
BR
2016-02-24 8:56 GMT+01:00 Daniel-Constantin Mierla < <miconda(a)gmail.com>
miconda(a)gmail.com>gt;:
Hello,
can you check in the config and see if there is any other record_route*()
function used?
Cheers,
Daniel
On 23/02/16 18:43, Alberto Sagredo wrote:
Im fancing some issues due to kamailio behind nat and thought double
record route could help me .
But enabling that :
modparam("rr", "enable_double_rr", 1)
And later using
record_route_advertised_address("X.X.X.X:5060");
is giving me this error:
w_record_route_advertised_address(): Double attempt to record-route
Off course, only a single Record Route is present..
What am i doing wrong?
Using Kamailio 4.3.4
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin
Mierlahttp://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, March 7-9, 2016 -
http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin
Mierlahttp://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, March 7-9, 2016 -
http://www.asipto.com