- 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:
But it don't working...
Help please...
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...