Changeset 2060 for pjproject/trunk


Ignore:
Timestamp:
Jun 26, 2008 3:46:52 PM (16 years ago)
Author:
bennylp
Message:

Fixed bug: media got deactivated when SDP negotiation fails on re-INVITE or UPDATE while it should be unaffected

File:
1 edited

Legend:

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

    r2039 r2060  
    25222522        pjsua_perror(THIS_FILE, "SDP negotiation has failed", status); 
    25232523 
     2524        /* Do not deinitialize media since this may be a re-INVITE or 
     2525         * UPDATE (which in this case the media should not get affected 
     2526         * by the failed re-INVITE/UPDATE). The media will be shutdown 
     2527         * when call is disconnected anyway. 
     2528         */ 
    25242529        /* Stop/destroy media, if any */ 
    2525         pjsua_media_channel_deinit(call->index); 
     2530        /*pjsua_media_channel_deinit(call->index);*/ 
    25262531 
    25272532        /* Disconnect call if we're not in the middle of initializing an 
     
    25712576                     status); 
    25722577        call_disconnect(inv, PJSIP_SC_NOT_ACCEPTABLE_HERE); 
    2573         pjsua_media_channel_deinit(call->index); 
     2578        /* No need to deinitialize; media will be shutdown when call 
     2579         * state is disconnected anyway. 
     2580         */ 
     2581        /*pjsua_media_channel_deinit(call->index);*/ 
    25742582        PJSUA_UNLOCK(); 
    25752583        return; 
Note: See TracChangeset for help on using the changeset viewer.