Pierre Kim wrote:
Um... I think you forgot to attach the patch file?
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andreas Eversberg
Sent: Tuesday, November 13, 2012 8:52 PM
To: Pierre Kim
Cc: 'Holger Hans Peter Freyther'; [email protected]
Subject: Re: ChanModify
Pierre Kim wrote:
This is what I get when I try to compile on jolly/new
chan_lcr.c:693:2: warning: #warning DISABLED DUE TO DOUBLE LOCKING
PROBLEM
chan_lcr.c: In function 'lcr_read':
chan_lcr.c:2901: error: request for member 'integer' in something not
a structure or union
make[1]: *** [chan_lcr.po] Error 1
hi pierre,
can you try this patch? if it works, let me know.
regards,
andreas
sorry
diff --git a/chan_lcr.c b/chan_lcr.c
index dcc9b41..1695056 100644
--- 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)
+#ifdef AST_1_8_OR_HIGHER
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);