Module: sip-router
Branch: master
Commit: b56094a42d010e1ead64195e3db0c855e49f1cde
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b56094a…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Fri Apr 22 12:25:26 2011 +0300
modules_k/siputils: allow tel2sip call also in failure route.
---
modules_k/siputils/README | 3 ++-
modules_k/siputils/doc/siputils_admin.xml | 3 ++-
modules_k/siputils/siputils.c | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules_k/siputils/README b/modules_k/siputils/README
index 5fae3c7..73c760c 100644
--- a/modules_k/siputils/README
+++ b/modules_k/siputils/README
@@ -508,7 +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 or ONREPLY_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_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 f2135d5..8ae86c2 100644
--- a/modules_k/siputils/doc/siputils_admin.xml
+++ b/modules_k/siputils/doc/siputils_admin.xml
@@ -502,7 +502,8 @@ add_uri_param("nat=yes");
(pseudo variable or string).
</para>
<para>
- This function can be used from REQUEST_ROUTE or ONREPLY_ROUTE.
+ This function can be used from REQUEST_ROUTE, FAILURE_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 5427fb2..391907e 100644
--- a/modules_k/siputils/siputils.c
+++ b/modules_k/siputils/siputils.c
@@ -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,