mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
add timetable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@669 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5492b17e94
commit
d8146aa7c7
2 files changed
+21
-3
No files matched your search
@@ -44,6 +44,12 @@ extern "C" {
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
typedef struct {
|
||||
switch_time_t created;
|
||||
switch_time_t answered;
|
||||
switch_time_t hungup;
|
||||
} switch_channel_timetable_t;
|
||||
|
||||
/**
|
||||
* @defgroup switch_channel Channel Functions
|
||||
* @ingroup FREESWITCH
|
||||
@@ -67,6 +73,13 @@ SWITCH_DECLARE(switch_channel_state) switch_channel_get_state(switch_channel *ch
|
||||
*/
|
||||
SWITCH_DECLARE(switch_channel_state) switch_channel_set_state(switch_channel *channel, switch_channel_state state);
|
||||
|
||||
/*!
|
||||
\brief View the timetable of a channel
|
||||
\param channel channel to retrieve timetable from
|
||||
\returns a pointer to the channel's timetable (created, answered, etc..)
|
||||
*/
|
||||
SWITCH_DECLARE(switch_channel_timetable_t *) switch_channel_get_timetable(switch_channel *channel);
|
||||
|
||||
/*!
|
||||
\brief Allocate a new channel
|
||||
\param channel NULL pointer to allocate channel to
|
||||
|
||||
Reference in new issue
Block a user