[Asterisk-Users] MWI behavior change?
Lenny Tropiano / asterisk.org Mailing list
asterisk at enterprise.icus.com
Wed Mar 26 15:20:43 MST 2003
Looking at the cvs rdiff from 1.5 to 1.6, apparently the behavior changed?
The old way it just checked "inbox" for new messages and turned on the MWI. Now it seems
to add the new+old to turn on the Message Waiting Indicator. Personally after I've listened
to the messages and saved them in a Old "folder" it shouldn't count that for the MWI.
I would prefer the older behavior, and I think that would be more correct.
Old Way: snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", hasmsgs ? "yes" : "no");
New Way: snprintf(tmp, sizeof(tmp), "Message-Waiting: %s\n", (newmsgs + oldmsgs) ? "yes" : "no");
More information about the asterisk-users
mailing list