Module: sip-router
Branch: master
Commit: a8f1190d0a400c34809af798a482311539b15527
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a8f1190…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Dec 20 12:49:59 2009 +0100
topoh: callid prefix can be set via param
---
modules/topoh/topoh_mod.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/topoh/topoh_mod.c b/modules/topoh/topoh_mod.c
index 37eefae..90d4c2e 100644
--- a/modules/topoh/topoh_mod.c
+++ b/modules/topoh/topoh_mod.c
@@ -81,6 +81,7 @@ static param_export_t params[]={
{"uparam_prefix", STR_PARAM, &th_uparam_prefix.s},
{"vparam_name", STR_PARAM, &th_vparam_name.s},
{"vparam_prefix", STR_PARAM, &th_vparam_prefix.s},
+ {"callid_prefix", STR_PARAM, &th_callid_prefix.s},
{0,0,0}
};
@@ -112,6 +113,7 @@ static int mod_init(void)
th_uparam_prefix.len = strlen(th_uparam_prefix.s);
th_vparam_name.len = strlen(th_vparam_name.s);
th_vparam_prefix.len = strlen(th_vparam_prefix.s);
+ th_callid_prefix.len = strlen(th_callid_prefix.s);
/* 'SIP/2.0/UDP ' + ip + ';' + param + '=' + prefix (+
'\0') */
th_via_prefix.len = 12 + th_ip.len + 1 + th_vparam_name.len + 1