[OpenSIPS-Users] dialog replication
volga629 at networklab.ca
volga629 at networklab.ca
Tue Aug 28 12:20:48 EDT 2018
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();
}
}
More information about the Users
mailing list