Module: kamailio Branch: master Commit: f4fa310479ce824c9fd68a7ef443102c30a0c171 URL: https://github.com/kamailio/kamailio/commit/f4fa310479ce824c9fd68a7ef443102c30a0c171
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2017-08-08T17:02:38+02:00 topos: link sip message attributes before PRACK handling --- Modified: src/modules/topos/tps_msg.c Modified: src/modules/topos/tps_storage.h --- Diff: https://github.com/kamailio/kamailio/commit/f4fa310479ce824c9fd68a7ef443102c30a0c171.diff Patch: https://github.com/kamailio/kamailio/commit/f4fa310479ce824c9fd68a7ef443102c30a0c171.patch --- diff --git a/src/modules/topos/tps_msg.c b/src/modules/topos/tps_msg.c index 8adfa31129..ca360a975c 100644 --- a/src/modules/topos/tps_msg.c +++ b/src/modules/topos/tps_msg.c @@ -763,6 +763,9 @@ int tps_request_received(sip_msg_t *msg, int dialog) tps_storage_lock_get(&lkey); if((get_cseq(msg)->method_id)&(METHOD_PRACK)) { + if(tps_storage_link_msg(msg, &mtsd, TPS_DIR_DOWNSTREAM)<0) { + goto error; + } if(tps_storage_load_branch(msg, &mtsd, &stsd, 1)<0) { goto error; } diff --git a/src/modules/topos/tps_storage.h b/src/modules/topos/tps_storage.h index 2336687a75..c10c3f2699 100644 --- a/src/modules/topos/tps_storage.h +++ b/src/modules/topos/tps_storage.h @@ -102,6 +102,8 @@ int tps_storage_lock_get(str *lkey); int tps_storage_lock_release(str *lkey); int tps_storage_lock_set_destroy(void); +int tps_storage_link_msg(sip_msg_t *msg, tps_data_t *td, int dir); + void tps_storage_clean(unsigned int ticks, void* param); #endif _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev