]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_mwi: Send unsolicited MWI NOTIFY on startup and when endpoint registers. 97/197/1
authorJoshua Colp <jcolp@digium.com>
Tue, 14 Apr 2015 19:04:46 +0000 (16:04 -0300)
committerJoshua Colp <jcolp@digium.com>
Wed, 22 Apr 2015 19:34:19 +0000 (16:34 -0300)
commit677898f83980b14a9edb0f5aca349faffbbb72a3
tree034e826d4670e28356447515e934ce300561f65e
parent918ca7dd366cdb7e8c34e6bce995bb12b420a4af
res_pjsip_mwi: Send unsolicited MWI NOTIFY on startup and when endpoint registers.

Currently the res_pjsip_mwi module only sends an unsolicited MWI NOTIFY upon
a mailbox state change (such as a new message being left, or one being deleted).
In practice this is not sufficient to keep clients aware of the current MWI status.

This change makes the module send unsolicited MWI NOTIFY on startup so that
clients are guaranteed to have the most up to date MWI information. It also makes
clients receive an unsolicited MWI NOTIFY upon registration so if they are unaware
of the current MWI status they receive it.

ASTERISK-24982 #close
Reported by: Joshua Colp

Change-Id: I043f20230227e91218f18a82c7d5bb2aa62b1d58
res/res_pjsip_mwi.c