Possible to integrate 3CX into our website?

Status
Not open for further replies.

woody

Joined
Nov 3, 2007
Messages
7
Reaction score
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.
 
I seem to have asked a tricky one :?

But let's push this to the top, just in case...
 
Yes, I have a sip client web that work well with 3CX.
Can you test it?

regards
Gianfranco
 
Yes, I have a sip client web that work well with 3CX.
Can you test it?

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?
 
Hi,
Why you not use server web 3CX to configurate PBX.

Gianfranco
 
woody said:
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.


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.
 
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).

Hi,
Why you not use server web 3CX to configurate PBX.

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.
 
I do not believe that the developer create one similar project.
 
Oh.. Sorry woody.
I understood from what you wrote that it was you who wanted to make the extensions etc... :D
 
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:
http://www.3cx.com/forums/categories-1/feature-requests-5/odbc-conectivity-2216/?highlight=odbc

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
 
Status
Not open for further replies.