Documentation for REST API/Programmatically end active call from extension?

Status
Not open for further replies.

PaddyBoyFloyd

New User
Joined
Feb 13, 2019
Messages
7
Reaction score
0
What I'm trying to do is figure out a way to programmatically end calls at a certain time for certain extensions - basically I want to run a scheduled task that barges in to extensions 100-105 at 10:55 with an audio recording of "Warning: Phones will be disconnected in 5 minutes" and then another scheduled task at 11:00 that disconnects the active calls from those same extensions.

I tried to find a solution to this a year or two ago when we were running v15 but ended up going with a low-tech option of having staff unplug the DECT base for the cordless handsets at the desired time. We're now looking to implement this for a range of extensions not all coming off the same cordless base so my previous low tech solution won't work.

Our 3CX is Pro running v18 update 2 and I've seen bits and pieces about the new API but haven't found any real documentation. The barge in is secondary and we can just put a sign up if it's a hassle. If it's easier to do it in the Watchguard Firebox - we can do it there with statics/reservations for the phones, but so far we haven't gotten it to work for the firewall to drop the active connections - just prevent new connections. It's for a residential facility and there's a lights out time, but not all the residents adhere to the rules, so we need to prevent them from breaking the rules to keep our staff from having to track down every phone every night at lights out time.
 
You can do this with the 3CX Call Control API. Unfortunately, 3CX has withdrawn the documentation presumably in preparation for the new REST API that was announced in the early beta period of V18. However, I have not heard anything more about a pending release of a new API. Has anyone else heard anything about a new REST API? I know there was one for web meetings, but nothing for the actual phone system.
 
  • Like
Reactions: Evolute IT
You can do this with the 3CX Call Control API. Unfortunately, 3CX has withdrawn the documentation presumably in preparation for the new REST API that was announced in the early beta period of V18. However, I have not heard anything more about a pending release of a new API. Has anyone else heard anything about a new REST API? I know there was one for web meetings, but nothing for the actual phone system.
Didn't hear a thing about it. Nick and Stefan mentioned it a couple times since then, but my guess is it has been put on the backburner.
 
Looking at the traffic from the web console active call/disconnect UI, I think I might be able to reverse engineer it - I'll fire up postman and start seeing what I can do - I did see other posts on here that were able to authenticate from postman or php to do queries against the unpublished API so that'll be where I start. I had hopes of being able to kill the call by killing an active process, but no luck - everything seems to be contained in the Server processes - if all else fails, my fall back will be to bounce the services or bounce the wifi that these phones connect to to kill the calls - I think I'll be able to turn of the WLAN on the merakis programmatically now that I think about it and just rip the internet out from underneath the calls.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,083
Members
164,901
Latest member
Silent_Guru