API - Create Conference

Discussion in '3CX Phone System - General' started by imagemaster, Jul 9, 2016.

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

    Joined:
    Jul 20, 2010
    Messages:
    41
    Likes Received:
    1
    I am trying to create a simple program that will create a conference. This is what I have but it isn't working. Can anyone help?
    try
    {
    PhoneSystem.ApplicationName = "TestApi";
    PhoneSystem.CfgServerPort = 5485;
    PhoneSystem.CfgServerUser = "cfguser_default";
    PhoneSystem.CfgServerPassword = "xxxxx";
    PhoneSystem ps = PhoneSystem.Root;
    var stat = ps.CreateStatistics("S_SCHEDULEDCONF", "454856");
    stat.clearall();
    stat["name"] = "Test Conference";
    stat["idstat"] = "454856";
    stat["pin"] = "xxxx";
    stat["startat"] = "2016-07-09 11:58:00";
    stat["target"] = "John Doe";
    stat["numbertocall"] = "1234";
    stat["email"] = "xxx@xxxx.com";
    stat["description"] = "Test Conference";
    stat["emailtext"] = "This is a calendar event.";
    stat.update();
    Console.WriteLine("Conference Created");
    }
    catch (Exception ex)
    {
    Console.WriteLine(ex.ToString());
    }
     
  2. NickD_3CX

    NickD_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Jun 2, 2014
    Messages:
    1,283
    Likes Received:
    68
    In the below link that is a link to same sample code for V14 that also has a working "Create Schedules Conference".
    http://www.3cx.com/blog/docs/call-control-api/

    In the sample applications this is the one:
    [​IMG]

    1) Basically all you need to do is compile the sample projects.
    2) Go into the Project Directory and then into \obj\Debug and get the 'OMSamples.exe'
    3) Copy this into the Phone System directory, which default is C:\Program Files\3CX Phone System\Instance1\Bin\ .
    4) Open a cmd and go to this directory (DO NOT run from a different path, look at the sample code and you will see why).
    5) Run the .exe with the like this: OMSamples.exe schedule_conference param1 "param2" param3 param4 param5 (example below):
    [​IMG]
     

    Attached Files:

Thread Status:
Not open for further replies.