]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_mwi: Send unsolicited MWI NOTIFY on startup and when endpoint registers. 75/175/3
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 10:40:23 +0000 (07:40 -0300)
commit7b5711683341761b34364ed0c40d521799921921
tree654dc1575e65c1ec83deb266a9d8d089f8ca11cf
parent4423d5f755afb3aa87c032bd4d3243f6078d29ec
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