aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-18 23:42:10 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-18 23:42:10 +0000
commit004e6fbc01058a6d4378591c952ff81224486fe2 (patch)
tree3e6dcf1531f45b32f4d5a26efcee9c8a57e20684 /channels
parentec575218eade22e49ff78bf6bf8c2ebac1e2ad88 (diff)
Allow doing digital PRI to PRI calls automatically
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1868 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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;