Changeset 2697


Ignore:
Timestamp:
May 13, 2009 8:57:38 AM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #845: Crash in 100rel after CANCEL is received and 487 is sent (thanks Gang Liu for the report)

File:
1 edited

Legend:

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

    r2670 r2697  
    24812481            /* Remove the message body */ 
    24822482            tdata->msg->body = NULL; 
    2483             pjsip_dlg_send_response(inv->dlg, invite_tsx, tdata); 
     2483            if (inv->options & PJSIP_INV_REQUIRE_100REL) { 
     2484                status = pjsip_100rel_tx_response(inv, tdata); 
     2485            } else { 
     2486                status = pjsip_dlg_send_response(inv->dlg, invite_tsx,  
     2487                                                 tdata); 
     2488            } 
    24842489        } 
    24852490    } 
Note: See TracChangeset for help on using the changeset viewer.