MWI only turn on the light for new messages.
This commit is contained in:
parent
76994ded8a
commit
e701b5a1b3
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue