Changeset 2593 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Apr 14, 2009 11:10:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r2506 r2593 468 468 } 469 469 470 /* Increment the dialog's lock otherwise when invite session creation 471 * fails the dialog will be destroyed prematurely. 472 */ 473 pjsip_dlg_inc_lock(dlg); 474 470 475 /* Calculate call's secure level */ 471 476 call->secure_level = get_secure_level(acc_id, dest_uri); … … 558 563 status); 559 564 560 /* Upon failure to send first request, both dialog andinvite565 /* Upon failure to send first request, the invite 561 566 * session would have been cleared. 562 567 */ 563 568 inv = NULL; 564 dlg = NULL;565 569 goto on_error; 566 570 } … … 571 575 *p_call_id = call_id; 572 576 577 pjsip_dlg_dec_lock(dlg); 573 578 pj_pool_release(tmp_pool); 574 579 PJSUA_UNLOCK(); … … 578 583 579 584 on_error: 585 if (dlg) { 586 /* This may destroy the dialog */ 587 pjsip_dlg_dec_lock(dlg); 588 } 589 580 590 if (inv != NULL) { 581 591 pjsip_inv_terminate(inv, PJSIP_SC_OK, PJ_FALSE); 582 } else if (dlg) {583 pjsip_dlg_terminate(dlg);584 592 } 585 593
Note: See TracChangeset
for help on using the changeset viewer.