• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

Version 7 API info

Status
Not open for further replies.

integrax

Joined
Dec 9, 2008
Messages
19
Reaction score
0
OK, I just installed Version 7 and start browsing new and improved functions and so far I found some issues that want to comment:

On management .Net web application page Index.aspx code first line I found CodeBehind="index.aspx.cs" instead of “Codefile” and also none CS file was installed.

Under same application, inside IVR folder, file ivr_start.aspx is giving me an error:

codeerror.jpg


And also, if I try to launch a call from our CRM using IIS and this example

http://10.172.0.15/ivr/PbxAPI.aspx?func=make_call&from=104&to=116&pin=104

I am getting an error on config file line 51 regarding <authentication mode="Windows"/>

Any idea?

Thanks


Integrax, Inc.
 
Re: Version 7 Issues on .Net management application

Hi,

I am not sure i understood the post. THere is no need to analyze the index files. What exact errors are you getting upon installation and what operating system are you running on? What web server have you chosen? It seems to be security issues.
 
Re: Version 7 Issues on .Net management application

Sorry for not been more specific on my post.
Ok, what I'm trying to do is to link our CRM according to this example:

How can I launch a call from a web based CRM package?
3CX Phone System allows you to easily integrate calling functionality into any web based CRM package, or in deed any software that can make HTTP post requests.
Install Option 1: IIS Web Server
To launch a call to a particular number, simply generate an HTTP post request in the following format

http://10.72.0.15/ivr/PbxAPI.aspx?func=make_call&from=104&to=116&pin=104


If I try to access

http://localhost/ivr/PbxAPI.aspx?func=make_call&from=XXXX&to=ZZZZ&pin=YYYY

I get "The resource cannot be found" HTTP error 404, and I know I got this because URL path do not exist.
If I modify the the URL according to IIS structure created on install, to this:

http://localhost/management/ivr/PbxAPI.aspx?func=make_call&from=XXXX&to=ZZZZ&pin=YYYY

I get this error:

Server Error in '/management' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrors> section enables configuration


Source File: C:\Program Files\3CX PhoneSystem\Data\Http\Interface\ivr\web.config Line: 51



Show Additional Configuration Errors:


It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Program Files\3CX PhoneSystem\Data\Http\Interface\ivr\web.config line 64)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (C:\Program Files\3CX PhoneSystem\Data\Http\Interface\ivr\web.config line 66)




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


After this, I did try to verify where the authentication error resides and open the web application (management) with VS 2005 C#, and there is where I found the error reported on my first post.

I think the problem is because IVR has not been declared as an application on IIS, what do you think?

I hope this post is somehow more understandable than the previous one

Thank you
 
Re: Version 7 Issues on .Net management application

I forgot to mention this:

Windows 2003 Standard SP2
IE 7
Server is a domain member acting as a web application host machine and now Sip server also.

I hope tihs help someway


Thanks


Integrax, inc.
 
Re: Version 7 Issues on .Net management application

Hi

If this is a Server 2003, then IVR is not accessible from this link:
localhost\ivr

IVR is a separate website that listens on 5484 on server 2003
Actuallyjust keep this in mind:
IVR is a separate website on server 2003/SBS2003 (IIS6), vista (IIS7) and server 2008/SBS2008 (IIS7)
IVR is a separate website on all Operating systems using CASSINI test webserver

EXCEPTION: IVR is a virtual directory (therefore accessed with this link: localhost\ivr) ONLY when using XP and IIS (IIS5.1)
********

therefore use this link

Example:

http://10.0.0.11:5484/PbxAPI.aspx?func=make_call&from=112&to=999&pin=112
this will make a call from 112 to 999 (voicemail)
or
http://10.172.0.15:5484/PbxAPI.aspx...a&disable=0&disable_external=0&record_calls=0
This will disable extension 103, disable 103 from making external calls and disable recording of calls on ext 103.
The password parameter pwd=a (this is the administrator password to log into the 3CX management console page NOT the authentication password of extension 103).



Also the link:
http://localhost/management/ivr/PbxAPI.aspx?func=make_call&from=XXXX&to=ZZZZ&pin=YYYY is not correct.
It is IVR that invokes the make call function therefore the IVR website has to be queried and not the 3cx management virtual directory.
 
Re: Version 7 Issues on .Net management application

Thank you. It works !!
I see IIS created a different website just for IVR, using port 5484 by default on install.
BTW, is there any list about possible HTTP POST variables I can pass from CRM or any other web application?
I see you can disable extensions, external calls, recording, etc. but I wonder if some other functions can be manipulated that way.

thank you


Integrax, Inc.
 
integrax said:
BTW, is there any list about possible HTTP POST variables I can pass from CRM or any other web application?

Old topic, though in case somebody might hit this when looking for an answer to the same question:

http://wiki.3cx.com/api/http-api

Has more information on all the possible commands and usage of this method.
 
Status
Not open for further replies.

Getting Started - Admin

Latest Posts

Forum statistics

Threads
141,618
Messages
748,853
Members
144,731
Latest member
jaayb512
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.