D
D
Dima_kras2015-08-05 09:44:11
Asterisk
Dima_kras, 2015-08-05 09:44:11

How to pass a phone number from Asterisk to a web page?

Good afternoon.
Task:
There is an Asterisk server, calls to operators go through it.
The operator has a CRM open, CRM is self-written, in fact a website.
How to pass a defined phone number from Asterisk to a web page?
This is necessary in order to open a client card in CRM
. Now there is a button in CRM, by clicking on which, we send a request to the cdr Asterisk database, look at the number with which the conversation is going on - and open the client card. But this is not convenient, because. the operator needs to press the button during the conversation.
We want to make the opening of the card happen automatically.
The first idea was to use a java script to access the database 10 times per second and check if there is a call. But this is an extra burden.
Probably somehow it is possible to transfer data from the web server to the operator's browser? What is this technology called? In which direction to dig?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir, 2015-08-05
@rostel

The most preferred AMI + WebSocket implementation.
You need to hang up the AMI event listener daemon.
When accepting a subscription from a customer, must remember the extension number of the operator.
Upon the arrival of an incoming subscribed operator, push it to his channel.
Some SIP clients may pull the link on an incoming call.
It is possible to try through this crutch.

I
Ivan Baidin, 2015-08-05
@zeronice

add
exten => XXXXXXXX,1,Set($rrr=${CURL( http://IP_CRM/Path_to_Script/show_number?number={C...) to the dialplan,
and don't forget to add the asterisk-curl package to the system with asterisk

E
Evgeniy, 2015-08-07
@BoDRbI

Look towards AMI (Asterisk Management Interface), such things are usually more convenient and more correct to do through it.

Z
z0rgoyok, 2015-08-05
@z0rgoyok

We made a WebRTC dialer in the browser (sipml5), the call comes directly to the browser, and with it the js event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question