Module: kamailio
Branch: 4.4
Commit: e49eca307a2e442bb6f362e8317be2a4750cbe25
URL:
https://github.com/kamailio/kamailio/commit/e49eca307a2e442bb6f362e8317be2a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-02-22T22:24:58+01:00
rtpproxy: allow 0 as value for ice candidate avp
- reported by GH #1003
(cherry picked from commit 0bac7c351ba444c6693c76a7dd2fce6e93b9885a)
(cherry picked from commit 71b9cb347eb67489adda62148eb6ebdf0a681217)
---
Modified: modules/rtpproxy/rtpproxy.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e49eca307a2e442bb6f362e8317be2a…
Patch:
https://github.com/kamailio/kamailio/commit/e49eca307a2e442bb6f362e8317be2a…
---
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index c3f39ec..7144418 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -2536,7 +2536,7 @@ force_rtp_proxy(struct sip_msg* msg, char* str1, char* str2, int
offer, int forc
&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);