Module: sip-router
Branch: master
Commit: e4792b84483c6299d096477007b1d3f54f992c67
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e4792b8…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Mon Apr 28 12:08:42 2014 +0300
modules/pv: use just a comma as header delimiter
---
modules/pv/pv_core.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/pv/pv_core.c b/modules/pv/pv_core.c
index 3f48830..c472622 100644
--- a/modules/pv/pv_core.c
+++ b/modules/pv/pv_core.c
@@ -73,6 +73,9 @@ int _pv_pid = 0;
#define PV_FIELD_DELIM ", "
#define PV_FIELD_DELIM_LEN (sizeof(PV_FIELD_DELIM) - 1)
+#define PV_HDR_DELIM ","
+#define PV_HDR_DELIM_LEN (sizeof(PV_HDR_DELIM) - 1)
+
int pv_get_msgid(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
{
@@ -1649,8 +1652,8 @@ int pv_get_hdr(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
LM_ERR("local buffer length exceeded\n");
return pv_get_null(msg, param, res);
}
- memcpy(p, PV_FIELD_DELIM, PV_FIELD_DELIM_LEN);
- p += PV_FIELD_DELIM_LEN;
+ memcpy(p, PV_HDR_DELIM, PV_HDR_DELIM_LEN);
+ p += PV_HDR_DELIM_LEN;
}
if(p-p_ini+hf->body.len+1>p_size)
{