git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9889
d0543943-73ff-0310-b7d9-
9358b9ac24b2
switch_core_session_rwunlock(session);
}
}
-
+ printf("WTF [%s\n", input);
expanded = switch_event_expand_headers(event, input);
stream->write_function(stream, "%s", expanded);
if (session->read_codec && session->track_duration) {
if (session->read_frame_count == 0) {
switch_event_t *event;
- session->read_frame_count = (session->read_codec->implementation->samples_per_second /
+ session->read_frame_count = (session->read_codec->implementation->actual_samples_per_second /
session->read_codec->implementation->samples_per_frame) * session->track_duration;
switch_event_create(&event, SWITCH_EVENT_SESSION_HEARTBEAT);