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/app_sip/registrationtermination.c

    r639 r706  
    147147        // Create a new session
    148148        {
    149                 CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, "app_sip", 7 ));
    150                 char * sid;
    151                 CHECK_FCT( fd_sess_getsid ( sess, &sid ));
     149                #define APP_SIP_SID_OPT  "app_sip"
     150                CHECK_FCT( fd_sess_new( &sess, fd_g_config->cnf_diamid, fd_g_config->cnf_diamid_len, (os0_t)APP_SIP_SID_OPT, CONSTSTRLEN(APP_SIP_SID_OPT) ));
     151                os0_t sid;
     152                size_t sidlen;
     153                CHECK_FCT( fd_sess_getsid ( sess, &sid, &sidlen ));
    152154                CHECK_FCT( fd_msg_avp_new ( sip_dict.Session_Id, 0, &avp ));
    153                 value.os.data = (uint8_t *)sid;
    154                 value.os.len  = strlen(sid);
     155                value.os.data = sid;
     156                value.os.len  = sidlen;
    155157                CHECK_FCT( fd_msg_avp_setvalue( avp, &value ));
    156158                CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_FIRST_CHILD, avp ));
Note: See TracChangeset for help on using the changeset viewer.