[sr-dev] git:master:9a8db8f6: modules/ims_qos: bandiwdth only added to AAR if > 0

jaybeepee jason.penton at gmail.com
Tue Jun 7 08:42:33 CEST 2016


Module: kamailio
Branch: master
Commit: 9a8db8f6952ae7209a5d268a16e184a1a9979eb7
URL: https://github.com/kamailio/kamailio/commit/9a8db8f6952ae7209a5d268a16e184a1a9979eb7

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2016-06-07T08:42:15+02:00

modules/ims_qos: bandiwdth only added to AAR if > 0

---

Modified: modules/ims_qos/rx_avp.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9a8db8f6952ae7209a5d268a16e184a1a9979eb7.diff
Patch: https://github.com/kamailio/kamailio/commit/9a8db8f6952ae7209a5d268a16e184a1a9979eb7.patch

---

diff --git a/modules/ims_qos/rx_avp.c b/modules/ims_qos/rx_avp.c
index 2757bad..124855c 100644
--- a/modules/ims_qos/rx_avp.c
+++ b/modules/ims_qos/rx_avp.c
@@ -489,7 +489,7 @@ inline int rx_add_media_component_description_avp(AAAMessage *msg, int number, s
 	// Get A=RS-bandwidth from SDP-Reply:
         bandwidth = sdp_b_value(rpl_raw_payload, "RS");
         LM_DBG("Answer: Got bandwidth %i from b=RS-Line\n", bandwidth);
-	if (bandwidth >= 0U) {
+	if (bandwidth > 0) {
 		// Add AVP
 		set_4bytes(x,bandwidth);
 		rs_bw = cdpb.AAACreateAVP(AVP_EPC_RS_Bandwidth,
@@ -501,7 +501,7 @@ inline int rx_add_media_component_description_avp(AAAMessage *msg, int number, s
 	// Get A=RS-bandwidth from SDP-Reply:
         bandwidth = sdp_b_value(rpl_raw_payload, "RR");
         LM_DBG("Answer: Got bandwidth %i from b=RR-Line\n", bandwidth);
-	if (bandwidth >= 0U) {
+	if (bandwidth > 0) {
 		// Add AVP
 		set_4bytes(x,bandwidth);
 		rr_bw = cdpb.AAACreateAVP(AVP_EPC_RR_Bandwidth,




More information about the sr-dev mailing list