Ignore:
Timestamp:
May 20, 2011 10:29:45 AM (13 years ago)
Author:
nanang
Message:

Fixed #1291:

  • fixed bug in SIP invite module, SDP negotiator state should be reverted back after an SDP re-offer is rejected by application.
  • fixed bug in pjsua_call_on_rx_offer(), evaluating call->audio_index should be done after pjsua_media_channel_create_sdp() is successful.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c

    r3570 r3574  
    37793779    call = (pjsua_call*) inv->dlg->mod_data[pjsua_var.mod.id]; 
    37803780 
    3781     if (call->audio_idx < (int)offer->media_count) 
    3782         conn = offer->media[call->audio_idx]->conn; 
    3783  
    3784     if (!conn) 
    3785         conn = offer->conn; 
    3786  
    37873781    /* Supply candidate answer */ 
    37883782    PJ_LOG(4,(THIS_FILE, "Call %d: received updated media offer", 
     
    37973791        return; 
    37983792    } 
     3793 
     3794    if (call->audio_idx >= 0 && call->audio_idx < (int)offer->media_count) 
     3795        conn = offer->media[call->audio_idx]->conn; 
     3796 
     3797    if (!conn) 
     3798        conn = offer->conn; 
    37993799 
    38003800    /* Check if offer's conn address is zero */ 
Note: See TracChangeset for help on using the changeset viewer.