Changeset 5104 for pjproject/trunk


Ignore:
Timestamp:
Jun 11, 2015 8:39:42 AM (9 years ago)
Author:
riza
Message:

Re #1857: (Fix) BYE is not sent when 200/OK is not ACK-ed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r5081 r5104  
    292292                          const pj_str_t *cause_text) 
    293293{ 
    294     if (cause_code > inv->cause) { 
     294    if ((cause_code > inv->cause) || inv->pending_bye) { 
    295295        inv->cause = (pjsip_status_code) cause_code; 
    296296        if (cause_text) 
     
    45074507                    if (status == PJ_SUCCESS) { 
    45084508                        pjsip_inv_send_msg(inv, bye); 
     4509 
     4510                        if (inv->pending_bye) { 
     4511                            pjsip_tx_data_dec_ref(inv->pending_bye); 
     4512                            inv->pending_bye = NULL; 
     4513                        } 
    45094514                    } 
    45104515                } 
Note: See TracChangeset for help on using the changeset viewer.