Ignore:
Timestamp:
May 20, 2015 8:46:11 AM (7 years ago)
Author:
nanang
Message:

Fixed #1854:

  • Hangup the call immediately when there is no active media, this is only for initial INVITE.
  • Stop media and destroy media transport properly upon any error.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r5096 r5099  
    38903890    /* Update media channel with the new SDP */ 
    38913891    status = pjsua_media_channel_update(call->index, local_sdp, remote_sdp); 
     3892 
     3893    /* If this is not the initial INVITE, don't disconnect call due to 
     3894     * no media after SDP negotiation. 
     3895     */ 
     3896    if (status == PJMEDIA_SDPNEG_ENOMEDIA && 
     3897        call->inv->state == PJSIP_INV_STATE_CONFIRMED) 
     3898    { 
     3899        status = PJ_SUCCESS; 
     3900    } 
     3901 
     3902    /* Disconnect call after failure in media channel update */ 
    38923903    if (status != PJ_SUCCESS) { 
    38933904        pjsua_perror(THIS_FILE, "Unable to create media session", 
Note: See TracChangeset for help on using the changeset viewer.