Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Feedback
  3. Support FOP2MAILBOXCHECK UserEvent

Support FOP2MAILBOXCHECK UserEvent

Scheduled Pinned Locked Moved Feedback
3 Posts 3 Posters 107 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    abelbeck
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • M
      M
      mkeuter
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups