Module: sip-router
Branch: master
Commit: 3a1be374d4575e91ba7196db77813df836d98f99
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3a1be37…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Feb 26 20:25:29 2011 +0100
siputils: several functions updated to ANY_ROUTE
- has_totag() and comparison of uri or aor can work for requests and
reply routes
---
modules_k/siputils/siputils.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/siputils/siputils.c b/modules_k/siputils/siputils.c
index 1eace83..3b31ad0 100644
--- a/modules_k/siputils/siputils.c
+++ b/modules_k/siputils/siputils.c
@@ -116,7 +116,7 @@ static cmd_export_t cmds[]={
{"ring_insert_callid", (cmd_function)ring_insert_callid, 0, ring_fixup, 0,
REQUEST_ROUTE|FAILURE_ROUTE},
{"options_reply", (cmd_function)opt_reply, 0, 0, 0, REQUEST_ROUTE},
{"is_user", (cmd_function)is_user, 1, fixup_str_null, 0,
REQUEST_ROUTE|LOCAL_ROUTE},
- {"has_totag", (cmd_function)has_totag, 0, 0, 0,
REQUEST_ROUTE|LOCAL_ROUTE},
+ {"has_totag", (cmd_function)has_totag, 0, 0, 0, ANY_ROUTE},
{"uri_param", (cmd_function)uri_param_1, 1, fixup_str_null, 0,
REQUEST_ROUTE|LOCAL_ROUTE},
{"uri_param", (cmd_function)uri_param_2, 2, fixup_str_str, 0,
REQUEST_ROUTE|LOCAL_ROUTE},
{"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null, 0,
REQUEST_ROUTE},
@@ -128,10 +128,10 @@ static cmd_export_t cmds[]={
{"decode_contact_header",
(cmd_function)decode_contact_header,0,0,0,REQUEST_ROUTE|ONREPLY_ROUTE},
{"cmp_uri", (cmd_function)w_cmp_uri, 2,
fixup_spve_spve, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"cmp_aor", (cmd_function)w_cmp_aor, 2,
fixup_spve_spve, 0,
- REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},
+ ANY_ROUTE},
{"is_rpid_user_e164", (cmd_function)is_rpid_user_e164, 0, 0,
0, REQUEST_ROUTE},
{"append_rpid_hf", (cmd_function)append_rpid_hf, 0, 0,