Member
Last active 15 years ago
Will you make this ?
bump.
Is it any way I can make/configure this by editing some .CSS files, or is this a new feature?
After your advice, looking for ' UserDeviceAdded', in 'user_login_out.agi' fop2 seems to be OK.
This is what shows up on telnet to port:
Event: UserEvent Privilege: user,all UserEvent: UserDeviceRemoved|Data: 378 115
This is not correct as the UserEvent with data passed is all merged into one string. I guess this is the reason why why your fop2 event parser does not capture this. You might want to make your parser also to support this odd string.
Code in ' 'user_login_out.agi'' is
agi->exec("UserEvent", "\"UserDeviceRemoved|Data: {$current_user},{$device}\"");
Note that pipe '|'. Asterisk seems to have broken handling of pipe '|' as delimiter. Using ',' as delimiter soved it. So this will work:
// $agi->exec("UserEvent", "\"UserDeviceAdded|Data: {$user},{$device}\""); $agi->exec("UserEvent", "\"UserDeviceAdded,Data: {$user},{$device}\"");
and ...
$agi->exec("UserEvent", "\"UserDeviceRemoved,Data: {$current_user},{$device}\"");
Thank you for your support yesterday, it helped me in the right direction.
I will perform some more stress testing to verify, but for now this fixed my problems.
I am using FreePBX 2.6.0.RC2.1.
I will try to catch up online.
I did try to bypass the problem by restarting fop2 after each user login/out with
system("/usr/bin/sudo /sbin/service fop2 restart", $retval);
inside a modified version of user_login_out.agi, but this cause some other problem with sudo and access rigts after restart of service, and is very ugly..
Is there any particular debug info I can give you ? What state messages or hints are you relying on from Asterisk to set the fop2 states ?
When is the next released planned ?
After logon (using *11 in FreePBX) buttons are not updated.
If I however restart the fop2 service again, it will show correct state.
Same happens when a user loggoff (with *12), I need to restart fop2 service to show correct state.
Tried 'service fop2 reload', but -HUP signal does not solve this either.
As of now using we use a crontab entry like :
# For some reasons fop2 does not detect change in user logon/logoff 0,15,30,45 * * * * /sbin/service fop2 restart
But this is not very nice.
I am using Asterisk 1.6.1.6
So in operator.css file I found :
.notregistered { background:#ddd; opacity:.50; filter:alpha(opacity=50); -moz-opacity:0.5px; }
But is there a different CSS entry for 'adhoc' vs 'fixed' devices logged into ?
Also sames goes for logged in users.
Is there any way of using another green color for 'adhoc' vs 'fixed'¨devices logged into ?
Is there a way I can configure fop2 button file to show status on custom made MeeTme apps ? Like (in my "extensions_custom.conf'') I have:
[dynamic-conference-with-pin]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,MeetMe(,AD)
exten => s,n,Playback(vm-goodbye)
exten => s,n,Hangup()
; end of [dynamic-conference-with-pin]
...and to see callers in this context, I tried using (in my button file):
[CONFERENCE/961]
type=conference
extension=961
context=dynamic-conference-with-pin
label=My conf
...
But this is not working,
What am I doing wrong, must I set any variables, hints or what? Any tips or suggestions ?
Using html codes worked ref: [url:2plo0d6d]http://www.ascii.cl/htmlcodes.htm[/url:2plo0d6d]
.. also found section in FAQ. :oops:
[USER/384]
type=extension
extension=384
label=Møterom MO
mailbox=384@novm
context=from-internal
extenvoicemail=*384@from-internal
We use FreePBX is deviceanduser mode where users may login and logout.
As fop2 correctly shows when a user login;
it it possible to show login time (24 hr clock).
like 08:45, and also how long time that is from now in hrs:min so string on top on each adhook users button will look like:
* 381 Anita 08:45 | 3:15
FOP2 work great with FreePBX in "deviceanduser" mode!
We have some devices with FIXED users, and some devices with ADHOC users.
The ADHOC buttons correctly shows different colours for ADHOC users logged out (grey) and logged in (with green).
As the fixed devs. also use green, it is difficult to separate them from ADHOC users logged into.
Bottom line: Is it possible to use another color for ADHOC users not logged into, like red, and also another color for devices with FIXED users (like yellow) ?