How to create IVR menu options via API Call Control?

Status
Not open for further replies.

itsystem

Joined
Jan 25, 2011
Messages
15
Reaction score
0
Hello!
Could you help me please!!!

I need develop dynamic application which will be integration with my software. My application must read SQL-query and then create IVR with different menu options.
I learned 3CX API CAll Controll and not found how to create IVR menu Options with help of it.

I try using that code:
Code:
DN dn0 = PhoneSystem.Root.GetDNByNumber("101");

            IVR ivradd = PhoneSystem.Root.GetTenants()[0].CreateIVR("886");
            ivradd.Name = "TestIVR";
            ivradd.PromptFilename = "prompt.wav";
            ivradd.Timeout = 20;

            IVRForward fw0 ;
            fw0.ForwardType = IVRForwardType.Extension;
            fw0.ForwardDN = dn0;
            ivradd.Forwards[0] = fw0;

            ivradd.TimeoutForwardType = IVRForwardType.VoiceMail;
            ivradd.TimeoutForwardDN = PhoneSystem.Root.GetTenants()[0].GetExtensions()[0];
            ivradd.Save();

But it don't working...

Help please...
 
i have same issue
i want same exactly..
i can create IVR but i can't create IVR forward(IVR menu item)
can anybody suggest how can i create IVR forward.
 
Status
Not open for further replies.

Forum statistics

Threads
111,874
Messages
589,502
Members
164,723
Latest member
aman-pandey