mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
added initial support for dialogflow
This commit is contained in:
@@ -462,11 +462,11 @@ class CallSession extends Emitter {
|
||||
* @param {Task} task - task to be executed
|
||||
*/
|
||||
async _evalEndpointPrecondition(task) {
|
||||
this.logger.debug('_evalEndpointPrecondition');
|
||||
this.logger.debug('CallSession:_evalEndpointPrecondition');
|
||||
if (this.callGone) new Error(`${BADPRECONDITIONS}: call gone`);
|
||||
|
||||
if (this.ep) {
|
||||
if (!task.earlyMedia || this.dlg) return this.ep;
|
||||
if (task.earlyMedia === true || this.dlg) return this.ep;
|
||||
|
||||
// we are going from an early media connection to answer
|
||||
await this.propagateAnswer();
|
||||
|
||||
Reference in New Issue
Block a user