Open HoriNexmo opened 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.
Nexmo receives a call and notifies demo-app using app.nexmoCallbackBaseUrl.
Demo-app creates a task in comms-router and returns some ncco. In the task, there is a parameter where is the callback that will be called by comms-router on task change. Here app.nexmoCallbackBaseUrl is used as a prefix
When the task could be started by agent, comms-router notifies demo-app about status of the task using app.callbackBaseUrl.
demo-app initiates call to an agent, bridges incoming call to the agent, and when call is completed, sets task as completed.
Hi, Appreciated if I have following answer.
What is difference "app.callbackBaseUrl" and "app.nexmoCallbackBaseUrl" ?
Case of "app.nexmoCallbackBaseUrl", It looks work to callback Agent SIP number When task being assigned to Agent ?
Regards, Hori