main/cdrs: Preserve context/extension when executing a Macro or GoSub
[asterisk/asterisk.git] / apps / app_echo.c
index df5a914..d8b2079 100644 (file)
@@ -58,11 +58,6 @@ static const char app[] = "Echo";
 static int echo_exec(struct ast_channel *chan, const char *data)
 {
        int res = -1;
-       struct ast_format format;
-
-       ast_best_codec(ast_channel_nativeformats(chan), &format);
-       ast_set_write_format(chan, &format);
-       ast_set_read_format(chan, &format);
 
        while (ast_waitfor(chan, -1) > -1) {
                struct ast_frame *f = ast_read(chan);