提交 c8737393 authored 作者: Raymond Chandler's avatar Raymond Chandler

patch from MODAPP-196

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11229 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ac91c18c
...@@ -175,6 +175,7 @@ static switch_bool_t stress_callback(switch_media_bug_t *bug, void *user_data, s ...@@ -175,6 +175,7 @@ static switch_bool_t stress_callback(switch_media_bug_t *bug, void *user_data, s
if (switch_event_create(&event, SWITCH_EVENT_DETECTED_SPEECH) == SWITCH_STATUS_SUCCESS) { if (switch_event_create(&event, SWITCH_EVENT_DETECTED_SPEECH) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Speech-Type", "stress-level"); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Speech-Type", "stress-level");
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%0.2f", sth->stress); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%0.2f", sth->stress);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Unique-ID", switch_core_session_get_uuid(sth->session));
if (switch_event_dup(&dup, event) == SWITCH_STATUS_SUCCESS) { if (switch_event_dup(&dup, event) == SWITCH_STATUS_SUCCESS) {
switch_event_fire(&dup); switch_event_fire(&dup);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论