- Joined
- Feb 17, 2010
- Messages
- 20
- Reaction score
- 0
Hi All,
I'm trying to make use of the API, I am using C# running on the same PC as the phone system.
I seem unable to establish a link to the phone system, I've tried the sample (modifying it to work with v8)
The connection string is: mPbxConn = new PBXConnection("localhost", 5485, "<someuser>", "<somepassword>")
But I always get an exception from this saying:
---------------------------
TCX.PBXAPI.PBXIsNotConnected: Exception of type 'TCX.PBXAPI.PBXIsNotConnected' was thrown.
at TCX.PBXAPI.PBXConnection..ctor(String pbxSLHost, Int32 pbxSLPort, String pbxSLuser, String pbxSLpassword)
at HudSample.MyTree..ctor() in C:\CallControlAPI\MyTree.cs:line 57
----------------------------
I have added PhoneSystem.ApplicationName="Hudsample" to the 3cxphonesystem.ini file.
I can telnet to port 5485 OK, so I know the system is listening.
Can anyone shed any light?
Best Regards
Chris
I'm trying to make use of the API, I am using C# running on the same PC as the phone system.
I seem unable to establish a link to the phone system, I've tried the sample (modifying it to work with v8)
The connection string is: mPbxConn = new PBXConnection("localhost", 5485, "<someuser>", "<somepassword>")
But I always get an exception from this saying:
---------------------------
TCX.PBXAPI.PBXIsNotConnected: Exception of type 'TCX.PBXAPI.PBXIsNotConnected' was thrown.
at TCX.PBXAPI.PBXConnection..ctor(String pbxSLHost, Int32 pbxSLPort, String pbxSLuser, String pbxSLpassword)
at HudSample.MyTree..ctor() in C:\CallControlAPI\MyTree.cs:line 57
----------------------------
I have added PhoneSystem.ApplicationName="Hudsample" to the 3cxphonesystem.ini file.
I can telnet to port 5485 OK, so I know the system is listening.
Can anyone shed any light?
Best Regards
Chris