Module: sip-router
Branch: master
Commit: 90c3fc80b5307584e2bc31b5d81b937200a3a54b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=90c3fc8…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri Apr 22 13:59:09 2011 +0300
modules_k/siputils: allow tel2sip call also in branch route
---
modules_k/siputils/README | 4 ++--
modules_k/siputils/doc/siputils_admin.xml | 2 +-
modules_k/siputils/siputils.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules_k/siputils/README b/modules_k/siputils/README
index 73c760c..8dd3963 100644
--- a/modules_k/siputils/README
+++ b/modules_k/siputils/README
@@ -508,8 +508,8 @@ add_uri_param("nat=yes");
The SIP URI hostpart is taken from second param (pseudo variable or
string).
- This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, or
- ONREPLY_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
+ BRANCH_ROUTE, or ONREPLY_ROUTE.
Example 1.17. tel2sip usage
...
diff --git a/modules_k/siputils/doc/siputils_admin.xml
b/modules_k/siputils/doc/siputils_admin.xml
index 8ae86c2..323a55f 100644
--- a/modules_k/siputils/doc/siputils_admin.xml
+++ b/modules_k/siputils/doc/siputils_admin.xml
@@ -503,7 +503,7 @@ add_uri_param("nat=yes");
</para>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
- or ONREPLY_ROUTE.
+ BRANCH_ROUTE, or ONREPLY_ROUTE.
</para>
<example>
<title><function>tel2sip</function> usage</title>
diff --git a/modules_k/siputils/siputils.c b/modules_k/siputils/siputils.c
index 104af17..e018b14 100644
--- a/modules_k/siputils/siputils.c
+++ b/modules_k/siputils/siputils.c
@@ -129,7 +129,7 @@ static cmd_export_t cmds[]={
{"add_uri_param", (cmd_function)add_uri_param, 1, fixup_str_null,
0, REQUEST_ROUTE},
{"tel2sip", (cmd_function)tel2sip, 3, fixup_tel2sip, 0,
- REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
+ REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|ONREPLY_ROUTE},
{"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)is_uri_user_e164, 1, fixup_pvar_null,
@@ -139,7 +139,7 @@ static cmd_export_t cmds[]={
{"decode_contact", (cmd_function)decode_contact, 0, 0,
0, REQUEST_ROUTE},
{"decode_contact_header", (cmd_function)decode_contact_header, 0, 0,
- 0,REQUEST_ROUTE|ONREPLY_ROUTE},
+ 0,REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE},
{"cmp_uri", (cmd_function)w_cmp_uri, 2, fixup_spve_spve,
0, ANY_ROUTE},
{"cmp_aor", (cmd_function)w_cmp_aor, 2, fixup_spve_spve,