mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
make conference verbose-events param to control if events have all the channel data or not
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11074 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2b3766a053
commit
71011217cb
@ -472,6 +472,9 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_name_state(_In_ const char
|
|||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(void) switch_channel_event_set_data(_In_ switch_channel_t *channel, _In_ switch_event_t *event);
|
SWITCH_DECLARE(void) switch_channel_event_set_data(_In_ switch_channel_t *channel, _In_ switch_event_t *event);
|
||||||
|
|
||||||
|
SWITCH_DECLARE(void) switch_channel_event_set_basic_data(_In_ switch_channel_t *channel, _In_ switch_event_t *event);
|
||||||
|
SWITCH_DECLARE(void) switch_channel_event_set_extended_data(_In_ switch_channel_t *channel, _In_ switch_event_t *event);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Expand varaibles in a string based on the variables in a paticular channel
|
\brief Expand varaibles in a string based on the variables in a paticular channel
|
||||||
\param channel channel to expand the variables from
|
\param channel channel to expand the variables from
|
||||||
|
@ -1140,13 +1140,12 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_c
|
|||||||
return channel->state;
|
return channel->state;
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, switch_event_t *event)
|
SWITCH_DECLARE(void) switch_channel_event_set_basic_data(switch_channel_t *channel, switch_event_t *event)
|
||||||
{
|
{
|
||||||
switch_caller_profile_t *caller_profile, *originator_caller_profile = NULL, *originatee_caller_profile = NULL;
|
switch_caller_profile_t *caller_profile, *originator_caller_profile = NULL, *originatee_caller_profile = NULL;
|
||||||
switch_event_header_t *hi;
|
|
||||||
switch_codec_t *codec;
|
switch_codec_t *codec;
|
||||||
char state_num[25];
|
char state_num[25];
|
||||||
int x;
|
|
||||||
switch_mutex_lock(channel->profile_mutex);
|
switch_mutex_lock(channel->profile_mutex);
|
||||||
|
|
||||||
if ((caller_profile = switch_channel_get_caller_profile(channel))) {
|
if ((caller_profile = switch_channel_get_caller_profile(channel))) {
|
||||||
@ -1199,6 +1198,14 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
SWITCH_DECLARE(void) switch_channel_event_set_extended_data(switch_channel_t *channel, switch_event_t *event)
|
||||||
|
{
|
||||||
|
switch_event_header_t *hi;
|
||||||
|
int x;
|
||||||
|
|
||||||
|
switch_channel_event_set_basic_data(channel, event);
|
||||||
|
|
||||||
if (switch_channel_test_flag(channel, CF_VERBOSE_EVENTS) ||
|
if (switch_channel_test_flag(channel, CF_VERBOSE_EVENTS) ||
|
||||||
event->event_id == SWITCH_EVENT_CHANNEL_ORIGINATE ||
|
event->event_id == SWITCH_EVENT_CHANNEL_ORIGINATE ||
|
||||||
@ -1235,6 +1242,15 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, sw
|
|||||||
switch_mutex_unlock(channel->profile_mutex);
|
switch_mutex_unlock(channel->profile_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel_t *channel, switch_event_t *event)
|
||||||
|
{
|
||||||
|
switch_channel_event_set_basic_data(channel, event);
|
||||||
|
switch_channel_event_set_extended_data(channel, event);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SWITCH_DECLARE(void) switch_channel_set_caller_profile(switch_channel_t *channel, switch_caller_profile_t *caller_profile)
|
SWITCH_DECLARE(void) switch_channel_set_caller_profile(switch_channel_t *channel, switch_caller_profile_t *caller_profile)
|
||||||
{
|
{
|
||||||
char *uuid = NULL;
|
char *uuid = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user