dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2003-03-26 00:35:52 +00:00
parent 6d517428b3
commit a42176100d
1 changed files with 4 additions and 2 deletions

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);