Answer the question
In order to leave comments, you need to log in
Is it possible to connect PHP backend and IP telephony?
There is an idea to organize such a thing, when the buyer presses the call button to the operator, the operator in his web admin panel displays the product from the page of which the call was pressed.
Since I have not come across IP-telephony, I would like to ask if its technology allows this to be implemented, at least theoretically?
Those. Is it possible to record the number of the call somewhere when the button is pressed, or, together with the call, also transfer any data to the web server?
Answer the question
In order to leave comments, you need to log in
If you use Asterisk, then the easiest way is the following (I see it as a signalman :)):
1. Put a php script on the web server next to Asterisk, which, using fsockopen, will access the AMI interface of Asterisk and execute Originate on your operator (or group of operators ) https://wiki.asterisk.org/wiki/display/AST/Manager...
2. When you "press" the call button from the site, your application will call the script on Asterisk (item 1) and pass the necessary arguments to it (Variable), for example, the id of the product on the site and the customer's phone number.
3. In the queue settings in Asterisk, use the gosub option and describe in it what needs to be called (what link to "pull", REST request, for example) at the moment the queue operator and your client connect. You pass in this request the previously received product id.
Thus,
- the client presses the "get a consultation by phone" link
- the PBX calls the client using the phone number from his personal account, or you can request a number at the moment the "consultation" link is clicked
- the client picks up the phone and the PBX starts calling a queue with store operators
- a free operator picks up the phone and the Queue application initiates a request towards your CRM system with information about the number of the CC operator (who answered the phone in the queue), the client's phone number and the product id,
- your CRM finds an active operator in the system by his number, finds (if any) a client by his number and pulls up the product id from your database -opens a call card to the operator
- everyone is happy.
Of course, you can also record from your store who clicked what and then connect it with what comes from the PBX, it all depends on your imagination as a developer and on the requirements of your customer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question