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@default
=======================
same => 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

Comments

  • The UserEvent could be then triggered by the "externnotify" script, right?
  • It is already implemented:
    Event: UserEvent
     Privilege: user,all   
     UserEvent: FOP2RELOADVOICEMAIL
     Action: UserEvent
     Mailbox: 606@default
    

    Or 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.
Sign In or Register to comment.