Navigation


Changeset 1088:1d1a20a0779d in freeDiameter for extensions/app_sip


Ignore:
Timestamp:
May 5, 2013, 4:25:27 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though

Location:
extensions/app_sip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/app_sip.c

    r1027 r1088  
    5050
    5151struct disp_hdl * app_sip_default_hdl=NULL;
    52 struct session_handler * ds_sess_hdl;
    5352
    5453//configuration stucture
     
    213212                return EINVAL;
    214213       
    215         CHECK_FCT(fd_sess_handler_create(&ds_sess_hdl, free, NULL));
    216        
    217214        //Creation of thread for Registration Termination       
    218215        if(pthread_create(&rtr_thread, NULL,rtr_socket, NULL))
     
    238235       
    239236        (void) fd_disp_unregister(&app_sip_MAR_hdl, NULL);
    240         CHECK_FCT_DO( fd_sess_handler_destroy(&ds_sess_hdl, NULL),return);
    241237       
    242238       
  • extensions/app_sip/app_sip.h

    r1034 r1088  
    212212#define CODE_SIP_USER_DATA_TYPE 388
    213213#define CODE_SIP_AOR    122
    214 
    215 struct ds_nonce
    216 {
    217         char *nonce;
    218 };
    219214
    220215//Storage for some useful AVPs
  • extensions/app_sip/multimediaauth.c

    r639 r1088  
    3636#include "app_sip.h"
    3737
     38struct sess_state
     39{
     40        char *nonce;
     41};
     42
    3843
    3944int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, void * opaque, enum disp_action * act)
     
    5661       
    5762        //The nonce we will store and retrieve in session
    58         struct ds_nonce *storednonce=NULL;
     63        struct sess_state *storednonce=NULL;
    5964       
    6065       
     
    362367                                                                       
    363368                                                                        //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));
    366371                                                                        CHECK_MALLOC(storednonce->nonce=malloc(NONCE_SIZE*2+1));
    367372                                                                        memcpy(storednonce->nonce,(char *)nonce,NONCE_SIZE*2+1);
Note: See TracChangeset for help on using the changeset viewer.