- Joined
- Jul 20, 2010
- Messages
- 57
- Reaction score
- 5
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"] = "[email protected]";
stat["description"] = "Test Conference";
stat["emailtext"] = "This is a calendar event.";
stat.update();
Console.WriteLine("Conference Created");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
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"] = "[email protected]";
stat["description"] = "Test Conference";
stat["emailtext"] = "This is a calendar event.";
stat.update();
Console.WriteLine("Conference Created");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}