Member
Last active 9 years ago
I see this but the button never goes grey.
127.0.0.1 <- Event: PeerStatus
127.0.0.1 <- Privilege: system,all
127.0.0.1 <- ChannelType: SIP
127.0.0.1 <- Peer: SIP/3018
127.0.0.1 <- PeerStatus: Unregistered
127.0.0.1 <- Cause: Expired
127.0.0.1 <- Event: ExtensionStatus
127.0.0.1 <- Privilege: call,all
127.0.0.1 <- Exten: 3018
127.0.0.1 <- Context: ext-local
127.0.0.1 <- Hint: SIP/3018&Custom:DND3018,CustomPresence:3018
127.0.0.1 <- Status: 4
127.0.0.1 <- Event: ExtensionStatus
127.0.0.1 <- Privilege: call,all
127.0.0.1 <- Exten: *803018
127.0.0.1 <- Context: ext-local
127.0.0.1 <- Hint: SIP/3018&Custom:DND3018,CustomPresence:3018
127.0.0.1 <- Status: 4
This doesn't appear to be the case. I am using asterisk 11.18.0 and the code references 1.8. I tried to add 11.18.0 and it still did not work. Any other ideas on what I can try we are running the latest stable version of FreePBX.
$current_user = get_user($device);
if ($current_user != '') {
$current_devices = get_devices($current_user);
$new_devices = remove_device($current_devices,$device);
cli_debug("remove_user: Setting user $current_user to devices $new_devices",5);
set_user_devices($current_user, $new_devices);
set_hint($current_user, $new_devices);
if(version_compare(get_var("ASTVERSION"), "1.8.0", "ge")) {
$user_event_body = "\"UserDeviceRemoved,Data: {$current_user}\\\\,{$device}\"";
} else if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
$user_event_body = "\"UserDeviceRemoved|Data: {$current_user}\\,{$device}\"";
} else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
$user_event_body = "UserDeviceRemoved,\"Data: {$current_user}\\\\,{$device}\"";
} else {
$user_event_body = "\"UserDeviceRemoved|Data: {$current_user},{$device}\"";
}
We are using device and user mode with Freepbx and it shows all of the agents logged in all the time even if they do not have a device registered. How can I correct this? I need this solution for a call center deployment.
Thanks this worked great. I some how did not read about the fop2admin module this appears to have solved all of my problems. Thanks so much for the quick replies.
I am sorry I must of missed something where can I get the fop2admin module?
Thanks this should work. I assume there is no way to log in as a "guest" then just for view only access?
How can I disable Whisper and Spy features globally?
Is it possible to remove certain extensions from the showing up? If so how do I do this?
Is there a way to make it so users only have to type in their Extension to login?
Or maybe just have some sort of page that auto logs in as a guest (I understand you would lose functionality of dial, spy, etc) I have a client who we purchased the licensed version for and all they need it for is for view use only