瀏覽代碼

pv: use SIP_REQUEST/SIP_REPLY for value of $mt

(cherry picked from commit 7e402da261e1ced56019037d3dce9e72b5b2b0ea)
(cherry picked from commit 9dff6197dcae5c4051194753382f95c5edaa379e)
Daniel-Constantin Mierla 5 年之前
父節點
當前提交
4c67a6e3e4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/pv/pv_core.c

+ 2 - 2
src/modules/pv/pv_core.c

@@ -187,9 +187,9 @@ int pv_get_msgtype(struct sip_msg *msg, pv_param_t *param,
 		return -1;
 
 	if(msg->first_line.type == SIP_REQUEST)
-		type = 1;
+		type = SIP_REQUEST; /* 1 */
 	else if(msg->first_line.type == SIP_REPLY)
-		type = 2;
+		type = SIP_REPLY; /* 2 */
 
 	return pv_get_uintval(msg, param, res, type);
 }