# HG changeset patch # User Sebastien Decugis # Date 1367696036 -7200 # Node ID 5f622da7f259a9d81cb8482c267efcb5a29e5bfc # Parent 1d1a20a0779d3f4a13302425dd6f953e66966a9a Fix issues in extensions diff -r 1d1a20a0779d -r 5f622da7f259 extensions/app_sip/app_sip.c --- 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 diff -r 1d1a20a0779d -r 5f622da7f259 extensions/dbg_interactive/sessions.i --- 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;