Hello Everyone,
Here updated version. Trying remove Record-Route after the
coma.
My log shows
Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: INFO:
<script>: [SUBSCRIBE], Inbound connection from
<Client Public IP>
Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: ERROR:
<script>: <null>
Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: INFO:
<script>: [SUBSCRIBE], Route for removal: '<null>'
route snippet.
route[ROUTE_HDR_ORG] {
# Getting record routes
if(is_present_hf("Route")) {
xlog("L_INFO", "[$rm], Inbound connection from
<$si>\n");
if(is_method("SUBSCRIBE")) {
if(is_ip_rfc1918($si)) {
xlog(
"$sel(@hf_value.Record_Route[-1])");
xlog("L_INFO", "[$rm], Route
for removal: '$sel(@hf_value.Record_Route[-1])'\n");
remove_hf_value("Record-Route[-1]");
} else {
xlog(
"$sel(@hf_value.Record_Route[1])");
xlog("L_INFO", "[$rm], Route
for removal: '$sel(@hf_value.Record_Route[1])'\n");
remove_hf_value("Record-Route[1]");
}
}
}
return;
}
Slava,
Hello Everyone,
I am trying adjust Record-Route, but can't match
headers value
And I am call route(ROUTE_HDR_ORG); right after
route(WITHINDLG);
route[ROUTE_HDR_ORG] {
# Getting record routes
if(is_present_hf("Record-Route")) {
if(is_method("SUBSCRIBE")) {
xlog(
"$sel(@hf_value.Record_Route[1])");
xlog("L_INFO", "[$rm], Route for
removal: '$sel(@hf_value.Record_Route[1])'\n");
remove_hf_value("Record-Route[1]");
}
}
return;
}
Any help Thank you,
Slava.
_______________________________________________
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