Skip to content

Commit

Permalink
tm: add t_release_transaction to api
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo committed Mar 5, 2019
1 parent e3ed896 commit 186d200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/tm/t_funcs.h
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/modules/tm/tm_load.c
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions src/modules/tm/tm_load.h
Expand Up @@ -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;
Expand Down

0 comments on commit 186d200

Please sign in to comment.