You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say an inbound application wants to queue the caller and separately launch a dial. This requires injectCommand to support 'dial' which it currently does not
The text was updated successfully, but these errors were encountered:
/* queue the caller */
session
.say({text: 'Please hold while we find you an agent.'})
.enqueue({name: session.call_sid})
.hangup()
.send();
await sleepFor(500);
/* now outdial to the agent, passing on the queue name */
session.injectCommand('dial', {
application_sid: 'a52d6cbf-3a8b-41f7-a8d4-4b1964c52451',
from: '15083728299',
to: {
type: 'phone',
number: '15083084809'
},
tag: {
queueName: session.call_sid,
prompt: 'Hi there, we have a John Doe on the line. Please hold and I will connect you'
}
})
Say an inbound application wants to queue the caller and separately launch a dial. This requires injectCommand to support 'dial' which it currently does not
The text was updated successfully, but these errors were encountered: