diff options
author | Sean Bright <sean@malleable.com> | 2009-05-02 16:43:59 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2009-05-02 16:43:59 +0000 |
commit | a0766f8113a7ddf903a28d7cba199a45199080f4 (patch) | |
tree | 3e02650f58a62f69df3a73bd0b4df00098e6b02d /channels/chan_dahdi.c | |
parent | f2d26b3ddbaa83e431ad97191a739e74a49ad84d (diff) |
Conditional include ioctl's to change EC policy based on DAHDI caps.
This feels like a sane change (wouldn't compile without this addition), but I'm
not intimately familiar with this code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index d2f18a97a..a301b0cf2 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -5132,6 +5132,7 @@ static int dahdi_func_write(struct ast_channel *chan, const char *function, char ast_mutex_lock(&p->lock); dahdi_disable_ec(p); ast_mutex_unlock(&p->lock); +#ifdef HAVE_DAHDI_ECHOCANCEL_FAX_MODE } else if (!strcasecmp(value, "fax")) { int blah = 1; @@ -5154,6 +5155,7 @@ static int dahdi_func_write(struct ast_channel *chan, const char *function, char ast_log(LOG_WARNING, "Unable to place echocan into voice mode on channel %d: %s\n", p->channel, strerror(errno)); } ast_mutex_unlock(&p->lock); +#endif } else { ast_log(LOG_WARNING, "Unsupported value '%s' provided for '%s' item.\n", value, data); res = -1; |