Navigation



Ignore:
Timestamp:
Feb 15, 2013, 1:52:57 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
925:e5a09fab5ef3, 950:51c15f98a965
Phase:
public
Message:

Fix (tentative) for invalid handling of sessions fast creation/destruction as pointed by Yusuke Okura -- http://lists.freediameter.net/pipermail/help/2013-February/000584.html and http://lists.freediameter.net/pipermail/help/2013-February/000589.html -- Thank you very much

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_sip/registrationtermination.c

    r706 r924  
    148148        {
    149149                #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 ));
    154                 CHECK_FCT( fd_msg_avp_new ( sip_dict.Session_Id, 0, &avp ));
    155                 value.os.data = sid;
    156                 value.os.len  = sidlen;
    157                 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ));
    158                 CHECK_FCT( fd_msg_avp_add( message, MSG_BRW_FIRST_CHILD, avp ));
     150                CHECK_FCT( fd_msg_new_session( message, (os0_t)APP_SIP_SID_OPT, CONSTSTRLEN(APP_SIP_SID_OPT) ) );
    159151        }
    160152       
Note: See TracChangeset for help on using the changeset viewer.