Ignore:
Timestamp:
Sep 11, 2008 8:00:47 AM (12 years ago)
Author:
bennylp
Message:

Ticket #620: PRACK is sent to the wrong UAS when 100rel is used and the dialog forks (thanks Ruud Klaver for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_dialog.c

    r2194 r2271  
    16971697     * The workaround for this is to take the To tag received in the 
    16981698     * 2xx response and set it as remote tag. 
     1699     * 
     1700     * New update: 
     1701     * We also need to update the dialog for 1xx responses, to handle the 
     1702     * case when 100rel is used, otherwise PRACK will be sent to the  
     1703     * wrong target. 
    16991704     */ 
    17001705    if ((dlg->state == PJSIP_DIALOG_STATE_NULL &&  
     
    17051710        (dlg->role==PJSIP_ROLE_UAC && 
    17061711         !dlg->uac_has_2xx && 
    1707          res_code/100 == 2 && 
     1712         res_code/100 <= 2 && 
    17081713         pjsip_method_creates_dialog(&rdata->msg_info.cseq->method) && 
    17091714         pj_strcmp(&dlg->remote.info->tag, &rdata->msg_info.to->tag))) 
Note: See TracChangeset for help on using the changeset viewer.