aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-19 16:08:10 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-19 16:08:10 +0000
commitd936d69c284ecdcbce3cd664441199aacb794d82 (patch)
tree79d610275ec19e4b5c3736c03aca7fd38d4a271c /channels/chan_zap.c
parent004e6fbc01058a6d4378591c952ff81224486fe2 (diff)
Fix the passing of digital PRI-PRI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1869 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 6cff248d7..fc6491172 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -3915,8 +3915,10 @@ 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);
+ if (ctype & PRI_TRANS_CAP_DIGITAL) {
+ i->digital = 1;
+ ast_set_flag(tmp, AST_FLAG_DIGITAL);
+ }
#endif
/* clear the fake event in case we posted one before we had ast_chanenl */
i->fake_event = 0;