Author: anthm Date: Fri Aug 22 16:47:32 2008 New Revision: 9356 Modified: freeswitch/trunk/src/mod/applications/mod_stress/mod_stress.cpp Log: update Modified: freeswitch/trunk/src/mod/applications/mod_stress/mod_stress.cpp ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_stress/mod_stress.cpp (original) +++ freeswitch/trunk/src/mod/applications/mod_stress/mod_stress.cpp Fri Aug 22 16:47:32 2008 @@ -170,10 +170,11 @@ if (sth->stress) { switch_event_t *event, *dup; - + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Stress %0.2f\n"); + 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(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%02f", sth->stress); + switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Stress-Level", "%0.2f", sth->stress); if (switch_event_dup(&dup, event) == SWITCH_STATUS_SUCCESS) { switch_event_fire(&dup); }