- Joined
- Jan 25, 2011
- Messages
- 15
- Reaction score
- 0
Hello!
I need develope API code for connection to 3CX Phone System, but face on with problem.
I'm need run that code with help "Windows Form Application":
When I click button1, get this error:
I also try change string to:
and
but result error as above
Visual Studio Project run locally (the same PC where installed 3CX Phone System).
3CXPhoneSystem.ini
Help please!
I need develope API code for connection to 3CX Phone System, but face on with problem.
I'm need run that code with help "Windows Form Application":
Code:
private void button1_Click(object sender, EventArgs e)
{
PBXConnection pbx = new PBXConnection();
pbx.MakeCall("100", "101");
}
When I click button1, get this error:
on this code string PBXConnection pbx = new PBXConnection();Exception of type 'TCX.PBXAPI.PBXIsNotConnected' was thrown.
I also try change string to:
Code:
PBXConnection pbx = new PBXConnection("127.0.0.1", 5482, "admin", "admin");
Code:
PBXConnection pbx = new PBXConnection("127.0.0.1", 5482, "", "");
Visual Studio Project run locally (the same PC where installed 3CX Phone System).
3CXPhoneSystem.ini
Code:
[General]
AppPath=C:\Program Files\3CX PhoneSystem\
WebServer=""
pbxSLNIC=127.0.0.1
FirstRun=False
LogLevel=2
;msNoRTPFilter=0
;Msusetickcount=1
[ConfService]
AppName=DBProvider
ConfPort=5485
DBPort=5480
confUser=DBServ
dbUser=phonesystem
DBHost=localhost
DBName=phonesystem
DefFile=Objects.cls
confNIC=0.0.0.0
confPass=pass
dbPassword=6Rz_Ti-7&C3kM4g{xE$8
PhoneSystem.ApplicationName = “Form1”
PhoneSystem.ApplicationName = “3CX_Dialer”
[MediaServer]
Receivers=4
Priorityclass=128
Senders=4
;Sender3=0;15;-1
;Sender2=0;15;-1
;Sender1=0;15;-1
;Sender0=0;15;-1
;Receiver2=0;15;-1
;Receiver0=0;15;-1
;Receiver3=0;15;-1
;Receiver1=0;15;-1
[CallReports]
DATABASE=phonesystem
USERNAME=logsreader
PORT=5480
DRIVER=PostgreSQL Unicode
ReadOnly=1
SERVER=localhost
PASSWORD=5Zy+b&W4Qp6!3}wF?R8d
Help please!