Fixed _chat code for asterisk 1.2 compatibility.

This commit is contained in:
MelwareDE 2010-03-15 16:24:22 +00:00
parent 5f588ddd6c
commit 8eea241040
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include <errno.h>
#include <sys/signal.h>
#include <sys/time.h>
#include <ctype.h>
#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",