MWI only turn on the light for new messages.

This commit is contained in:
markjcrane
2015-10-29 17:34:39 -06:00
parent 9429de42be
commit 1c6f58ca03

View File

@@ -99,7 +99,7 @@
--send the message waiting event
local event = freeswitch.Event("message_waiting");
if (row["message_count"] == "0") then
if (new_messages == "0") then
event:addHeader("MWI-Messages-Waiting", "no");
else
event:addHeader("MWI-Messages-Waiting", "yes");