/*** DOCUMENTATION
<application name="Echo" language="en_US">
<synopsis>
- Echo audio, video, DTMF back to the calling party
+ Echo media, DTMF back to the calling party
</synopsis>
<syntax />
<description>
- <para>Echos back any audio, video or DTMF frames read from the calling
- channel back to itself. Note: If '#' detected application exits</para>
+ <para>Echos back any media or DTMF frames read from the calling
+ channel back to itself. This will not echo CONTROL, MODEM, or NULL
+ frames. Note: If '#' detected application exits.</para>
<para>This application does not automatically answer and should be
preceeded by an application such as Answer() or Progress().</para>
</description>
}
f->delivery.tv_sec = 0;
f->delivery.tv_usec = 0;
- if (ast_write(chan, f)) {
+ if (f->frametype != AST_FRAME_CONTROL
+ && f->frametype != AST_FRAME_MODEM
+ && f->frametype != AST_FRAME_NULL
+ && ast_write(chan, f)) {
ast_frfree(f);
goto end;
}