Hi,
I see the INVITE is received and sent out on the same interface :
207.210.246.38:5060, so there is no interface exchange, so no reason for
a double RR.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 08/28/2018 07:20 PM, [email protected] wrote:
Hello Everyone,
What possible cause that dialog is removing Record-Route for second
interface, that cause send call to WAN instead the LAN.
https://paste.fedoraproject.org/paste/XsqlLhO0CYteE3APcVkKpw
route {
if(!has_totag() && is_method("INVITE")) {
create_dialog();
xlog("L_INFO", "Got request on ip addr [$Ri] and call
dir $avp(DLG_dir)\n");
# Wan route
$var(ip_lst) = $shv(vip_wan_lst);
route(SET_SOURCE_SOCKET);
if($avp(DLG_dir)=="topbx") {
switch($(var(req_ip){s.select,3,.})) {
case "38":
set_dlg_sharing_tag("vip1");
xlog("L_INFO", "[$rm] Set dialog tag
vip1 ~> $(var(req_ip){s.select,3,.})\n");
break;
case "39":
set_dlg_sharing_tag("vip2");
xlog("L_INFO", "[$rm] Set dialog tag
vip2 ~> $(var(req_ip){s.select,3,.})\n");
break;
case "40":
set_dlg_sharing_tag("vip3");
xlog("L_INFO", "[$rm] Set dialog tag
vip3 ~> $(var(req_ip){s.select,3,.})\n");
break;
default:
xlog("L_INFO", "[$rm] Unknown last
ocetet ~> $(var(req_ip){s.select,3,.})\n");
}
}
if(!is_method("REGISTER")) {
record_route();
}
}
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users