Module: kamailio
Branch: master
Commit: ecfb1b6c9abcaa662155f67b56516fd2d0750fe7
URL:
https://github.com/kamailio/kamailio/commit/ecfb1b6c9abcaa662155f67b56516fd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-22T09:23:01+02:00
topos: print warn message of missing record-route only for initial requests
---
Modified: src/modules/topos/tps_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ecfb1b6c9abcaa662155f67b56516fd…
Patch:
https://github.com/kamailio/kamailio/commit/ecfb1b6c9abcaa662155f67b56516fd…
---
diff --git a/src/modules/topos/tps_storage.c b/src/modules/topos/tps_storage.c
index 66169f7b02..fb159d4dac 100644
--- a/src/modules/topos/tps_storage.c
+++ b/src/modules/topos/tps_storage.c
@@ -396,10 +396,10 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td, int dialog)
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) {
+ if(td->as_contact.len <= 0 && td->bs_contact.len <= 0) {
+ LM_WARN("no local address - do record routing for all initial requests\n");
+ }
ret = _tps_storage_api.insert_dialog(td);
if(ret<0) goto error;
}