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/pjsip-ua/sip_inv.c

    r3553 r3574  
    40144014                const pjsip_hdr *accept; 
    40154015 
     4016                /* The incoming SDP is unacceptable. If the SDP negotiator 
     4017                 * state has just been changed, i.e: DONE -> REMOTE_OFFER, 
     4018                 * revert it back. 
     4019                 */ 
     4020                if (pjmedia_sdp_neg_get_state(inv->neg) == 
     4021                    PJMEDIA_SDP_NEG_STATE_REMOTE_OFFER) 
     4022                { 
     4023                    pjmedia_sdp_neg_cancel_offer(inv->neg); 
     4024                } 
     4025 
    40164026                status = pjsip_dlg_create_response(inv->dlg, rdata,  
    40174027                                                   488, NULL, &tdata); 
Note: See TracChangeset for help on using the changeset viewer.