diff --git a/chan_capi_chat.c b/chan_capi_chat.c index 130f317..d1eb756 100644 --- a/chan_capi_chat.c +++ b/chan_capi_chat.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "chan_capi_platform.h" #include "chan_capi20.h" @@ -502,7 +503,11 @@ static void chat_handle_events(struct ast_channel *c, struct capi_pvt *i, /* ignore NULL frame */ cc_verbose(5, 1, VERBOSE_PREFIX_3 "%s: chat: NULL frame, ignoring.\n", i->vname); +#ifdef CC_AST_HAS_VERSION_1_4 } else if ((f->frametype == AST_FRAME_DTMF_END) && (voice_message == NULL)) { +#else + } else if ((f->frametype == AST_FRAME_DTMF) && (voice_message == NULL)) { +#endif pbx_capi_voicecommand_process_digit(i, c, FRAME_SUBCLASS_INTEGER(f->subclass)); } else { cc_verbose(3, 1, VERBOSE_PREFIX_3 "%s: chat: unhandled frame %d/%d.\n",