Fixes for in-dialog request

This commit is contained in:
herlesupreeth
2021-05-14 13:32:44 +02:00
parent 64288900a0
commit c719c279f1

View File

@@ -481,16 +481,16 @@ route {
} }
# Terminating # Terminating
if (uri=~"sip:(.*)@"+NETWORKNAME_ESC +"(.*)" || uri == myself || uri =~ "tel:.*") { if (uri == myself || uri =~ "tel:.*") {
if (!term_impu_registered("location")) { if (!term_impu_registered("location")) {
xlog("L_DBG", "We need to do an UNREG server SAR assignemnt"); xlog("L_DBG", "We need to do an UNREG server SAR assignemnt");
assign_server_unreg("UNREG_SAR_REPLY", "location", "term"); assign_server_unreg("UNREG_SAR_REPLY", "location", "term");
exit; exit;
}
} else { } else {
sl_send_reply("403","Forbidden - Domain not served"); sl_send_reply("403","Forbidden - Domain not served");
exit(); exit();
} }
}
route(term); route(term);
break; break;
} }
@@ -1058,7 +1058,7 @@ route[term]
route[FINAL_TERM] { route[FINAL_TERM] {
if (lookup("location")) { if (lookup("location")) {
if ((uri=~"sip:(.*)@"+NETWORKNAME_ESC+"(.*)") || uri==myself) { if (uri==myself) {
if (!t_newtran()) { if (!t_newtran()) {
sl_reply_error(); sl_reply_error();
exit; exit;
@@ -1137,7 +1137,7 @@ failure_route[isc_term_failure]
} }
if (lookup("location")) { if (lookup("location")) {
if ((uri=~"sip:(.*)"+NETWORKNAME_ESC+"(.*)") || uri==myself) { if (uri==myself) {
t_reply("404","Not Found - destination user not found on this S-CSCF"); t_reply("404","Not Found - destination user not found on this S-CSCF");
exit; exit;
} }