Navigation



Ignore:
Timestamp:
Jul 3, 2010, 12:40:00 AM (14 years ago)
Author:
Alexandre Westfahl <awestfahl@freediameter.net>
Branch:
default
Phase:
public
Message:

Corrected bugs on app_sip and rgwx_sip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/multimediaauth.c

    r364 r368  
    3737
    3838
    39 int diamsip_MAR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act)
     39int diamsip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, enum disp_action * act)
    4040{
    4141        struct msg *ans, *qry;
    42         struct avp *a2, *authdataitem;
     42        struct avp *avp, *a2, *authdataitem;
    4343        struct msg_hdr * header = NULL;
    4444        struct avp_hdr * avphdr=NULL, *avpheader=NULL, *avpheader_auth=NULL,*digestheader=NULL;
     
    4848        char * result;
    4949        char password[51];
    50         int idx=0, idx2=0, number_of_auth_items=0,i=0;;
     50        int idx=0, idx2=0, number_of_auth_items=0,i=0;
    5151        //Flags and variables for Database
    5252        int sipurinotstored=0, authenticationpending=0, querylen=0, usernamelen=0;
     
    8282                {
    8383                        CHECK_FCT( fd_msg_avp_new ( sip_dict.Auth_Application_Id, 0, &avp ) );
     84                        ASSERT(avp);
    8485                        val.i32 = header->msg_appl;
    8586                        CHECK_FCT( fd_msg_avp_setvalue ( avp, &val ) );
     
    670671                                                                        DigestCalcResponseAuth(HA1, digest_nonce, digest_noncecount, digest_cnonce, digest_qop,digest_method, digest_uri, HA2, responseauth);
    671672                                                                       
    672                                                                        
     673                                                                        TRACE_DEBUG(FULL,"Response calculated by Diameter server:%s",response);
     674                                                                                TRACE_DEBUG(FULL,"Response calculated by UA:%s",digest_response);
    673675                                                                        if(strcmp(digest_qop,"auth-int")==0)
    674676                                                                        {
Note: See TracChangeset for help on using the changeset viewer.