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,15 +481,15 @@ route {
}
# Terminating
if (uri=~"sip:(.*)@"+NETWORKNAME_ESC +"(.*)" || uri == myself || uri =~ "tel:.*") {
if (uri == myself || uri =~ "tel:.*") {
if (!term_impu_registered("location")) {
xlog("L_DBG", "We need to do an UNREG server SAR assignemnt");
assign_server_unreg("UNREG_SAR_REPLY", "location", "term");
exit;
}
} else {
sl_send_reply("403","Forbidden - Domain not served");
exit();
sl_send_reply("403","Forbidden - Domain not served");
exit();
}
}
route(term);
break;
@@ -1058,7 +1058,7 @@ route[term]
route[FINAL_TERM] {
if (lookup("location")) {
if ((uri=~"sip:(.*)@"+NETWORKNAME_ESC+"(.*)") || uri==myself) {
if (uri==myself) {
if (!t_newtran()) {
sl_reply_error();
exit;
@@ -1137,7 +1137,7 @@ failure_route[isc_term_failure]
}
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");
exit;
}