Mercurial > hg > freeDiameter
changeset 1089:5f622da7f259
Fix issues in extensions
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 04 May 2013 21:33:56 +0200 |
parents | 1d1a20a0779d |
children | 8be95f757b08 |
files | extensions/app_sip/app_sip.c extensions/dbg_interactive/sessions.i |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/app_sip/app_sip.c Sat May 04 21:25:27 2013 +0200 +++ b/extensions/app_sip/app_sip.c Sat May 04 21:33:56 2013 +0200 @@ -49,6 +49,7 @@ struct disp_hdl * app_sip_default_hdl=NULL; +struct session_handler * ds_sess_hdl; //configuration stucture struct as_conf * as_conf=NULL; @@ -211,6 +212,8 @@ if(start_mysql_connection()) return EINVAL; + CHECK_FCT(fd_sess_handler_create(&ds_sess_hdl, (void *)free, NULL, NULL)); + //Creation of thread for Registration Termination if(pthread_create(&rtr_thread, NULL,rtr_socket, NULL)) { @@ -234,6 +237,7 @@ //TODO:unregister other callbacks (void) fd_disp_unregister(&app_sip_MAR_hdl, NULL); + CHECK_FCT_DO( fd_sess_handler_destroy(&ds_sess_hdl, NULL),return); //We close database connection
--- a/extensions/dbg_interactive/sessions.i Sat May 04 21:25:27 2013 +0200 +++ b/extensions/dbg_interactive/sessions.i Sat May 04 21:33:56 2013 +0200 @@ -193,7 +193,7 @@ int ret; struct sess_state * st = NULL; PyObject * state = NULL; - ret = fd_sess_state_retrieve_internal(handler, $self, (void *) &st); + ret = fd_sess_state_retrieve(handler, $self, (void *) &st); if (ret != 0) { DI_ERROR(ret, NULL, NULL); return NULL;