Module: kamailio
Branch: master
Commit: 7993b4a7cf7281bc99bf1bae3777f3f0d18b24b1
URL:
https://github.com/kamailio/kamailio/commit/7993b4a7cf7281bc99bf1bae3777f3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-18T17:20:00+01:00
topos: don't store dialog data for message request
- only branches are enough
---
Modified: modules/topos/tps_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7993b4a7cf7281bc99bf1bae3777f3f…
Patch:
https://github.com/kamailio/kamailio/commit/7993b4a7cf7281bc99bf1bae3777f3f…
---
diff --git a/modules/topos/tps_storage.c b/modules/topos/tps_storage.c
index a85c71b..e2b3adf 100644
--- a/modules/topos/tps_storage.c
+++ b/modules/topos/tps_storage.c
@@ -323,8 +323,10 @@ int tps_storage_record(sip_msg_t *msg, tps_data_t *td)
if(ret<0) goto error;
ret = tps_storage_link_msg(msg, td, TPS_DIR_DOWNSTREAM);
if(ret<0) goto error;
- ret = tps_db_insert_dialog(td);
- if(ret<0) goto error;
+ if(td->s_method_id!=METHOD_MESSAGE) {
+ ret = tps_db_insert_dialog(td);
+ if(ret<0) goto error;
+ }
ret = tps_db_insert_branch(td);
if(ret<0) goto error;