From: Mark Spencer Date: Wed, 23 Apr 2003 23:03:08 +0000 (+0000) Subject: Switch to audio mode on confmute, too X-Git-Tag: 0.5.0~596 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c75324a1a46b13530502c743ea283fa3eb242e6c;p=thirdparty%2Fasterisk.git Switch to audio mode on confmute, too git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@900 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 8932f0a4c0..dc8c44041c 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1001,8 +1001,14 @@ static inline int zt_set_hook(int fd, int hs) static inline int zt_confmute(struct zt_pvt *p, int muted) { - int x, res; + int x, y, res; x = muted; + if (p->sig == SIG_PRI) { + y = 1; + res = ioctl(p->subs[SUB_REAL].zfd, ZT_CONFMUTE, &x); + if (res) + ast_log(LOG_WARNING, "Unable to set audio mode on '%d'\n", p->channel); + } res = ioctl(p->subs[SUB_REAL].zfd, ZT_CONFMUTE, &x); if (res < 0) ast_log(LOG_WARNING, "zt confmute(%d) failed on channel %d: %s\n", muted, p->channel, strerror(errno));