projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed version issue of chan_lcr
[lcr.git]
/
chan_lcr.c
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
dcc9b41
..
1695056
100644
(file)
--- a/
chan_lcr.c
+++ b/
chan_lcr.c
@@
-2898,7
+2898,11
@@
static struct ast_frame *lcr_read(struct ast_channel *ast)
if (call->dsp)
f = ast_dsp_process(ast, call->dsp, &call->read_fr);
if (f && f->frametype == AST_FRAME_DTMF)
if (call->dsp)
f = ast_dsp_process(ast, call->dsp, &call->read_fr);
if (f && f->frametype == AST_FRAME_DTMF)
+#ifdef AST_1_8_OR_HIGHER
CDEBUG(call, ast, "Asterisk detected inband DTMF: %c.\n", f->subclass.integer);
CDEBUG(call, ast, "Asterisk detected inband DTMF: %c.\n", f->subclass.integer);
+#else
+ CDEBUG(call, ast, "Asterisk detected inband DTMF: %c.\n", f->subclass);
+#endif
ast_mutex_unlock(&chan_lock);
ast_mutex_unlock(&chan_lock);