Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/include/pjsip/sip_dialog.h

    r4173 r5513  
    6161PJ_BEGIN_DECL 
    6262 
     63 
     64/* Deprecated API pjsip_dlg_create_uas() due to a fatal bug of possible 
     65 * premature dialog destroy. Application should not change this setting, 
     66 * unless it uses single worker thread. 
     67 * See also https://trac.pjsip.org/repos/ticket/1902. 
     68 */ 
     69#ifndef DEPRECATED_FOR_TICKET_1902 
     70#  define DEPRECATED_FOR_TICKET_1902      1 
     71#endif 
    6372 
    6473/** 
     
    241250 
    242251 
     252#if !DEPRECATED_FOR_TICKET_1902 
    243253/** 
    244254 * Initialize UAS dialog from the information found in the incoming request  
     
    280290                                            const pj_str_t *contact, 
    281291                                            pjsip_dialog **p_dlg); 
     292#endif 
     293 
     294 
     295/** 
     296 * Initialize UAS dialog from the information found in the incoming request  
     297 * that creates a dialog (such as INVITE, REFER, or SUBSCRIBE), and set the  
     298 * local Contact to contact. If contact is not specified, the local contact  
     299 * is initialized from the URI in the To header in the request.  
     300 * 
     301 * This function will also create UAS transaction for the incoming request, 
     302 * and associate the transaction to the rdata. Application can query the 
     303 * transaction used to handle this request by calling #pjsip_rdata_get_tsx() 
     304 * after this function returns. 
     305 * 
     306 * Note that initially, the session count in the dialog will be initialized  
     307 * to 1 (one), and the dialog is locked. Application needs to explicitly call 
     308 * #pjsip_dlg_dec_lock() to release the lock and decrease the session count. 
     309 * 
     310 * 
     311 * @param ua                The user agent module instance. 
     312 * @param rdata             The incoming request that creates the dialog, 
     313 *                          such as INVITE, SUBSCRIBE, or REFER. 
     314 * @param contact           Optional dialog local Contact to be put as Contact 
     315 *                          header value, hence the format must follow 
     316 *                          RFC 3261 Section 20.10: 
     317 *                          When the header field value contains a display  
     318 *                          name, the URI including all URI parameters is  
     319 *                          enclosed in "<" and ">".  If no "<" and ">" are  
     320 *                          present, all parameters after the URI are header 
     321 *                          parameters, not URI parameters.  The display name  
     322 *                          can be tokens, or a quoted string, if a larger  
     323 *                          character set is desired. 
     324 *                          If this argument is NULL, the local contact will be 
     325 *                          initialized from the value of To header in the 
     326 *                          request. 
     327 * @param p_dlg             Pointer to receive the dialog. 
     328 * 
     329 * @return                  PJ_SUCCESS on success. 
     330 */ 
     331PJ_DECL(pj_status_t) 
     332pjsip_dlg_create_uas_and_inc_lock(    pjsip_user_agent *ua, 
     333                                      pjsip_rx_data *rdata, 
     334                                      const pj_str_t *contact, 
     335                                      pjsip_dialog **p_dlg); 
    282336 
    283337 
     
    362416 * established, the route set can not be changed. 
    363417 * 
    364  * For UAS dialog,the route set will be initialized in pjsip_dlg_create_uas() 
    365  * from the Record-Route headers in the incoming request. 
     418 * For UAS dialog, the route set will be initialized in 
     419 * pjsip_dlg_create_uas_and_inc_lock() from the Record-Route headers in 
     420 * the incoming request. 
    366421 * 
    367422 * The route_set argument is standard list of Route headers (i.e. with  
     
    501556 */ 
    502557PJ_DECL(pjsip_dialog*) pjsip_rdata_get_dlg( pjsip_rx_data *rdata ); 
     558 
     559/** 
     560 * Get the dialog instance for the outgoing tdata. Returns NULL if the message 
     561 * wasn't sent from a dialog. 
     562 * 
     563 * @param tdata             Outgoing message buffer. 
     564 * 
     565 * @return                  The dialog instance that "owns" the message. 
     566 */ 
     567PJ_DECL(pjsip_dialog*) pjsip_tdata_get_dlg( pjsip_tx_data *tdata ); 
    503568 
    504569/** 
Note: See TracChangeset for help on using the changeset viewer.