Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

Version 7 API info

Discussion in '3CX Phone System - General' started by integrax, Dec 9, 2008.

Thread Status:
Not open for further replies.
  1. integrax

    Joined:
    Dec 9, 2008
    Messages:
    19
    Likes Received:
    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:

    [​IMG]

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Nick Galea

    Nick Galea Site Admin

    Joined:
    Jun 6, 2006
    Messages:
    1,971
    Likes Received:
    280
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. integrax

    Joined:
    Dec 9, 2008
    Messages:
    19
    Likes Received:
    0
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. integrax

    Joined:
    Dec 9, 2008
    Messages:
    19
    Likes Received:
    0
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nb

    nb Support Team
    Staff Member 3CX Support

    Joined:
    Jun 7, 2007
    Messages:
    2,153
    Likes Received:
    174
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. integrax

    Joined:
    Dec 9, 2008
    Messages:
    19
    Likes Received:
    0
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. MrKoen

    Joined:
    Jul 3, 2009
    Messages:
    61
    Likes Received:
    0
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.