浏览代码

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

- cache it in an avp for the request if you need it later
Peter Dunkley 12 年之前
父节点
当前提交
86440c8163
共有 1 个文件被更改,包括 3 次插入0 次删除
  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");