diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-08 00:23:20 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-08 00:23:20 +0000 |
commit | b4ff3de708c65687894f641b6ccf9b2a13b92869 (patch) | |
tree | 5c3051cb3280ae8aac13235f572da9296d27f065 /channels | |
parent | 8ea5ae4418c3b1e36c3e107ca921d4b3b839fef4 (diff) |
Omit PRI layer 1 information for data call (need updated libpri too) (bug #1012)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2140 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 31a4113f2..45b07b922 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -1598,7 +1598,8 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout) p->prioffset, p->pri->nodetype == PRI_NETWORK ? 0 : 1, 1, l, p->pri->dialplan - 1, n, l ? (ast->restrictcid ? PRES_PROHIB_USER_NUMBER_PASSED_SCREEN : (p->use_callingpres ? ast->callingpres : PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN)) : PRES_NUMBER_NOT_AVAILABLE, c + p->stripmsd, p->pri->dialplan - 1, - ((p->law == ZT_LAW_ALAW) ? PRI_LAYER_1_ALAW : PRI_LAYER_1_ULAW))) { + (p->digital ? -1 : + ((p->law == ZT_LAW_ALAW) ? PRI_LAYER_1_ALAW : PRI_LAYER_1_ULAW)))) { ast_log(LOG_WARNING, "Unable to setup call to %s\n", c + p->stripmsd); return -1; } |