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.h

    r3925 r3938  
    19971997 * 
    19981998 * @param entry         Timer heap entry. 
    1999  * @param delay     The interval to expire. 
     1999 * @param delay         The interval to expire. 
    20002000 * 
    20012001 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     
    20062006                                          const pj_time_val *delay); 
    20072007 
     2008/** 
     2009 * Schedule a callback function to be called after a specified time interval. 
     2010 * Note that the callback may be executed by different thread, depending on 
     2011 * whether worker thread is enabled or not. 
     2012 * 
     2013 * @param cb            The callback function. 
     2014 * @param user_data     The user data. 
     2015 * @param msec_delay    The time interval in msec. 
     2016 * 
     2017 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     2018 */ 
     2019PJ_DECL(pj_status_t) pjsua_schedule_timer2(void (*cb)(void *user_data), 
     2020                                           void *user_data, 
     2021                                           unsigned msec_delay); 
    20082022 
    20092023/** 
Note: See TracChangeset for help on using the changeset viewer.