Ignore:
Timestamp:
Apr 30, 2014 3:04:12 PM (11 years ago)
Author:
ming
Message:

Fixed #1764: Use latest early media SDP received on forked early media on 18x response

File:
1 edited

Legend:

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

    r4819 r4830  
    18341834        if (tsx->role == PJSIP_ROLE_UAC && 
    18351835            (st_code/100 == 2 || 
    1836              (st_code==183 && pjsip_cfg()->endpt.follow_early_media_fork)) && 
     1836             (st_code/10 == 18 /* st_code == 18x */ 
     1837              && pjsip_cfg()->endpt.follow_early_media_fork)) && 
    18371838            tsx_inv_data->done_early && 
    18381839            pj_stricmp(&tsx_inv_data->done_tag, &res_tag)) 
     
    18431844                      "after SDP negotiation has been done in early " 
    18441845                      "media. Renegotiating SDP..", 
    1845                       (st_code==183? "early" : "final" ))); 
     1846                      (st_code/10==18? "early" : "final" ))); 
    18461847 
    18471848            /* Retrieve original SDP offer from INVITE request */ 
     
    18561857            if (status != PJ_SUCCESS) { 
    18571858                PJ_LOG(1,(inv->obj_name, "Error updating local offer for " 
    1858                           "forked 2xx/183 response (err=%d)", status)); 
     1859                          "forked 2xx/18x response (err=%d)", status)); 
    18591860                return status; 
    18601861            } 
Note: See TracChangeset for help on using the changeset viewer.