Call History refresh time
-
-
-
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 -
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.
-
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;
};
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