Module: kamailio
Branch: master
Commit: 71b9cb347eb67489adda62148eb6ebdf0a681217
URL:
https://github.com/kamailio/kamailio/commit/71b9cb347eb67489adda62148eb6ebd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-02-22T22:16:55+01:00
rtpproxy: allow 0 as value for ice candidate avp
- reported by GH #1003
---
Modified: src/modules/rtpproxy/rtpproxy.c
---
Diff:
https://github.com/kamailio/kamailio/commit/71b9cb347eb67489adda62148eb6ebd…
Patch:
https://github.com/kamailio/kamailio/commit/71b9cb347eb67489adda62148eb6ebd…
---
diff --git a/src/modules/rtpproxy/rtpproxy.c b/src/modules/rtpproxy/rtpproxy.c
index 61d23e6..e445ea3 100644
--- a/src/modules/rtpproxy/rtpproxy.c
+++ b/src/modules/rtpproxy/rtpproxy.c
@@ -2326,7 +2326,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer,
&ice_candidate_priority_val, 0)
== NULL) {
ice_candidate_priority_val.n = 2;
- } else if ((ice_candidate_priority_val.n < 1) ||
+ } else if ((ice_candidate_priority_val.n < 0) ||
(ice_candidate_priority_val.n > 2)) {
LM_ERR("invalid ice candidate priority value %d\n",
ice_candidate_priority_val.n);