aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-23 17:14:29 +0000
committerjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-23 17:14:29 +0000
commitab99e2e10eef37f28f07cfb3ceee92f2f6f0b915 (patch)
treea9f8d3cf67367ff98a5f1c5866bc5666434a50c1 /apps
parentf9d207f4d433e7e9660c1255754a17c37fb4da1e (diff)
Fixed so that dial from a Zap channel to a Zap channel in 'dataquality' mode actually puts channels into CLEAR mode (so that 56k ISDN calls will work thru it) 64K calls STILL DONT.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@677 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index ac9953bc3..e68f5137e 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -545,12 +545,16 @@ static int dial_exec(struct ast_channel *chan, void *data)
int x = 2;
if (tmp->dataquality) x = 0;
ast_channel_setoption(chan,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
+ x = 0;
+ ast_channel_setoption(chan,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
}
if (!strcmp(peer->type,"Zap"))
{
int x = 2;
if (tmp->dataquality) x = 0;
ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0);
+ x = 0;
+ ast_channel_setoption(chan,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0);
}
hanguptree(outgoing, peer);
outgoing = NULL;
@@ -573,7 +577,7 @@ static int dial_exec(struct ast_channel *chan, void *data)
ast_log(LOG_DEBUG, "app_dial: sendurl=%s.\n", url);
ast_channel_sendurl( peer, url );
} /* /JDG */
- res = ast_bridge_call(chan, peer, allowredir, allowdisconnect);
+ res = ast_bridge_call(chan, peer, allowredir, allowdisconnect | tmp->dataquality);
ast_hangup(peer);
}
out: