Oops for mgcp and logger fix for old linux
[asterisk/asterisk.git] / channels / chan_mgcp.c
index a0b0724..e25a0b2 100755 (executable)
@@ -899,7 +899,7 @@ static int mgcp_call(struct ast_channel *ast, char *dest, int timeout)
                res = -1;
        }
        ast_mutex_unlock(&sub->lock);
-       ast_queue_frame(ast, AST_CONTROL_RINGING);
+       ast_queue_control(ast, AST_CONTROL_RINGING);
        return res;
 }