Example of javascript call to PBX Application WEb
RespondidaHello guys,
I need an example in javascript, how to place a call to PBX.
I did not see any code example in the documentation.
thank you!-
Hi Fabio,
Do you need some example to use the telephony Service : https://hub.openrainbow.com/#/documentation/doc/web/api/pbx ?
If yes, a working example is here:
https://hub.openrainbow.com/sample/SDKTelephonyAngularSample/index.htmlThe source code can be downloaded from Ressources pages in the HUB: (with other examples)
https://hub.openrainbow.com/#/documentation/doc/web/tutorials/13-Resources
Named: Rainbow Telephony demo (JavaScript Angular)If you need other examples, just ask.
Best regards,
Pascal -
Pascal,
this is awesome, exactly what I was looking for. Perfect for customer demonstration.I just checked the documentation and found the samples by chance.Maybe you should create a link from the front page (Getting Started). Would be much easier to find.Regards,Bernhard -
Pascal Good morning, Thanks for the examples, but I just need an example with a String to call. For example: - In the system, the user clicks a button, -The system connects to the PABX (Raindow) and connects automatically through the System. The example that exists in the documentation does not demonstrate the action of the "Call" button. Follow the example in ASP language of a connection STRING of another PBX that I have already used:If (Operacao = "LIGAR") Then
RamalOrigem = Request.QueryString("R")
NumeroDestino = Request.QueryString("N")
NumeroDestino = Replace(NumeroDestino," ","")
'On Error Resume Next
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET" , "http://kvoip1.callbox.com.br/webservice/index_get.php?pKey=0e695ef3402837cb50eb972404f3acd0&Retorno=2&comando=EfetuarChamada&MaximoTentativas=2&Interface=RAMAL&Origem=" & RamalOrigem & "&Categoria=Padrao&Destino=" & NumeroDestino , false
'xmlhttp.Open "GET" , "http://kvoip1.callbox.com.br/webservice/index_get.php?pKey=0e695ef3402837cb50eb972404f3acd0&Retorno=2&comando=EfetuarChamadaExterna&MaximoTentativas=2&Interface=EXTERNA&Origem=91732583&Categoria=Padrao&Destino=1004&CentroDeCusto=584biovida" , false
xmlhttp.Send
Response.Write(" Ramal: " & RemoveAcentos(RamalOrigem))
Response.Write(" Destino: " & NumeroDestino)
Response.Write(" Resultado: " & RemoveAcentos(xmlhttp.ResponseText))
Response.End()
End If
-
Hi Fabio,
Telephony service API is described here:
https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/pbxAnd the way to call a number/string is with this API:
https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/pbx#module_Telephony.callByNumber(after successful initialize then login with the SDK)
Best regards,
PascalPS: there isn't a REST-Full API like the one described in your ASP example
Iniciar sesión para dejar un comentario.
Comentarios
4 comentarios