Ver Fonte

modules/pv: can only retrieve $ruid for a request

- cache it in an avp for the request if you need it later
Peter Dunkley há 12 anos atrás
pai
commit
86440c8163
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      modules/pv/pv_core.c

+ 3 - 0
modules/pv/pv_core.c

@@ -1810,6 +1810,9 @@ int pv_get_ruid(struct sip_msg *msg, pv_param_t *param,
 	if(msg==NULL)
 		return -1;
 
+	if(msg->first_line.type == SIP_REPLY)
+		return pv_get_null(msg, param, res);
+
 	if(msg->ruid.len==0) 
 	{
 		LM_DBG("no ruid\n");