Browse Source

modules/pv: use just a comma as header delimiter

Juha Heinanen 11 years ago
parent
commit
e4792b8448
1 changed files with 5 additions and 2 deletions
  1. 5 2
      modules/pv/pv_core.c

+ 5 - 2
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)
 			{