- Timestamp:
- Mar 2, 2015 9:43:20 AM (10 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r4948 r4986 145 145 pj_bool_t med_update_success; 146 146 /**< Is media update successful? */ 147 pj_bool_t hanging_up;/**< Is call in the process of hangup? */ 147 148 148 149 int audio_idx; /**< First active audio media. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4976 r4986 2280 2280 goto on_return; 2281 2281 2282 call->hanging_up = PJ_TRUE; 2283 2282 2284 /* If media transport creation is not yet completed, we will hangup 2283 2285 * the call in the media transport creation callback instead. … … 2313 2315 "Failed to create end session message", 2314 2316 status); 2317 call->hanging_up = PJ_FALSE; 2315 2318 goto on_return; 2316 2319 } … … 2332 2335 "Failed to send end session message", 2333 2336 status); 2337 call->hanging_up = PJ_FALSE; 2334 2338 goto on_return; 2335 2339 } … … 3813 3817 call = (pjsua_call*) inv->dlg->mod_data[pjsua_var.mod.id]; 3814 3818 3819 if (call->hanging_up) 3820 goto on_return; 3821 3815 3822 if (status != PJ_SUCCESS) { 3816 3823 … … 4735 4742 tsx->status_code!=422)) 4736 4743 { 4737 if (tsx->status_code/100 != 2) { 4744 if (tsx->status_code/100 == 2) { 4745 /* If we have sent CANCEL and the original INVITE returns a 2xx, 4746 * we then send BYE. 4747 */ 4748 if (call->hanging_up) { 4749 PJ_LOG(3,(THIS_FILE, "Unsuccessful in cancelling the original " 4750 "INVITE for call %d due to %d response, sending BYE " 4751 "instead", call->index, tsx->status_code)); 4752 call_disconnect(call->inv, PJSIP_SC_OK); 4753 } 4754 } else { 4738 4755 /* Monitor the status of call hold/unhold request */ 4739 4756 if (tsx->last_tx == (pjsip_tx_data*)call->hold_msg) {
Note: See TracChangeset
for help on using the changeset viewer.