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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/7993b4a7cf7281bc99bf1bae3777f3f0d18b24b1.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7993b4a7cf7281bc99bf1bae3777f3f0d18b24b1.patch

---

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;
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to