提交 2ff0b7dc authored 作者: Anthony Minessale's avatar Anthony Minessale

add header to event

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14593 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 454c1056
......@@ -438,6 +438,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
switch (type) {
case SWITCH_ABC_TYPE_INIT:
if (switch_event_create(&event, SWITCH_EVENT_RECORD_START) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Record-File-Path", rh->file);
switch_channel_event_set_data(channel, event);
switch_event_fire(&event);
}
......@@ -453,6 +454,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
if (switch_event_create(&event, SWITCH_EVENT_RECORD_STOP) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(channel, event);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Record-File-Path", rh->file);
switch_event_fire(&event);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论