Fixes for in-dialog request
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user