- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjsip-apps/src/samples/simpleua.c
r4815 r5513 726 726 * Create UAS dialog. 727 727 */ 728 status = pjsip_dlg_create_uas ( pjsip_ua_instance(),729 730 731 728 status = pjsip_dlg_create_uas_and_inc_lock( pjsip_ua_instance(), 729 rdata, 730 &local_uri, /* contact */ 731 &dlg); 732 732 if (status != PJ_SUCCESS) { 733 733 pjsip_endpt_respond_stateless(g_endpt, rdata, 500, NULL, … … 742 742 status = pjmedia_endpt_create_sdp( g_med_endpt, rdata->tp_info.pool, 743 743 MAX_MEDIA_CNT, g_sock_info, &local_sdp); 744 PJ_ASSERT_RETURN(status == PJ_SUCCESS, PJ_TRUE); 744 pj_assert(status == PJ_SUCCESS); 745 if (status != PJ_SUCCESS) { 746 pjsip_dlg_dec_lock(dlg); 747 return PJ_TRUE; 748 } 745 749 746 750 … … 750 754 */ 751 755 status = pjsip_inv_create_uas( dlg, rdata, local_sdp, 0, &g_inv); 752 PJ_ASSERT_RETURN(status == PJ_SUCCESS, PJ_TRUE); 756 pj_assert(status == PJ_SUCCESS); 757 if (status != PJ_SUCCESS) { 758 pjsip_dlg_dec_lock(dlg); 759 return PJ_TRUE; 760 } 761 762 /* 763 * Invite session has been created, decrement & release dialog lock. 764 */ 765 pjsip_dlg_dec_lock(dlg); 753 766 754 767
Note: See TracChangeset
for help on using the changeset viewer.