diff options
author | Liong Sauw Ming <ming@teluu.com> | 2012-01-09 11:51:56 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2012-01-09 11:51:56 +0000 |
commit | ca35d13e6b2018cf6c5423bda2c0c59122aac7f0 (patch) | |
tree | a661020f7d3ababf80abf54c074cf324dc89ce31 /pjsip/include/pjsua-lib/pjsua_internal.h | |
parent | 4e026426606ca3ac4d438284ca70326ed7ffc2fe (diff) |
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.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3938 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua_internal.h')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index ec236197..99937d3e 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -76,6 +76,7 @@ struct pjsua_call_media pjmedia_transport *tp; /**< Current media transport (can be 0) */ pj_status_t tp_ready; /**< Media transport status. */ + pj_status_t tp_result; /**< Media transport creation result. */ pjmedia_transport *tp_orig; /**< Original media transport */ pj_bool_t tp_auto_del; /**< May delete media transport */ pjsua_med_tp_st tp_st; /**< Media transport state */ @@ -456,6 +457,16 @@ struct pjsua_data #if PJSUA_HAS_VIDEO pjsua_vid_win win[PJSUA_MAX_VID_WINS]; /**< Array of windows */ #endif + + /* Timer entry list */ + struct timer_list + { + PJ_DECL_LIST_MEMBER(struct timer_list); + pj_timer_entry entry; + void (*cb)(void *user_data); + void *user_data; + } timer_list; + pj_mutex_t *timer_mutex; }; |