From: Martin Pycko Date: Fri, 19 Dec 2003 16:08:10 +0000 (+0000) Subject: Fix the passing of digital PRI-PRI X-Git-Tag: 0.7.0~143 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ae915c0f634897ea24080bb8f344e2e72ee476b;p=thirdparty%2Fasterisk.git Fix the passing of digital PRI-PRI git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1869 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 6cff248d77..fc64911721 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;