Changeset 1088:1d1a20a0779d in freeDiameter for extensions/app_sip
- Timestamp:
- May 5, 2013, 4:25:27 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/app_sip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_sip/app_sip.c
r1027 r1088 50 50 51 51 struct disp_hdl * app_sip_default_hdl=NULL; 52 struct session_handler * ds_sess_hdl;53 52 54 53 //configuration stucture … … 213 212 return EINVAL; 214 213 215 CHECK_FCT(fd_sess_handler_create(&ds_sess_hdl, free, NULL));216 217 214 //Creation of thread for Registration Termination 218 215 if(pthread_create(&rtr_thread, NULL,rtr_socket, NULL)) … … 238 235 239 236 (void) fd_disp_unregister(&app_sip_MAR_hdl, NULL); 240 CHECK_FCT_DO( fd_sess_handler_destroy(&ds_sess_hdl, NULL),return);241 237 242 238 -
extensions/app_sip/app_sip.h
r1034 r1088 212 212 #define CODE_SIP_USER_DATA_TYPE 388 213 213 #define CODE_SIP_AOR 122 214 215 struct ds_nonce216 {217 char *nonce;218 };219 214 220 215 //Storage for some useful AVPs -
extensions/app_sip/multimediaauth.c
r639 r1088 36 36 #include "app_sip.h" 37 37 38 struct sess_state 39 { 40 char *nonce; 41 }; 42 38 43 39 44 int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, void * opaque, enum disp_action * act) … … 56 61 57 62 //The nonce we will store and retrieve in session 58 struct ds_nonce *storednonce=NULL;63 struct sess_state *storednonce=NULL; 59 64 60 65 … … 362 367 363 368 //We store the nonce (storednonce structure) inside the session 364 storednonce=malloc(sizeof(struct ds_nonce));365 memset(storednonce,0,sizeof(struct ds_nonce));369 storednonce=malloc(sizeof(struct sess_state)); 370 memset(storednonce,0,sizeof(struct sess_state)); 366 371 CHECK_MALLOC(storednonce->nonce=malloc(NONCE_SIZE*2+1)); 367 372 memcpy(storednonce->nonce,(char *)nonce,NONCE_SIZE*2+1);
Note: See TracChangeset
for help on using the changeset viewer.