Changeset 5922


Ignore:
Timestamp:
12/12/18 09:36:17 (6 weeks ago)
Author:
riza
Message:

Close #2170: When using pjsua2 API, Re-INVITE with no SDP will be responded with 488 response.

File:
1 edited

Legend:

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

    r5921 r5922  
    49304930                } 
    49314931 
    4932                 /* If application lets us answer the re-INVITE, 
    4933                  * application must set the SDP answer with 
     4932                /* If application lets us answer the re-INVITE which contains  
     4933                 * SDP, application must set the SDP answer with 
    49344934                 * #pjsip_inv_set_sdp_answer(). 
    49354935                 */ 
    4936                 if (pjmedia_sdp_neg_get_state(inv->neg) != 
    4937                     PJMEDIA_SDP_NEG_STATE_WAIT_NEGO) 
     4936                if (sdp_info->sdp &&  
     4937                    (pjmedia_sdp_neg_get_state(inv->neg) != 
     4938                        PJMEDIA_SDP_NEG_STATE_WAIT_NEGO)) 
    49384939                { 
    49394940                    status = PJ_EINVALIDOP; 
Note: See TracChangeset for help on using the changeset viewer.