Browse code

etc/kamailio.cfg: add return to root blocks

- make it more explicit for returned code

Daniel-Constantin Mierla authored on 24/03/2022 10:10:32
Showing 1 changed files
... ...
@@ -567,6 +567,8 @@ request_route {
567 567
 
568 568
 	# user location service
569 569
 	route(LOCATION);
570
+
571
+	return;
570 572
 }
571 573
 
572 574
 # Wrapper for relaying requests
... ...
@@ -1002,6 +1004,7 @@ route[TOVOICEMAIL] {
1002 1004
 branch_route[MANAGE_BRANCH] {
1003 1005
 	xdbg("new branch [$T_branch_idx] to $ru\n");
1004 1006
 	route(NATMANAGE);
1007
+	return;
1005 1008
 }
1006 1009
 
1007 1010
 # Manage incoming replies
... ...
@@ -1010,6 +1013,7 @@ reply_route {
1010 1013
 		xlog("Malformed SIP response from $si:$sp\n");
1011 1014
 		drop;
1012 1015
 	}
1016
+	return;
1013 1017
 }
1014 1018
 
1015 1019
 # Manage incoming replies in transaction context
... ...
@@ -1018,6 +1022,7 @@ onreply_route[MANAGE_REPLY] {
1018 1022
 	if(status=~"[12][0-9][0-9]") {
1019 1023
 		route(NATMANAGE);
1020 1024
 	}
1025
+	return;
1021 1026
 }
1022 1027
 
1023 1028
 # Manage failure routing cases
... ...
@@ -1051,4 +1056,5 @@ failure_route[MANAGE_FAILURE] {
1051 1056
 		exit;
1052 1057
 	}
1053 1058
 #!endif
1059
+	return;
1054 1060
 }