Module: kamailio
Branch: 5.0
Commit: 0bac7c351ba444c6693c76a7dd2fce6e93b9885a
URL:
https://github.com/kamailio/kamailio/commit/0bac7c351ba444c6693c76a7dd2fce6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-02-22T22:19:47+01:00
rtpproxy: allow 0 as value for ice candidate avp
- reported by GH #1003
(cherry picked from commit 71b9cb347eb67489adda62148eb6ebdf0a681217)
---
Modified: src/modules/rtpproxy/rtpproxy.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0bac7c351ba444c6693c76a7dd2fce6…
Patch:
https://github.com/kamailio/kamailio/commit/0bac7c351ba444c6693c76a7dd2fce6…
---
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);