[sr-dev] git:master:e101f21c: Merge pull request #1377 from snen/pv_sbranch_params_fix

GitHub noreply at github.com
Wed Dec 20 12:32:50 CET 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2017-12-20T12:32:45+01:00

Merge pull request #1377 from snen/pv_sbranch_params_fix

pv: correct sbranch params appending

---

Modified: src/modules/pv/pv_branch.c

---

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

---

diff --git a/src/modules/pv/pv_branch.c b/src/modules/pv/pv_branch.c
index 7e6911c8d2..b0668c07f8 100644
--- a/src/modules/pv/pv_branch.c
+++ b/src/modules/pv/pv_branch.c
@@ -730,19 +730,19 @@ int sbranch_append(sip_msg_t *msg)
 	uri.s = br->uri;
 	uri.len = br->len;
 
-	if(br->dst_uri_len==0) {
+	if(br->dst_uri_len) {
 		duri.s = br->dst_uri;
 		duri.len = br->dst_uri_len;
 	}
-	if(br->path_len==0) {
+	if(br->path_len) {
 		path.s = br->path;
 		path.len = br->path_len;
 	}
-	if(br->ruid_len==0) {
+	if(br->ruid_len) {
 		ruid.s = br->ruid;
 		ruid.len = br->ruid_len;
 	}
-	if(br->location_ua_len==0) {
+	if(br->location_ua_len) {
 		location_ua.s = br->location_ua;
 		location_ua.len = br->location_ua_len;
 	}




More information about the sr-dev mailing list