• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

Call Control API - Create Queue Dynamically

Status
Not open for further replies.

nithinin2001

Free User
Joined
Jul 9, 2018
Messages
3
Reaction score
0
I am trying to create a queue in the update connected event of digital receptionist. The idea is to Transfer call to the newly created queue. The problem is Save() function is not returning so TransferCall method in the next line is not returning. Here is a snippet.

PhoneSystem ps1 = PhoneSystem.Root;
System.Console.WriteLine(“———1————“);
Tenant t = ps1.GetTenant();
System.Console.WriteLine(“———2————“);
Queue q = t.CreateQueue("8090");
System.Console.WriteLine(“———3————“);
DN[] agents = new DN[]
{
ps1.GetDNByNumber("000"),
ps1.GetDNByNumber("007")
};
q.Name = "8090";
q.Members = agents;
q.PollingStrategy = Queue.PollingStrategyType.RingAll;
System.Console.WriteLine(“———4————“);
q.Save();
System.Console.WriteLine(“———5————“);
PhoneSystem.Root.TransferCall(ac, "8090");
System.Console.WriteLine("------6--------");
Nothing prints after 5.
Version: Standard Annual 15.5.0
 
Status
Not open for further replies.

Getting Started - Admin

Latest Posts

Forum statistics

Threads
141,633
Messages
748,966
Members
144,752
Latest member
matchofficees
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.