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. Support
  3. Having the phone update status.

Having the phone update status.

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 69 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.
  • T
    T
    tommy_fc
    wrote on last edited by
    #1

    Our phones have the possibility of accessing a URI, when they change state, either by DND, ringing or other. It would be very nice to use the phone to change our status in the FOP interface. Is that possible?

    Is there some URL I can hit to accomplish that? In which case, what URL?

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

      FOP2 does not works as a web service. But if you have a programmable phone, maybe you can also program it to dial a special code, like *78. In that case, and if you use fop2 beta integrated with FreePBX you can have a way to make them work. (but if you set yourself to dnd from fop2, it will be reflected in asterisk but not your phone).

      Best regards,

      1 Reply Last reply
      0
      • T
        T
        tommy_fc
        wrote on last edited by
        #3

        Thanks for the quick reply.

        Changing my status in the FOP2 planel to "Do not disturb" does not seem to be detected by asterisk. Is there some configuration needed for that?

        Edit: I am using asterisk 1.6.2, and have these settings set in manager.conf:
        permit=127.0.0.1/255.0.0.0
        read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
        write = system,call,agent,user,config,command,reporting,originate

        1 Reply Last reply
        0
        • T
          T
          tommy_fc
          wrote on last edited by
          #4

          More on this, I see that it does transfer a message that gets logged in the user interface:

          Event: UserEvent
          Privilege: user,all
          UserEvent: FOP2ASTDB
          Action: UserEvent
          Family: fop2state
          Channel: SIP/26
          Value: Do not Disturb

          And the database thus shows:

          asterisk*CLI> database show
          /fop2state/SIP/26 : Do not Disturb

          I can easily enough program me around this for do not disturb, but will I be able to map it with hints?

          And on a related note - will there be custom messages such as (out until xx) or similar?

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

            You can write any state in the astdb value. As far as the UserEvent is correctly sent and interpreted, and the astdb value too, you will see states in fop2 presence. Regarding hints, that is an asterisk job and not fop2. fop2 beta lets you do some extra coding when you receive commands or events by means of FOP2Callbacks.pm

            Best regards,

            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