[Asterisk-Users] MWI behavior change?

Mark Spencer markster at digium.com
Wed Mar 26 17:07:47 MST 2003


How about we say "yes" only if there are new messages....

cvs update and let me know if that worked.

Mark

On Wed, 26 Mar 2003, Lenny Tropiano / asterisk.org Mailing list wrote:

> 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");
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list