Navigation



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

Corrected bugs on SAR/SAA; added SQL files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_sip/serverassignment.c

    r430 r432  
    4646       
    4747        //Fake values START
    48          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          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          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          char *username="aw-lappy";
     54        char *username="aw-lappy";
    5555        size_t usernamelen=strlen(username);
     56        char *sipserveruri="sip:ichigo@tera.ics.keio.ac.jp";
     57        size_t sipserverurilen=strlen(sipserveruri);
    5658        // char *visitednetwork="Pink";
    5759        //size_t visitednetworklen=strlen(visitednetwork);
     
    149151                CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_LAST_CHILD, avp ) );
    150152        }
     153        //SIP_server_uri
     154        {
     155               
     156                CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_Server_URI, 0, &avp ) );
     157                value.os.data=(unsigned char *)sipserveruri;
     158                value.os.len=sipserverurilen;
     159                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
     160                CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_LAST_CHILD, avp ) );
     161               
     162        }
    151163       
    152164        fd_msg_dump_walk(INFO,message);
Note: See TracChangeset for help on using the changeset viewer.