A
A
Alexander Karabanov2019-08-13 08:28:28
JavaScript
Alexander Karabanov, 2019-08-13 08:28:28

How to show a notification on a web page when there is an incoming call?

Hello.
When an incoming call is made, the PBX calls the script on the server and sends it the data about the call using the POST method (the number of the caller, the number to which they call if there are several of them, and a number of other parameters - it does not matter).
It is necessary to show a pop-up notification on a web page when there is an incoming call. How it is better to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2019-11-27
@karabanov

You make a web socket server that accepts POST requests immediately from the PBX, bypassing all intermediate scripts.
As soon as a POST arrives at the port of the web socket server, you immediately determine from the signaling data: which VDN, group, etc.
On the other hand, you also define the queues of agents and the numbers of incoming queues served by them (Erlang, if you remember the formulas).
Those. use a socket server as a queue manager with automatic load balancing.
Also, it can be taught to manage a telephone exchange (PBX).
As everything is determined - we pull the desired channel with the connected agent, sending the necessary data to it, which then "pop up" in the form of a contact card of the subscriber on his screen at the time of the call.
Everything is extremely simple!

G
George, 2019-08-13
@georgiokot

There are 2 options:

  • Push to browser
  • websocket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question