Changeset 5241 for pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
- Timestamp:
- Feb 5, 2016 4:29:17 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
r4173 r5241 61 61 PJ_BEGIN_DECL 62 62 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 63 72 64 73 /** … … 241 250 242 251 252 #if !DEPRECATED_FOR_TICKET_1902 243 253 /** 244 254 * Initialize UAS dialog from the information found in the incoming request … … 280 290 const pj_str_t *contact, 281 291 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 */ 331 PJ_DECL(pj_status_t) 332 pjsip_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); 282 336 283 337 … … 362 416 * established, the route set can not be changed. 363 417 * 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. 366 421 * 367 422 * The route_set argument is standard list of Route headers (i.e. with
Note: See TracChangeset
for help on using the changeset viewer.