Browse code

pv: use SIP_REQUEST/SIP_REPLY for value of $mt

Daniel-Constantin Mierla authored on 18/06/2020 08:31:38
Showing 1 changed files
... ...
@@ -188,9 +188,9 @@ int pv_get_msgtype(struct sip_msg *msg, pv_param_t *param,
188 188
 		return -1;
189 189
 
190 190
 	if(msg->first_line.type == SIP_REQUEST)
191
-		type = 1;
191
+		type = SIP_REQUEST; /* 1 */
192 192
 	else if(msg->first_line.type == SIP_REPLY)
193
-		type = 2;
193
+		type = SIP_REPLY; /* 2 */
194 194
 
195 195
 	return pv_get_uintval(msg, param, res, type);
196 196
 }