diff --git a/src/modules/tm/t_funcs.h b/src/modules/tm/t_funcs.h index 68701c5342f..1b90c20d453 100644 --- a/src/modules/tm/t_funcs.h +++ b/src/modules/tm/t_funcs.h @@ -191,6 +191,7 @@ int t_add_transaction( struct sip_msg* p_msg ); /* returns 1 if everything was OK or -1 for error */ int t_release_transaction( struct cell *trans ); +typedef int (*trelease_t)(struct cell *t); int get_ip_and_port_from_uri( str* uri , unsigned int *param_ip, diff --git a/src/modules/tm/tm_load.c b/src/modules/tm/tm_load.c index be5356fa131..1d58c06f0ec 100644 --- a/src/modules/tm/tm_load.c +++ b/src/modules/tm/tm_load.c @@ -141,6 +141,7 @@ int load_tm( struct tm_binds *tmb) tmb->t_load_contacts = t_load_contacts; tmb->t_next_contacts = t_next_contacts; tmb->set_fr = t_set_fr; + tmb->t_release_transaction = t_release_transaction; return 1; } diff --git a/src/modules/tm/tm_load.h b/src/modules/tm/tm_load.h index c1fece44035..3fa52f8f284 100644 --- a/src/modules/tm/tm_load.h +++ b/src/modules/tm/tm_load.h @@ -128,6 +128,7 @@ struct tm_binds { cmd_function t_load_contacts; cmd_function t_next_contacts; tset_fr_f set_fr; + trelease_t t_release_transaction; }; typedef struct tm_binds tm_api_t;