How to implement notification about incoming call in the CRM?

You want to display information about incoming call in the browser in samopisnaya CRM (php+mysql)
as telephony is a cloud PBX Mango Telecom
there are API
www.mango-office.ru/products/virtualnaya_ats/funct...

Managed to implement only receive statistics about the calls via cron
But the most important thing you need to handle events in real-time
there are thoughts in the direction of study Node.js which I have zero.

In what direction to look ?
Any solutions ?
July 9th 19 at 13:48
3 answers
July 9th 19 at 13:50
Not quite on topic of course, but... Mango is not able itself to send the API call? Zadarma (just did an experiment: after a call to Balance itself sends call data through the API) can.
the manga is able to send event POST about the call /events/call
to handle this I can side the web server to write to database for example
while plugging on the implementation of the notification to the operator - ramona_Lubowitz commented on July 9th 19 at 13:53
: which operator? - kristian commented on July 9th 19 at 13:56
Have yourself) a Mango Telekom itself is the operator - ramona_Lubowitz commented on July 9th 19 at 13:59
: That “myself”, I don't understand. You say plugging in the notification to the operator which provider You want to notify? - kristian commented on July 9th 19 at 14:02
the operator who sits at a computer and handle calls. - ramona_Lubowitz commented on July 9th 19 at 14:05
: Ah, that's it! And why did it notify? Directly notify CRM if she has the API. And if not, you can try directly in the database to write. - kristian commented on July 9th 19 at 14:08
Record in the database the question is almost solved. This is not enough, you need to write to database and display form for the operator to fill the data, and if the client is old we find him in the database and display the data for the client. - ramona_Lubowitz commented on July 9th 19 at 14:11
July 9th 19 at 13:52
the city server is listening to the calls from Mongo
operators cling to it via WebSocket
came the call posite desired operator
next is what you want or ajax to pull from the right place data is either an operator gmake formed by the link from the data sent by WS

for Node.js not to say I have not tried and have no desire
in Golang is done in a few hours with almost zero knowledge of the language
Thank you. I will continue to think - ramona_Lubowitz commented on July 9th 19 at 13:55
July 9th 19 at 13:54
I got the idea to implement this is via push notifications that support Chrome and Mozila
Maybe it will be easier.

Find more questions by tags AsteriskCRMNode.jsSIP