[sr-dev] git:master:ce9f6758: topos: print warn message when local address is not set

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 16 09:07:17 CET 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-01-16T09:06:36+01:00

topos: print warn message when local address is not set

---

Modified: src/modules/topos/tps_storage.c

---

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

---

diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 9d56cb945e..95f1097bd6 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -383,6 +383,9 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog)
 	if(ret<0) goto error;
 	ret = tps_storage_link_msg(msg, td, TPS_DIR_DOWNSTREAM);
 	if(ret<0) goto error;
+	if(td->as_contact.len <= 0 && td->bs_contact.len <= 0) {
+		LM_WARN("no local address - do record routing for all initial requests\n");
+	}
 	if(dialog==0) {
 		ret = _tps_storage_api.insert_dialog(td);
 		if(ret<0) goto error;




More information about the sr-dev mailing list