Ticket #817: pjsip-2553-sip_inv-terminate-reinvite-tsx-on-cancel.patch

File pjsip-2553-sip_inv-terminate-reinvite-tsx-on-cancel.patch, 780 bytes (added by bennylp, 13 years ago)

Patch from Ruud Klaver to cancel incoming re-INVITE on incoming CANCEL

  • pjsip/src/pjsip-ua/sip_inv.c

     
    35233523    { 
    35243524 
    35253525        /* 
    3526          * Handle strandled incoming CANCEL. 
     3526         * Handle strandled incoming CANCEL or CANCEL for re-INVITE 
    35273527         */ 
    3528         pjsip_rx_data *rdata = e->body.tsx_state.src.rdata; 
    3529         pjsip_tx_data *tdata; 
    3530         pj_status_t status; 
     3528   inv_respond_incoming_cancel(inv, tsx, e->body.tsx_state.src.rdata); 
    35313529 
    3532         status = pjsip_dlg_create_response(dlg, rdata, 200, NULL, &tdata); 
    3533         if (status != PJ_SUCCESS) return; 
    3534  
    3535         status = pjsip_dlg_send_response(dlg, tsx, tdata); 
    3536         if (status != PJ_SUCCESS) return; 
    3537  
    35383530    } 
    35393531    else if (tsx->method.id == PJSIP_INVITE_METHOD && 
    35403532             tsx->role == PJSIP_ROLE_UAS)