mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
One mo app_dial fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -548,13 +548,13 @@ static int dial_exec(struct ast_channel *chan, void *data)
|
|||||||
if (!strcmp(chan->type,"Zap"))
|
if (!strcmp(chan->type,"Zap"))
|
||||||
{
|
{
|
||||||
int x = 2;
|
int x = 2;
|
||||||
if (tmp->dataquality | tmp->clearchannel) x = 0;
|
if (tmp->dataquality || tmp->clearchannel) x = 0;
|
||||||
ast_channel_setoption(chan,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
|
ast_channel_setoption(chan,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
|
||||||
}
|
}
|
||||||
if (!strcmp(peer->type,"Zap"))
|
if (!strcmp(peer->type,"Zap"))
|
||||||
{
|
{
|
||||||
int x = 2;
|
int x = 2;
|
||||||
if (tmp->dataquality) x = 0;
|
if (tmp->dataquality || tmp->clearchannel) x = 0;
|
||||||
ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
|
ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
|
||||||
}
|
}
|
||||||
hanguptree(outgoing, peer);
|
hanguptree(outgoing, peer);
|
||||||
|
|||||||
Reference in New Issue
Block a user