Mercurial > hg > freeDiameter
diff extensions/app_sip/diamsip.c @ 368:a1f26147ec61
Corrected bugs on app_sip and rgwx_sip
author | Alexandre Westfahl <awestfahl@freediameter.net> |
---|---|
date | Sat, 03 Jul 2010 00:40:00 +0900 |
parents | da11085cf6d9 |
children | 8e260030f32c |
line wrap: on
line diff
--- a/extensions/app_sip/diamsip.c Fri Jul 02 14:46:39 2010 +0900 +++ b/extensions/app_sip/diamsip.c Sat Jul 03 00:40:00 2010 +0900 @@ -35,8 +35,11 @@ *********************************************************************************************************/ #include "diamsip.h" -static struct disp_hdl * diamsip_MAR_hdl=NULL; -static struct disp_hdl * diamsip_default_hdl=NULL; +struct disp_hdl * diamsip_MAR_hdl=NULL; +struct disp_hdl * diamsip_default_hdl=NULL; +struct session_handler * ds_sess_hdl; + +struct diamsip_dict sip_dict; int diamsip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act) { @@ -47,11 +50,8 @@ return 0; } - - - /* entry point */ -static int ds_entry() +int ds_entry() { struct dict_object * app=NULL; struct disp_when data; @@ -109,8 +109,6 @@ CHECK_FCT(fd_sess_handler_create(&ds_sess_hdl, free)); - - //listnonce=NULL; return 0; } @@ -126,9 +124,7 @@ //We close database connection close_mysql_connection(); - //We delete the chained list of nonces - //nonce_deletelistnonce(); - //TODO:NONCE + TRACE_ENTRY(); return ;