summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-12-18 23:42:10 +0000
committerMartin Pycko <martinp@digium.com>2003-12-18 23:42:10 +0000
commitf96c0762ff24135bdf3ed52f0be367e5d65998a4 (patch)
tree3e6dcf1531f45b32f4d5a26efcee9c8a57e20684 /channels/chan_zap.c
parent9e996ceef8e3a0c0174cd539714f4a3eeb250a49 (diff)
Allow doing digital PRI to PRI calls automatically
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index fd5ea7f71..6cff248d7 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -1558,6 +1558,7 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
ast_log(LOG_WARNING, "Unable to create call on channel %d\n", p->channel);
return -1;
}
+ p->digital = ast_test_flag(ast,AST_FLAG_DIGITAL);
if (pri_call(p->pri->pri, p->call, p->digital ? PRI_TRANS_CAP_DIGITAL : PRI_TRANS_CAP_SPEECH,
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,
@@ -3914,6 +3915,8 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
/* Assume calls are not idle calls unless we're told differently */
i->isidlecall = 0;
i->alreadyhungup = 0;
+ i->digital = ctype;
+ ast_set2_flag(tmp, ctype, AST_FLAG_DIGITAL);
#endif
/* clear the fake event in case we posted one before we had ast_chanenl */
i->fake_event = 0;