Answer the question
In order to leave comments, you need to log in
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
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.
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
Look towards AMI (Asterisk Management Interface), such things are usually more convenient and more correct to do through it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question