Module: kamailio
Branch: master
Commit: 8d5d5a872c0bafa2e591b69fa5d8c17179e1e4a4
URL:
https://github.com/kamailio/kamailio/commit/8d5d5a872c0bafa2e591b69fa5d8c17…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-24T11:10:32+01:00
etc/kamailio.cfg: add return to root blocks
- make it more explicit for returned code
---
Modified: etc/kamailio.cfg
---
Diff:
https://github.com/kamailio/kamailio/commit/8d5d5a872c0bafa2e591b69fa5d8c17…
Patch:
https://github.com/kamailio/kamailio/commit/8d5d5a872c0bafa2e591b69fa5d8c17…
---
diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 56c1ea791e..2333eacacc 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -567,6 +567,8 @@ request_route {
# user location service
route(LOCATION);
+
+ return;
}
# Wrapper for relaying requests
@@ -1002,6 +1004,7 @@ route[TOVOICEMAIL] {
branch_route[MANAGE_BRANCH] {
xdbg("new branch [$T_branch_idx] to $ru\n");
route(NATMANAGE);
+ return;
}
# Manage incoming replies
@@ -1010,6 +1013,7 @@ reply_route {
xlog("Malformed SIP response from $si:$sp\n");
drop;
}
+ return;
}
# Manage incoming replies in transaction context
@@ -1018,6 +1022,7 @@ onreply_route[MANAGE_REPLY] {
if(status=~"[12][0-9][0-9]") {
route(NATMANAGE);
}
+ return;
}
# Manage failure routing cases
@@ -1051,4 +1056,5 @@ failure_route[MANAGE_FAILURE] {
exit;
}
#!endif
+ return;
}