Module: kamailio
Branch: master
Commit: e66f109c0d2cf657387ee1e0745ff2d55eebcaaa
URL:
https://github.com/kamailio/kamailio/commit/e66f109c0d2cf657387ee1e0745ff2d…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Committer: Dmitri Savolainen <savolainen(a)erinaco.ru>
Date: 2017-12-20T13:07:35+03:00
pv: correct sbranch params appending
- some params (like dest uri) were not appended to branch
due to a copy-paste typo
---
Modified: src/modules/pv/pv_branch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e66f109c0d2cf657387ee1e0745ff2d…
Patch:
https://github.com/kamailio/kamailio/commit/e66f109c0d2cf657387ee1e0745ff2d…
---
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;
}