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 History refresh time

Call History refresh time

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 255 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.
  • B
    B
    Bilbo
    wrote on last edited by
    #1

    Hi,

    It seems at the moment that the call History takes a while to update and in most cases i have to log out of fop2 and log back in again.
    Is their a setting that i can change?

    Many Thanks

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

      Call history just reads the cdr mysql table that is populated by asterisk. It is usually updated in real time. There is nothing to check on fop2 as it just queries the database, nothing else.

      1 Reply Last reply
      0
      • P
        P
        psubiaco
        wrote on last edited by
        #3

        FOP2 2.30.00 with call history plugin enabled, and plain asterisk 1.8:
        I'm able to see incoming and outgoing calls, but I'd like that the call history panel will refresh automatically: in this way, it's easy for phone operator to see all missing call when she'll come back from toilet or caffee 😉
        How is it possible to make callbook plugin to refresh automatically its content every time a new call is received or made?
        Thanks a lot!
        Paolo

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

          It should refresh automatically. Whenever a HANGUP event is detected, an AMI userevent is generated that will signal the client side (browser) to refresh the call history window. You need to have callhistory or all permissions, and also UserEvents should be enabled/allowed in manager.conf permissions.

          1 Reply Last reply
          0
          • P
            P
            psubiaco
            wrote on last edited by
            #5

            I want to thank Nicolas for the great support,
            he gave me the right callhistory.pl file so, now, the callhistory panel will refresh everytime a new received or sent call terminates.
            This is the content of callhistory.pl file that you find into DOCUMENTROOT/admin/plugins/callhistory :

            $AMI_Event_Handler{'callhistory'}{'HANGUP'} = sub {
            my $event = shift;
            my @allreturn;
            my $canal = FOP2::utils::get_channel(${$event}{Channel});
            # We return an array containing valid manager Actions
            $return = "Action: UserEvent\r\n";
            $return .= "UserEvent: refreshcallhistory\r\n";
            $return .= "Channel: $canal\r\n";
            $return .= "Family: refreshcallhistory\r\n";
            $return .= "Value: 1\r\n";
            $return .= "\r\n";
            push @allreturn, $return;
            return @allreturn;
            };

            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