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