Ignore:
Timestamp:
Jan 9, 2012 11:51:56 AM (9 years ago)
Author:
ming
Message:

Fixes #1442: Unable to make call if disabled media is included

Add an API pjsua_schedule_timer2() to allow application to schedule a callback function to be executed after a specified time interval. This enables app to post a delayed job which, in this case, allows the initialization of all media transport creations to finish first before we get the media transport creations result.

File:
1 edited

Legend:

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

    r3928 r3938  
    7777    pjmedia_transport   *tp;        /**< Current media transport (can be 0) */ 
    7878    pj_status_t          tp_ready;  /**< Media transport status.            */ 
     79    pj_status_t          tp_result; /**< Media transport creation result.   */ 
    7980    pjmedia_transport   *tp_orig;   /**< Original media transport           */ 
    8081    pj_bool_t            tp_auto_del; /**< May delete media transport       */ 
     
    457458    pjsua_vid_win        win[PJSUA_MAX_VID_WINS]; /**< Array of windows */ 
    458459#endif 
     460 
     461    /* Timer entry list */ 
     462    struct timer_list 
     463    { 
     464        PJ_DECL_LIST_MEMBER(struct timer_list); 
     465        pj_timer_entry          entry; 
     466        void                  (*cb)(void *user_data); 
     467        void                   *user_data; 
     468    } timer_list; 
     469    pj_mutex_t          *timer_mutex; 
    459470}; 
    460471 
Note: See TracChangeset for help on using the changeset viewer.