Hot Desk Remote Login

Scubadave112

Member
Jan 24, 2020
115
18
18
35
Hey all, I am in process of on-boarding a new customer with roughly 150 phones all of which use hot desk... I didn't want to leave all the phones logged out so I documented what all the phones were logged in as before factory reseting them and moving them to fusion. Now we are going to go to each phone that was already logged in and log them back in... i was curious if there was a way to do this remotely......

like some how provision the virtual devices with the alternate login remotely....we are already 30% done but figured i would post here incase any of ya'll know
 

whut

Member
Dec 23, 2022
46
4
8
That is an interesting issue and question. I have not yet thought of this, but it seems like it would be a useful functionality. Perhaps you could send keys by command line or script. But I think I would start by looking at the device.php code for the Alternate column that appears when at least 1 device is actively in hot desk mode. Without digging into the code I am guessing you could write a relatively simple sql update statement to set devices X, Y, & Z in domain A as 'hot desk active'.

You are probably long past finishing this project by this manually. But you have piqued my curiosity. I would be curious to know if you have come of with any other methods during your process. Now you have me thinking about making an application for hot desking remote control. Squirrel!!!
 

wouam31

New Member
Jul 1, 2022
21
0
1
39
Hi, I don't know if this can help:
If on your network you activate the DHCP66 with the right information.
In fusionpbx, Advanced, Default Settings, Provision: auto_insert_enabled -> true
 

Scubadave112

Member
Jan 24, 2020
115
18
18
35
Hi, I don't know if this can help:
If on your network you activate the DHCP66 with the right information.
In fusionpbx, Advanced, Default Settings, Provision: auto_insert_enabled -> true
Unfortunately I am not seeing how any DHCP option would resolve the issue or assist in the slightest. Also auto_insert_enabled, i have never touched this setting, can you add a little more details about your response, really curious as I am struggling to follow the bouncing ball with your suggestion :D

(Morning coffee, hasn't quite kicked in yet)
 

Scubadave112

Member
Jan 24, 2020
115
18
18
35
That is an interesting issue and question. I have not yet thought of this, but it seems like it would be a useful functionality. Perhaps you could send keys by command line or script. But I think I would start by looking at the device.php code for the Alternate column that appears when at least 1 device is actively in hot desk mode. Without digging into the code I am guessing you could write a relatively simple sql update statement to set devices X, Y, & Z in domain A as 'hot desk active'.

You are probably long past finishing this project by this manually. But you have piqued my curiosity. I would be curious to know if you have come of with any other methods during your process. Now you have me thinking about making an application for hot desking remote control. Squirrel!!!
I spoke to mark about some of the issue with hot desking I noticed... I feel like there shouldn't be a need to reboot the phone.. The company that lost this contract had it so the phone didn't need to reboot.

Also if I login to a phone as extension 100 and then in fusion look at the device and see it now has the alternate set to 100, then i unplug that phone from the network and factory reset it... so now the physical phone is wiped out with no configs. I then plug it back into the network and via Yealink DM or via manually entering auto prov settings it will provision without rebooting to fusion as the alternate... so I feel like a reboot isn't required... I am still slammed and when I get some time I will dive into this more but I seriously don't think rebooting is required...

It would also be cool to select a setting for extension that are "Frequent Roamers" and force their extension to logout 2am every morning.. im sure this would be very easy to impliment, but yeah... Hot Desking does seam really cool idea but needs lots of improvement so that it is easier to setup up in bulk and manage remotely
 

whut

Member
Dec 23, 2022
46
4
8
@wouam31 those are reasonable suggestions. But not quite what will work. auto_insert_enabled = true allows any device that tries to provision to the server. It can be useful if you have some issues provisioning and want a temporary open door policy.

How hot desking works is a user enters their extension # and a PIN into an already registered device. The device then reboots. On the reboot it re-provisions as the visiting user's extension. It also brings their button assignments (park keys, blfs...). Upon logging out of the hot desk, the phone reboots and re-provisions again back to the original user's extension and pbx programmed buttons.
 

Scubadave112

Member
Jan 24, 2020
115
18
18
35
@wouam31 those are reasonable suggestions. But not quite what will work. auto_insert_enabled = true allows any device that tries to provision to the server. It can be useful if you have some issues provisioning and want a temporary open door policy.

How hot desking works is a user enters their extension # and a PIN into an already registered device. The device then reboots. On the reboot it re-provisions as the visiting user's extension. It also brings their button assignments (park keys, blfs...). Upon logging out of the hot desk, the phone reboots and re-provisions again back to the original user's extension and pbx programmed buttons.
Yeah.. I just really feel like I can just send the provision without the need for a reboot. If the other company was able to do it, I am sure I can find a way.... right now though it is like number 5 on my list... my biggest project i need to focus on is the Call Center Features like wallboards when i have a lot of queues, agent user group should have permission to update their status, advanced call back features etc..... once im done that stuff ill tackle Hot Desking without reboot....
 

whut

Member
Dec 23, 2022
46
4
8
hot desking uses the provision dialplan which includes reboot=true. The simple test would be to disable these 2 reboot=true. But then the lua script for provisioning has
Code:
if (not reboot) then reboot = 'true'; end
so I am guessing the phones will reboot anyway because you are initiating a provision action. You could temporarily comment this line of code out too in testing if the first test is rebooting. You could also have different results per manufacturer as they provision differently. Some require reboot.