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/userauthorization.c

    r639 r706  
    6767        // Create a new session
    6868        {
    69                 CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, "appsip", 6 ));
    70                 char * sid;
    71                 CHECK_FCT( fd_sess_getsid ( sess, &sid ));
     69                CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, fd_g_config->cnf_diamid_len, (os0_t)"appsip", 6 ));
     70                os0_t sid;
     71                size_t sidlen;
     72                CHECK_FCT( fd_sess_getsid ( sess, &sid, &sidlen ));
    7273                CHECK_FCT( fd_msg_avp_new ( sip_dict.Session_Id, 0, &avp ));
    73                 value.os.data = (uint8_t *)sid;
    74                 value.os.len  = strlen(sid);
     74                value.os.data = sid;
     75                value.os.len  = sidlen;
    7576                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ));
    7677                CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_FIRST_CHILD, avp ));
Note: See TracChangeset for help on using the changeset viewer.