Ignore:
Timestamp:
Apr 24, 2012 5:40:32 AM (12 years ago)
Author:
nanang
Message:

Fix #1423:

  • Added provisional media in call for generating initial and subsequent SDP offer/answer. If a reoffer is rejected by peer, the main call media will remain unchanged and the provisional media will be cleaned up (the cleanup is currently delayed until call gets destroyed or another reoffer/answer occurs).
  • Reenabled media transport dump in pjsua_core.c.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h

    r3982 r4071  
    137137    unsigned             med_cnt;   /**< Number of media in SDP.            */ 
    138138    pjsua_call_media     media[PJSUA_MAX_CALL_MEDIA]; /**< Array of media   */ 
     139    unsigned             med_prov_cnt;/**< Number of provisional media.     */ 
     140    pjsua_call_media     media_prov[PJSUA_MAX_CALL_MEDIA]; 
     141                                    /**< Array of provisional media.        */ 
     142 
    139143    int                  audio_idx; /**< First active audio media.          */ 
    140144    pj_mutex_t          *med_ch_mutex;/**< Media channel callback's mutex.  */ 
     
    604608void pjsua_set_media_tp_state(pjsua_call_media *call_med, pjsua_med_tp_st tp_st); 
    605609 
     610void pjsua_media_prov_clean_up(pjsua_call_id call_id); 
     611 
    606612/* Callback to receive media events */ 
    607613pj_status_t call_media_on_event(pjmedia_event *event, 
Note: See TracChangeset for help on using the changeset viewer.