Changeset 430:f77fc3a97287 in freeDiameter for extensions/test_sip/serverassignment.c
- Timestamp:
- Jul 27, 2010, 2:56:21 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_sip/serverassignment.c
r427 r430 46 46 47 47 //Fake values START 48 unsignedchar *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";48 char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp"; 49 49 size_t aor_len=strlen(sip_aor); 50 unsignedchar *destination_realm="tera.ics.keio.ac.jp";50 char *destination_realm="tera.ics.keio.ac.jp"; 51 51 size_t destination_realmlen=strlen(destination_realm); 52 unsignedchar *destination_host="suika.tera.ics.keio.ac.jp";52 char *destination_host="suika.tera.ics.keio.ac.jp"; 53 53 size_t destination_hostlen=strlen(destination_host); 54 unsignedchar *username="aw-lappy";54 char *username="aw-lappy"; 55 55 size_t usernamelen=strlen(username); 56 unsignedchar *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; 59 59 int data_already_available=0; 60 60 int assignment_type=0; … … 100 100 { 101 101 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; 103 103 value.os.len=destination_hostlen; 104 104 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 108 108 { 109 109 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; 111 111 value.os.len=destination_realmlen; 112 112 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 118 118 119 119 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; 121 121 value.os.len=aor_len; 122 122 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 128 128 129 129 CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) ); 130 value.os.data= username;130 value.os.data=(unsigned char *)username; 131 131 value.os.len=usernamelen; 132 132 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
Note: See TracChangeset
for help on using the changeset viewer.