bugfix for #15: dialMusic not played on A leg when direction is outbound

This commit is contained in:
Dave Horton
2020-04-15 08:18:16 -04:00
parent fb84dd364c
commit 3909ca18a8

View File

@@ -123,6 +123,9 @@ class TaskDial extends Task {
} }
else { else {
this.epOther = cs.ep; this.epOther = cs.ep;
if (this.dialMusic && this.epOther && this.epOther.connected) {
this.epOther.play(this.dialMusic).catch((err) => {});
}
} }
this._installDtmfDetection(cs, this.epOther, this.parentDtmfCollector); this._installDtmfDetection(cs, this.epOther, this.parentDtmfCollector);
await this._attemptCalls(cs); await this._attemptCalls(cs);