Possible to integrate 3CX into our website?

Discussion in '3CX Phone System - General' started by woody, Nov 3, 2007.

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

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
    Hello all,

    We have a website where people can sign up for a telephone number and redirect it to another destination, controlled from our website. For example, a business might use our system to redirect their calls to a landline during the day and then go to the website and redirect them instead to a mobile when their office is closed. Or, they can redirect calls to SIP. Our website already integrates very smoothly with a variety of Webservices and Telnet-based Winsock APIs for creating accounts, registering phone numbers through our telco and so on.

    My question is: does anyone know if there is a way we could integrate our website with 3CX so we can, for example, create an Extension in 3CX via a visitor's actions on our website and amend configs :?:

    I have seen several tempting references from as far back as 2006 on these Forums to an "API" but I can't work out whether this API really exists or whether it would be any help to us.

    In case you are interested, our systems are an entirely Windows-based although naturally in the course of our business we integrate other platforms as well.
     
  2. woody

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
    I seem to have asked a tricky one :?

    But let's push this to the top, just in case...
     
  3. liberars

    Joined:
    Aug 10, 2007
    Messages:
    32
    Likes Received:
    0
    Yes, I have a sip client web that work well with 3CX.
    Can you test it?

    regards
    Gianfranco
     
  4. woody

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
    Hi Gianfranco,

    Thank you for replying to my post. It is not exactly a SIP client that I need, but actually I need a way of creating Extensions and modifying configuration of 3CX from a website, possibly situated on a different server. If I understand you correctly, your sip client web is a web-based SIP client and I think that may be a bit different from what I am looking for.

    But I may have misunderstood, so could you let me know if I am wrong about your sip client web?
     
  5. liberars

    Joined:
    Aug 10, 2007
    Messages:
    32
    Likes Received:
    0
    Hi,
    Why you not use server web 3CX to configurate PBX.

    Gianfranco
     
  6. Mori

    Mori New Member

    Joined:
    Mar 23, 2007
    Messages:
    223
    Likes Received:
    0

    The webbased console is situated at http://server-ip:5481 internaly and http://dns-name:5481 externaly.
    The external console requires that port 5481 is open and routed to the 3cx server.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. woody

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
    Thanks for your message, Øystein.

    I know about the web interface that comes with 3CX. It works well!

    But I don't want our customers to have to log into it to create an Extension for themselves because that would represent a security risk. They would be able to delete other Extensions, modify whatever configurations they want and the result could be chaos :shock:

    I want to be able to create their Extension via scripting through our website (which would have our 'look and feel' instead of the 3CX appearance).

    Because I want people to be able to sign up to our service themselves without any help from me. Giving them a username and password to use the 3CX web interface would be a bad idea for security. And of course, the 3CX web interface looks totally different to our own website. Generally, I like to keep all our websites looking the same with the same colors, layout and so on.
     
  8. liberars

    Joined:
    Aug 10, 2007
    Messages:
    32
    Likes Received:
    0
    I do not believe that the developer create one similar project.
     
  9. Mori

    Mori New Member

    Joined:
    Mar 23, 2007
    Messages:
    223
    Likes Received:
    0
    Oh.. Sorry woody.
    I understood from what you wrote that it was you who wanted to make the extensions etc... :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. woody

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
    In case anyone is interested, I got this to work. That is, to automatically create a new account directly from an external website. It requires a knowledge of ASP scripting.

    First, you follow the excellent instructions in this link for getting direct access to the database:
    Then to create a new account, you can modify the 3CX Postgres database directly as follows:

    public_dn
    ==========
    add [status] of 1
    add [value] of new extension number
    [iddn] should populate itself


    public_extension
    =================
    add [fkiddn] of auto-populated iddn value from public_dn
    add [authid] of new extension number
    add [authpswd] of password
    add [outcid] of new extension number
    add [recrdout] of 0
    add [recrdin] of 0
    add [accstatus] of 0
    add [accconfig] of 0
    add [fwdallcalls] of 1
    add [noanswtimeout] of 15
    add [noanswringing] of 0
    add [busydetection] of 1
    add [isinternal] of 0
    add [isbindtoms] of 1
    add [issupportreinvite] of 0
    add [issupportreplaces] of 0
    add [castatus] of 0
    add [qstatus] of 0
    [idextension] should fill in itself


    public_users
    =============
    add [fkidextension] of auto-populated idextension from public_extension
    add [firstname] of ?????
    add [lastname] of ?????
    add [sipid] of new extension number
    [iduser] should fill in itself


    public_voicemail
    =================
    add [fkiduser] of auto-populated iduser from [public_users]
    add [pinnumber] of new extension number
    add [enabledvm] of 1
    add [answafter] of 3
    add [playcid] of 1
    add [readmsgdt] of 1
    add [use24hours] of 1
    add [emailopts] of 2
    add of user's email address
    [idvoicemail] should fill in itself


    public_extensionforward
    ========================
    Need to add 4 records!!

    add [fkidextension] of auto-populated idextension from public_extension
    add [forwardtype] of 1
    add [forwardtypeto] of 0
    leave [forwardtypetodn] empty
    leave [forwardtooutsidenumber] empty

    add [fkidextension] of auto-populated idextension from public_extension
    add [forwardtype] of 2
    add [forwardtypeto] of 1
    leave [forwardtypetodn] empty
    leave [forwardtooutsidenumber] empty

    add [fkidextension] of auto-populated idextension from public_extension
    add [forwardtype] of 3
    add [forwardtypeto] of 1
    leave [forwardtypetodn] empty
    leave [forwardtooutsidenumber] empty

    add [fkidextension] of auto-populated idextension from public_extension
    add [forwardtype] of 4
    add [forwardtypeto] of 6
    leave [forwardtypetodn] empty
    add [forwardtooutsidenumber] of customer's own PSTN number
     
  11. woody

    Joined:
    Nov 3, 2007
    Messages:
    7
    Likes Received:
    0
Thread Status:
Not open for further replies.