Porovnat verze

Klíč

  • Tento řádek byl přidán.
  • Tento řádek byl odstraněn.
  • Formátování bylo změněno.

...

  • Outgoing call (including ringing event)
  • Incoming call (ringing event)
  • Answer call
  • Hang-up
  • Hold
  • Transfer
  • DTMF


Example

...

incoming event

Requirements

  • user credentials (for communicator)
  • git,node.js

Install instructions

...

Blok kódu
{
    "type": "data",
    "id": "1",
    "payload": {
        "data": {
            "callEvents": {
                "type": "incoming",
                "parameters": {
                    "number": "+420777888999",
                    "entryTime": null,
                    "value": null,
                    "type": null
                }
            }
        }
    }
}

API Documentation

Documentation is based on GraphQL Playground - https://www.apollographql.com/docs/apollo-server/features/graphql-playground/

Mutation
sendRemoteCommand - Send remote command

Subscriptions
callEvents - Incoming command notification


Get the token from Getting Started with the API PBX

API endpoint https://ipbxapi.voipex.io/graphql

Get token in browser console (DevTools - F12)

Blok kódu
languagejs
linenumberstrue
collapsetrue
fetch('https://restapi.ipex.cz/v1/sso/login', {
  method: 'POST',
  body: JSON.stringify({
    email: 'your_login i.e. jiri.nova@ipex.cz',
    password: 'your_password'
  })
})
.then(res => res.json())
.then(({access_token}) => console.log(`"Authorization": "Bearer ${access_token}"`))

Put output to the HTTP Headers


Image RemovedPut output to the HTTP Headers

Image Added


Mutation
sendRemoteCommand - Send remote command

Subscriptions
callEvents - Incoming command notification


Examples


Example Application

Requirements

  • user credentials (for communicator)
  • git,node.js


Install instructions


Image AddedImage Added


FAQ

Q: What is the difference between click2dial and RCC?

...