- Joined
- Jul 17, 2012
- Messages
- 1
- Reaction score
- 0
I'm trying to make a call from one extension to another using the 3CX Call Control API
evrytime i run my application i get this error:
the code looks like this:
I adjusted the 3cxPhoneSystem.ini file like this:
Any ideas what i'm doing wrong?
evrytime i run my application i get this error:
Code:
Unexpected Exception: TCX.PBXAPI.PBXIsNotConnected: An exception has occured of the type: TCX.PBXAPI.PBXIsNotConnected.
at TCX.PBXAPI.PBXConnection..ctor(String pbxSLHost, Int32 pbxSLPort, String
pbxSLuser, String pbxSLpassword)
at TestCSharp.Program.Main(String[] args) in ...\3CXCallControlAPI_v10\TestAPI\Program. 38
the code looks like this:
Code:
PBXConnection Pbx = new PBXConnection("127.0.0.1", 5485, "admin", "0109Smart1910");
Console.WriteLine("created PBXConnection object");
while (true)
{
try
{
Pbx.MakeCall("201", "202");
}
catch (Exception E)
{
Console.WriteLine(E.ToString());
}
Console.WriteLine("done");
Console.ReadKey();
}
I adjusted the 3cxPhoneSystem.ini file like this:
Code:
[General]
AppPath=C:\Program Files\3CX PhoneSystem\
WebServer=""
pbxSLNIC=127.0.0.1
FirstRun=False
LogLevel=2
;msNoRTPFilter=0
;Msusetickcount=1
PBXUser=myusername
PBXPass=mypassword
[ConfService]
AppName=DBProvider
ConfPort=5485
DBPort=5480
confUser=myotherusername
dbUser=phonesystem
DBHost=localhost
DBName=phonesystem
DefFile=Objects.cls
confNIC=0.0.0.0
confPass=myotherpassword
dbPassword=mythirdpassword
PhoneSystem.ApplicationName="TestCSharp"
[MediaServer]
Any ideas what i'm doing wrong?