1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-05 18:13:27 +00:00

add answered and mediaReady methods to CoreSession

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8743 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-06-02 23:37:12 +00:00
parent 946efe1730
commit 830a8493de
5 changed files with 20497 additions and 21737 deletions

@ -279,6 +279,8 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg);
SWITCH_DECLARE(void) setHangupHook(void *hangup_func); SWITCH_DECLARE(void) setHangupHook(void *hangup_func);
SWITCH_DECLARE(bool) ready(); SWITCH_DECLARE(bool) ready();
SWITCH_DECLARE(bool) answered();
SWITCH_DECLARE(bool) mediaReady();
SWITCH_DECLARE(void) execute(char *app, char *data = NULL); SWITCH_DECLARE(void) execute(char *app, char *data = NULL);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -761,6 +761,20 @@ SWITCH_DECLARE(bool) CoreSession::ready() {
return switch_channel_ready(channel) != 0; return switch_channel_ready(channel) != 0;
} }
SWITCH_DECLARE(bool) CoreSession::mediaReady() {
this_check(false);
sanity_check(false);
return switch_channel_media_ready(channel) != 0;
}
SWITCH_DECLARE(bool) CoreSession::answered() {
this_check(false);
sanity_check(false);
return switch_channel_test_flag(channel, CF_ANSWERED) != 0;
}
SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *dest, int timeout) SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *dest, int timeout)
{ {