Navigation



Ignore:
Timestamp:
Feb 9, 2011, 3:26:58 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Large UNTESTED commit with the following changes:

  • Improved DiameterIdentity? handling (esp. interationalization issues), and improve efficiency of some string operations in peers, sessions, and dictionary modules (closes #7)
  • Cleanup in the session module to free only unreferenced sessions (#16)
  • Removed fd_cpu_flush_cache(), replaced by more robust alternatives.
  • Improved peer state machine algorithm to counter SCTP multistream race condition.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_sip/serverassignment.c

    r639 r706  
    7171        // Create a new session
    7272        {
    73                 CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, "appsip", 6 ));
    74                 char * sid;
    75                 CHECK_FCT( fd_sess_getsid ( sess, &sid ));
     73                CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, fd_g_config->cnf_diamid_len, (os0_t)"appsip", 6 ));
     74                os0_t sid;
     75                size_t sidlen;
     76                CHECK_FCT( fd_sess_getsid ( sess, &sid, &sidlen ));
    7677                CHECK_FCT( fd_msg_avp_new ( sip_dict.Session_Id, 0, &avp ));
    77                 value.os.data = (uint8_t *)sid;
    78                 value.os.len  = strlen(sid);
     78                value.os.data = sid;
     79                value.os.len  = sidlen;
    7980                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ));
    8081                CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_FIRST_CHILD, avp ));
Note: See TracChangeset for help on using the changeset viewer.