determining the number of messages pending for MWI call
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@169325
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
#else
/* New DAHDI_VMWI ioctl supports upto 65535 messages*/
- if (res > 0xffff) {
- res2 = (last->mwisendtype | 0xffff);
+ if (res > DAHDI_VMWI_NUMBER_MASK) {
+ res2 = (last->mwisendtype | DAHDI_VMWI_NUMBER_MASK);
} else {
- res2 = (last->mwisendtype | (res & 0xffff));
+ res2 = (last->mwisendtype | (res & DAHDI_VMWI_NUMBER_MASK));
}
res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, &res2);
if (res2) {