Changeset 3324 for pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
- Timestamp:
- Sep 28, 2010 8:03:23 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r3243 r3324 3730 3730 */ 3731 3731 if (tsx->status_code/100 != 2) { 3732 inv_set_cause(inv, tsx->status_code, &tsx->status_text); 3733 inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e); 3732 if (tsx->role == PJSIP_ROLE_UAC) { 3733 inv_set_cause(inv, tsx->status_code, &tsx->status_text); 3734 inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e); 3735 } else { 3736 pjsip_tx_data *bye; 3737 pj_status_t status; 3738 3739 /* Send BYE */ 3740 status = pjsip_dlg_create_request(inv->dlg, 3741 pjsip_get_bye_method(), 3742 -1, &bye); 3743 if (status == PJ_SUCCESS) { 3744 pjsip_inv_send_msg(inv, bye); 3745 } 3746 } 3734 3747 } 3735 3748 break;
Note: See TracChangeset
for help on using the changeset viewer.