Only set clear mode on PRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@693 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
6d517428b3
commit
a42176100d
|
@ -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);
|
||||
|
||||
|
|
Reference in New Issue