[sr-dev] git:kamailio_3.0: topoh: callid prefix can be set via param

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 3 12:01:29 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: aa33e011e20e5a5faa5c15d8e64eaf875aaeb788
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aa33e011e20e5a5faa5c15d8e64eaf875aaeb788

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Dec 20 12:49:59 2009 +0100

topoh: callid prefix can be set via param
(cherry picked from commit a8f1190d0a400c34809af798a482311539b15527)

---

 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 53eb111..4b341dd 100644
--- a/modules/topoh/topoh_mod.c
+++ b/modules/topoh/topoh_mod.c
@@ -66,6 +66,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}
 };
 
@@ -97,6 +98,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




More information about the sr-dev mailing list