mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
add bridged method to scripting langs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16854 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -896,6 +896,19 @@ SWITCH_DECLARE(bool) CoreSession::ready() {
|
||||
return switch_channel_ready(channel) != 0;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(bool) CoreSession::bridged() {
|
||||
|
||||
this_check(false);
|
||||
|
||||
if (!session) {
|
||||
return false;
|
||||
}
|
||||
sanity_check(false);
|
||||
|
||||
return (switch_channel_up(channel) && switch_channel_test_flag(channel, CF_BRIDGED));
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(bool) CoreSession::mediaReady() {
|
||||
|
||||
this_check(false);
|
||||
|
Reference in New Issue
Block a user