Module: kamailio
Branch: master
Commit: ebf570f83c878363dfd1f53882de9a0f907f5971
URL:
https://github.com/kamailio/kamailio/commit/ebf570f83c878363dfd1f53882de9a0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-05T11:55:51+01:00
topos: update contact in branch record before sending response
- might be updated in config execution
- reported by GH #1339
---
Modified: src/modules/topos/tps_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ebf570f83c878363dfd1f53882de9a0…
Patch:
https://github.com/kamailio/kamailio/commit/ebf570f83c878363dfd1f53882de9a0…
---
diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c
index 75b6d02078..26e25b42c0 100644
--- a/src/modules/topos/tps_msg.c
+++ b/src/modules/topos/tps_msg.c
@@ -1081,6 +1081,9 @@ int tps_response_sent(sip_msg_t *msg)
}
tps_reappend_rr(msg, &btsd, &btsd.x_rr);
+ if(tps_storage_update_branch(msg, &mtsd, &btsd, TPS_DBU_CONTACT)<0) {
+ goto error;
+ }
if(tps_storage_update_dialog(msg, &mtsd, &stsd, TPS_DBU_CONTACT)<0) {
goto error1;
}