Module: sip-router
Branch: master
Commit: a684e393bce00a89c9aa66647472b56dea567c2e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a684e39…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri Jan 27 04:53:47 2012 +0200
modules_k/siputils: allow use of is_uri_user_e164() from any route.
---
modules_k/siputils/README | 2 +-
modules_k/siputils/doc/siputils_admin.xml | 2 +-
modules_k/siputils/siputils.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/siputils/README b/modules_k/siputils/README
index 87b30b1..91335cb 100644
--- a/modules_k/siputils/README
+++ b/modules_k/siputils/README
@@ -547,7 +547,7 @@ if (is_e164("$avp(i:705)") {
Checks if userpart of URI stored in pseudo variable is E164 number.
- This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
+ This function can be used from ANY_ROUTE.
Example 1.19. is_uri_user_e164 usage
...
diff --git a/modules_k/siputils/doc/siputils_admin.xml
b/modules_k/siputils/doc/siputils_admin.xml
index dd7a4ae..06eb130 100644
--- a/modules_k/siputils/doc/siputils_admin.xml
+++ b/modules_k/siputils/doc/siputils_admin.xml
@@ -560,7 +560,7 @@ if (is_e164("$avp(i:705)") {
E164 number.
</para>
<para>
- This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>is_uri_user_e164</function> usage</title>
diff --git a/modules_k/siputils/siputils.c b/modules_k/siputils/siputils.c
index b5c9806..e82be24 100644
--- a/modules_k/siputils/siputils.c
+++ b/modules_k/siputils/siputils.c
@@ -133,7 +133,7 @@ static cmd_export_t cmds[]={
{"is_e164", (cmd_function)is_e164, 1, fixup_pvar_null,
fixup_free_pvar_null, REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE},
{"is_uri_user_e164", (cmd_function)w_is_uri_user_e164, 1, fixup_pvar_null,
- fixup_free_pvar_null, REQUEST_ROUTE|FAILURE_ROUTE|LOCAL_ROUTE},
+ fixup_free_pvar_null, ANY_ROUTE},
{"encode_contact", (cmd_function)encode_contact, 2, 0,
0, REQUEST_ROUTE|ONREPLY_ROUTE},
{"decode_contact", (cmd_function)decode_contact, 0, 0,