mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
get uuid from apr-utils for channel events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@190 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -65,7 +65,8 @@ SWITCH_DECLARE(switch_status) switch_channel_alloc(switch_channel **channel, swi
|
||||
switch_core_hash_init(&(*channel)->variables, pool);
|
||||
switch_buffer_create(pool, &(*channel)->dtmf_buffer, 128);
|
||||
switch_mutex_init(&(*channel)->dtmf_mutex, SWITCH_MUTEX_NESTED, pool);
|
||||
|
||||
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -406,6 +407,8 @@ SWITCH_DECLARE(void) switch_channel_event_set_data(switch_channel *channel, swit
|
||||
|
||||
switch_event_add_header(event, "channel_state", (char *) switch_channel_state_name(channel->state));
|
||||
switch_event_add_header(event, "channel_name", switch_channel_get_name(channel));
|
||||
switch_event_add_header(event, "unique_id", switch_core_session_get_uuid(channel->session));
|
||||
|
||||
|
||||
/* Index Caller's Profile */
|
||||
if (caller_profile) {
|
||||
|
Reference in New Issue
Block a user