V20 - Forcing In/Out Office status Codes (aka *64)

ITC Telecom

Gold Partner
Joined
Mar 28, 2019
Messages
23
Reaction score
1
3CX has come up with a linux script to invoke forcing in/out of office status with a #64 for example

has anyone successfully completed this? i am far from a linux expert and am looking for someone who can assist fee based.

this is an absolute must according to my customers. they do NOT want to go into the web client to do this and want to press a button for in/out of office.

please let me know
 
Please note that this will place ALL the departments into out of office. So if you need to do this for only 1 department, you will have to go into the web client to control this.
 
  • Like
Reactions: Evolute IT
3CX has come up with a linux script to invoke forcing in/out of office status with a #64 for example

has anyone successfully completed this? i am far from a linux expert and am looking for someone who can assist fee based.

this is an absolute must according to my customers. they do NOT want to go into the web client to do this and want to press a button for in/out of office.

please let me know


I can create a CallFlow that interacts with the CallControlAPI to manage the “Override Office Hour” for a specific department.

Feel free to contact me privately with your specific requirements, and I will provide you with my pricing.
 
  • Like
Reactions: Evolute IT
Please note that this will place ALL the departments into out of office. So if you need to do this for only 1 department, you will have to go into the web client to control this.
Understood. most of my customers have one department
 
  • Like
Reactions: NicholasP_3CX
I can create a CallFlow that interacts with the CallControlAPI to manage the “Override Office Hour” for a specific department.

Feel free to contact me privately with your specific requirements, and I will provide you with my pricing.
Hi Guillaume,
i have a script that 3CX tech support has sent me to override the office hours by still using a button to control it. i just don't know how to put it into the linux machine. please contact me at [email protected] or my cell 732-598-3933 and i can fill you in on all the details
 
Hi Guillaume,
i have a script that 3CX tech support has sent me to override the office hours by still using a button to control it. i just don't know how to put it into the linux machine. please contact me at [email protected] or my cell 732-598-3933 and i can fill you in on all the details
https://www.3cx.com/docs/call-api-linux/#h.nx3a0hqytc3w

Follow those instructions and you'll get it set up. The formatting on the page is a bit confusing but here is it..

Install NET Core 8.0 SDK


Code:
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

dpkg -i packages-microsoft-prod.deb

rm packages-microsoft-prod.deb

apt-get update && apt-get install -y dotnet-sdk-8.0

Download call control API
Code:
wget https://downloads-global.3cx.com/downloads/misc/callcontrolapi/3CXCallControlAPI_v20.zip

Extract it
Code:
apt install unzip

unzip 3CX*

Compile
Code:
dotnet build OMSamplesCore.csproj

Copy scripts and run sample
Code:
cp Scripts bin/Debug/net8.0 -r

cd bin/Debug/net8.0

./OMSamplesCore

Deploy sample script "ForcePBXHours"
Code:
scriptdev deployall folder=Scripts/ForcePBXHours
 
Last edited:

Forum statistics

Threads
111,954
Messages
589,923
Members
164,852
Latest member
priya