mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-12 01:52:38 +00:00
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:
@@ -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
Block a user