Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

How to create IVR menu options via API Call Control?

Discussion in '3CX Phone System - General' started by itsystem, Dec 12, 2012.

Thread Status:
Not open for further replies.
  1. itsystem

    Joined:
    Jan 25, 2011
    Messages:
    15
    Likes Received:
    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...
     
  2. Hardik Soni

    Joined:
    May 22, 2017
    Messages:
    19
    Likes Received:
    1
    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.
     
Thread Status:
Not open for further replies.