Solved Call Control API - Status of extension

Status
Not open for further replies.

Michal Knezourek

Customer
Joined
Sep 29, 2017
Messages
10
Reaction score
0
Hi everybody,
I need to set status of extension via API.
Is it possible? I don't see any functions to get and set status? by status I mean Available/Away.

Thank you
Michal
 
Hello Michal Knezourek

Here is an example to change the extension status using the Call Control API
FwdProfiles[] is an array that contains the available options for presence/status


Code:
                   var ext = PhoneSystem.Root.GetExtensions().FirstOrDefault(f => f.Number == "001");

                    if (ext != null)
                    {
                        ext.CurrentProfile = ext.FwdProfiles[3];
                        ext.Save();
                    }
 
  • Like
Reactions: Michal Knezourek
Perfect, thank you, it works great.
 
Status
Not open for further replies.

Forum statistics

Threads
112,326
Messages
591,901
Members
165,479
Latest member
Senergia