mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
send_silence_when_idle only after call is answered or bridged
This commit is contained in:
@@ -754,7 +754,6 @@ class TaskDial extends Task {
|
||||
* audiocodes webrtc client somehow inserts massive latency if we send silence
|
||||
* and then bridge A and B.
|
||||
*/
|
||||
this.ep.set('send_silence_when_idle', -1);
|
||||
}
|
||||
this.bridged = true;
|
||||
}
|
||||
@@ -844,6 +843,9 @@ class TaskDial extends Task {
|
||||
this.timerMaxCallDuration = setTimeout(this._onMaxCallDuration.bind(this, cs), this.timeLimit * 1000);
|
||||
}
|
||||
sessionTracker.add(this.callSid, cs);
|
||||
|
||||
this.ep?.set({send_silence_when_idle: -1});
|
||||
|
||||
this.dlg.on('destroy', () => {
|
||||
/* if our child is adulting, he's own his own now.. */
|
||||
if (this.dlg) {
|
||||
|
||||
Reference in New Issue
Block a user