Support FOP2MAILBOXCHECK UserEvent
-
There are times where the Asterisk voicemail files are managed externally. Not until a core "MessageWaiting" event is generated does FOP2's extension mailbox status get updated. Only Voicemail() and VoicemailMain() in Asterisk can generate core "MessageWaiting" events.
I'm suggesting FOP2 honor a FOP2MAILBOXCHECK UserEvent:
Event: UserEvent
Privilege: user,all
UserEvent: FOP2MAILBOXCHECK
Action: UserEvent
Mailbox: 1234@defaultsame => n,UserEvent(FOP2MAILBOXCHECK,Mailbox: 1234@default)
and then trigger a mailbox check for that mailbox.
Of course if the "Mailbox:' argument does not match any of the extension buttons mailbox= value, the request is ignored.
Reasonable ? Or possibly you already have such a mechanism ?
Lonnie
-
-
It is already implemented:
Event: UserEvent Privilege: user,all UserEvent: FOP2RELOADVOICEMAIL Action: UserEvent Mailbox: 606@defaultOr better: you can do it with no dialplan hacks by setting in voicemail.conf:
pollmailboxes = yes ; If mailboxes are changed anywhere outside of app_voicemail,
; ; then this option must be enabled for MWI to work. This
; ; enables polling mailboxes for changes. Normally, it will
; ; expect that changes are only made when someone called in
; ; to one of the voicemail applications.
; ; Examples of situations that would require this option are
; ; web interfaces to voicemail or an email client in the case
; ; of using IMAP storage.
;
pollfreq = 30 ; If the "pollmailboxes" option is enabled, this option
; ; sets the polling frequency. The default is once every
; ; 30 seconds.externotify is also used by some users.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login