Support FOP2MAILBOXCHECK UserEvent

  1. 11 years ago

    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

  2. The UserEvent could be then triggered by the "externnotify" script, right?

  3. admin

    25 Jul 2013 Administrator

    It is already implemented:

    [code]Event: UserEvent
    Privilege: user,all
    UserEvent: FOP2RELOADVOICEMAIL
    Action: UserEvent
    Mailbox: 606@default
    [/code]

    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.

or Sign Up to reply!