Navigation


Changeset 430:f77fc3a97287 in freeDiameter for extensions/test_sip


Ignore:
Timestamp:
Jul 27, 2010, 2:56:21 PM (14 years ago)
Author:
Alexandre Westfahl <awestfahl@freediameter.net>
Branch:
default
Phase:
public
Message:

Corrected compilation warnings on app_sip and test_sip

Location:
extensions/test_sip
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_sip/locationinfo.c

    r427 r430  
    4646       
    4747        //Fake values START
    48         unsigned char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
     48        char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
    4949        size_t aor_len=strlen(sip_aor);
    5050        char *destination_realm="tera.ics.keio.ac.jp";
     
    112112               
    113113                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    114                 value.os.data=sip_aor;
     114                value.os.data=(unsigned char *)sip_aor;
    115115                value.os.len=aor_len;
    116116                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
  • extensions/test_sip/locationinfosl.c

    r427 r430  
    4646       
    4747        //Fake values START
    48         unsigned char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
     48        char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
    4949        size_t aor_len=strlen(sip_aor);
    5050        char *destination_realm="tera.ics.keio.ac.jp";
     
    114114               
    115115                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    116                 value.os.data=sip_aor;
     116                value.os.data=(unsigned char *)sip_aor;
    117117                value.os.len=aor_len;
    118118                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
  • extensions/test_sip/serverassignment.c

    r427 r430  
    4646       
    4747        //Fake values START
    48         unsigned char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
     48        char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
    4949        size_t aor_len=strlen(sip_aor);
    50         unsigned char *destination_realm="tera.ics.keio.ac.jp";
     50        char *destination_realm="tera.ics.keio.ac.jp";
    5151        size_t destination_realmlen=strlen(destination_realm);
    52         unsigned char *destination_host="suika.tera.ics.keio.ac.jp";
     52        char *destination_host="suika.tera.ics.keio.ac.jp";
    5353        size_t destination_hostlen=strlen(destination_host);
    54         unsigned char *username="aw-lappy";
     54        char *username="aw-lappy";
    5555        size_t usernamelen=strlen(username);
    56         unsigned char *visitednetwork="Pink";
    57         size_t visitednetworklen=strlen(visitednetwork);
    58         int registrationtype = 2;
     56        // char *visitednetwork="Pink";
     57        //size_t visitednetworklen=strlen(visitednetwork);
     58        //int registrationtype = 2;
    5959        int data_already_available=0;
    6060        int assignment_type=0;
     
    100100        {
    101101                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Host, 0, &avp ) );
    102                 value.os.data=destination_host;
     102                value.os.data=(unsigned char *)destination_host;
    103103                value.os.len=destination_hostlen;
    104104                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    108108        {
    109109                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Realm, 0, &avp ) );
    110                 value.os.data=destination_realm;
     110                value.os.data=(unsigned char *)destination_realm;
    111111                value.os.len=destination_realmlen;
    112112                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    118118               
    119119                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    120                 value.os.data=sip_aor;
     120                value.os.data=(unsigned char *)sip_aor;
    121121                value.os.len=aor_len;
    122122                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    128128               
    129129                CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) );
    130                 value.os.data=username;
     130                value.os.data=(unsigned char *)username;
    131131                value.os.len=usernamelen;
    132132                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
  • extensions/test_sip/test_sip.c

    r427 r430  
    101101        struct disp_when data;
    102102       
     103       
     104        //TODO: activate again configuration file
     105        CHECK_FCT( ts_conf_init() );
    103106        /* Initialize configuration
    104107        //CHECK_FCT( ts_conf_init() );
  • extensions/test_sip/userauthorization.c

    r427 r430  
    4646       
    4747        //Fake values START
    48         unsigned char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
     48        char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";
    4949        size_t aor_len=strlen(sip_aor);
    50         unsigned char *destination_realm="tera.ics.keio.ac.jp";
     50        char *destination_realm="tera.ics.keio.ac.jp";
    5151        size_t destination_realmlen=strlen(destination_realm);
    52         unsigned char *destination_host="suika.tera.ics.keio.ac.jp";
     52        char *destination_host="suika.tera.ics.keio.ac.jp";
    5353        size_t destination_hostlen=strlen(destination_host);
    54         unsigned char *username="aw-lappy";
     54        char *username="aw-lappy";
    5555        size_t usernamelen=strlen(username);
    56         unsigned char *visitednetwork="Pink";
     56        char *visitednetwork="Pink";
    5757        size_t visitednetworklen=strlen(visitednetwork);
    5858        int registrationtype = 2;
     
    9999        {
    100100                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Host, 0, &avp ) );
    101                 value.os.data=destination_host;
     101                value.os.data=(unsigned char *)destination_host;
    102102                value.os.len=destination_hostlen;
    103103                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    107107        {
    108108                CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Realm, 0, &avp ) );
    109                 value.os.data=destination_realm;
     109                value.os.data=(unsigned char *)destination_realm;
    110110                value.os.len=destination_realmlen;
    111111                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    117117               
    118118                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) );
    119                 value.os.data=sip_aor;
     119                value.os.data=(unsigned char *)sip_aor;
    120120                value.os.len=aor_len;
    121121                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    127127               
    128128                CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) );
    129                 value.os.data=username;
     129                value.os.data=(unsigned char *)username;
    130130                value.os.len=usernamelen;
    131131                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     
    137137               
    138138                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_Visited_Network_Id, 0, &avp ) );
    139                 value.os.data=visitednetwork;
     139                value.os.data=(unsigned char *)visitednetwork;
    140140                value.os.len=visitednetworklen;
    141141                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
Note: See TracChangeset for help on using the changeset viewer.