2
0
Эх сурвалжийг харах

pv: assignment with $null deletes the avp

- $avp(x) = $null; - equivalent of $avp(x) = null; in K
- $(avp(x)[*]) = $null; - equivalent of $avp(x) := null; in K
Daniel-Constantin Mierla 16 жил өмнө
parent
commit
e6fef16a04

+ 1 - 1
modules_k/pv/pv_core.c

@@ -1536,7 +1536,7 @@ int pv_set_avp(struct sip_msg* msg, pv_param_t *param,
 		return -1;
 	}
 
-	if(val == NULL)
+	if((val==NULL) || (val->flags&PV_VAL_NULL))
 	{
 		if(idxf == PV_IDX_ALL)
 			destroy_avps(name_type, avp_name, 1);