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. Call forward status storage

Call forward status storage

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 209 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.
  • M
    M
    mkeuter
    wrote on last edited by
    #1

    Hi,

    we (Lonnie and me) are just trying to integrate FOP2 into [url=http://www.astlinux.org:25xjumlv]AstLinux[/url:25xjumlv] (it uses a vanilla Asterisk config). I want to integrate the DND and Call Forward status.
    DND fine, but I cannot find how FOP2 stores the status of the Call Forward target within Asterisk (AstDB). I saw your script for usage with FreePBX, it's this line:

    exten => _*72.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
    

    I guess it's FreePBX specific, but is there a way to "simulate" that behavior, something that can be stored in AstDB?

    Thanks in advance.

    Michael

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

      Hi, in the button definition you can set it like this:

      [SIP/something]
      type=extension
      extension=601
      context=something
      customastdb=CF/601

      If you have a value number stored in astdb as CF/601, it will show the arrow on the button. If you look at the freepbx feature codes, if you want to change that status in runtime, you also need to fire a userevent when the value is stored or removed:

      exten => _*73.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
      *exten => _73.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )

      What is important is that CHAN must much SIP/something as set in the button.cfg file. The above is to remove the entry (empty value).

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

        Thanks, works fine now.

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

          customastdb=CF/601

          BTW: It would be nice, if this parameter could be added to the "Configuring Buttons" documentation page.

          Michael

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

            [quote]
            customastdb=CF/601

            BTW: It would be nice, if this parameter could be added to the "Configuring Buttons" documentation page.

            Michael[/quote]

            Thanks for the heads up, documentation was updated (and with some other missing options too!).

            In any case, the most current documentation when dealing with conf files are the conf files themselves (buttons.cfg.sample) in the fop2 tarball, or the fop2.cfg file for server settings.

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

              Strangely the updated extension button documentation has disappeared again …

              Michael

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

                Thx for the pointer, I have added it now.

                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