Only set clear mode on PRI

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-03-26 00:35:52 +00:00
parent d2e7f73adc
commit 56fea820dc

View File

@@ -1440,8 +1440,10 @@ static int zt_hangup(struct ast_channel *ast)
index = zt_get_index(ast, p, 1);
x = 1;
ast_channel_setoption(ast,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
if (p->sig == SIG_PRI) {
x = 1;
ast_channel_setoption(ast,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
}
restore_gains(p);