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. Custom features

Custom features

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 99 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
    tycoon
    wrote on last edited by
    #1

    Hi
    While checking FOP2 FAQ I found interesting feature: custom_popup()
    This function can popup some window based on phone number or name. This feature looks good, but I need a bit different one: is it possible to show custom block on my agent's FOP panel, that will show some info, which my custom script will pass? Like caller ID lookup results from my custom CRM or agent script, based on what DID this number comes to.
    This is extremely useful, as I found no ways to show the info above to my agents.

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

      Yes, you can do that using the same checkdir.php and its custom_popup. If you look at the included checkdir.php , there is a commented block that will update a div contents on the fop2 page. There is also another one that queries vtiger crm. You can use both techniques and get information from your own crm or whatever application you have and update a fop2 div with their results.

      I have done that, I wrote a short integration with HIGHRISE.

      If you need help you can always buy support/consultancy time from us if you have problems getting started with it.

      Best regards,

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

        I was able to add a custom block and to show some info there, however there are still 2 issues I can't fix:

        1. When the call is hanged up I still have info in my custom block, there should be some js function, handling call hangup, which I can use to "clean" the block? Can you gimme the function name or any other way I can clean the block.

        2. I didn't find any way to show the DID my customers are calling to. I have several DIDs and I wanna show something like +18001234567 (DID 1) in this block, so my agent will know which DID this customer is calling to. I belive there should be some var, which has some DID info?

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

          The best way to look for possible events is to start fop2_server in debug mode 15, and look for lines like this one for commands sent to flash clients:

          127.0.0.1    => { "btn": "5@GENERAL", "cmd": "state", "data": "DOWN", "slot": "0" }
          

          You can edit jcallback.js and add a method to JCallBack to handle the "state" command. If the data is DOWN, the call is finished for the first line appearance (slot 0).

          Regarding the DID, that is probably set as a variable in the dialplan, things gets more complicated there as you should put hook on the server/ami side via FOP2Callbacks.pm, etc. The easiest way to handle this is to set the callerid name to be the did number inside the dialplan, so you will see it in regular ami events.

          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