Changeset 3381


Ignore:
Timestamp:
Dec 2, 2010 10:08:59 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1166: Detection of offer/answer glare condition with re-INVITE

File:
1 edited

Legend:

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

    r3324 r3381  
    39433943            } 
    39443944 
     3945            /* Send 491 if we receive re-INVITE while another offer/answer 
     3946             * negotiation is in progress 
     3947             */ 
     3948            if (pjmedia_sdp_neg_get_state(inv->neg) != 
     3949                    PJMEDIA_SDP_NEG_STATE_DONE) 
     3950            { 
     3951                status = pjsip_dlg_create_response(inv->dlg, rdata, 
     3952                                                   PJSIP_SC_REQUEST_PENDING, 
     3953                                                   NULL, &tdata); 
     3954                if (status != PJ_SUCCESS) 
     3955                    return; 
     3956                pjsip_timer_update_resp(inv, tdata); 
     3957                status = pjsip_dlg_send_response(dlg, tsx, tdata); 
     3958                return; 
     3959            } 
     3960 
    39453961            /* Process SDP in incoming message. */ 
    39463962            status = inv_check_sdp_in_incoming_msg(inv, tsx, rdata); 
Note: See TracChangeset for help on using the changeset viewer.