Nexmo / comms-router

A server which allows you to route tasks to agents.
Apache License 2.0
21 stars 11 forks source link

How it works "app.nexmoCallbackBaseUrl" ? #103

Open HoriNexmo opened 5 years ago

HoriNexmo commented 5 years ago

Hi, Appreciated if I have following answer.

  1. What is difference "app.callbackBaseUrl" and "app.nexmoCallbackBaseUrl" ?

  2. Case of "app.nexmoCallbackBaseUrl", It looks work to callback Agent SIP number When task being assigned to Agent ?

Regards, Hori

angel-popov commented 5 years ago

Hi Hori, app.nexmoCallbackBaseUrl points to URL that will be used from the Nexmo server for invoking web hooks, e.g. http://host:port/demo-app-root/api For example, when a call is received on nexmo side, nexmo will call this app.nexmoCallbackBaseUrl in order to get answer ncco

app.callbackBaseUrl is URL that will be used from the Comms Router web app for invoking Task callback hooks, e.g. http://host:port/demo-app-root/api For example, when task gets in state assigned.

Sample workflow is as follow: