[sr-dev] git:master:ebf570f8: topos: update contact in branch record before sending response

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 5 11:57:10 CET 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/ebf570f83c878363dfd1f53882de9a0f907f5971.diff
Patch: https://github.com/kamailio/kamailio/commit/ebf570f83c878363dfd1f53882de9a0f907f5971.patch

---

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;
 	}




More information about the sr-dev mailing list