提交 ab947f5b authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5498

上级 658c4d73
...@@ -4624,7 +4624,8 @@ SWITCH_DECLARE(void) switch_channel_clear_device_record(switch_channel_t *channe ...@@ -4624,7 +4624,8 @@ SWITCH_DECLARE(void) switch_channel_clear_device_record(switch_channel_t *channe
int x = 0; int x = 0;
char prefix[80] = ""; char prefix[80] = "";
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "type", "device"); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Type", "device");
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-ID", channel->device_node->parent->device_id);
switch_mutex_lock(channel->device_node->parent->mutex); switch_mutex_lock(channel->device_node->parent->mutex);
for(np = channel->device_node->parent->uuid_list; np; np = np->next) { for(np = channel->device_node->parent->uuid_list; np; np = np->next) {
...@@ -4754,6 +4755,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_ ...@@ -4754,6 +4755,7 @@ static void switch_channel_check_device_state(switch_channel_t *channel, switch_
} }
if (switch_event_create(&event, SWITCH_EVENT_DEVICE_STATE) == SWITCH_STATUS_SUCCESS) { if (switch_event_create(&event, SWITCH_EVENT_DEVICE_STATE) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-State-Name", drec->device_id);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Last-Device-State", switch_channel_device_state2str(drec->last_state)); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Last-Device-State", switch_channel_device_state2str(drec->last_state));
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-State", switch_channel_device_state2str(drec->state)); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-State", switch_channel_device_state2str(drec->state));
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-Call-State", switch_channel_callstate2str(callstate)); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Device-Call-State", switch_channel_callstate2str(callstate));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论