mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-20 18:34:22 +00:00
check dlg connected before deleting
This commit is contained in:
1 parent
52f790836a
commit
ff8b6c6b18
1 file changed
+1
-1
@@ -546,7 +546,7 @@ class CallSession extends Emitter {
|
||||
const duration = moment().diff(this.dlg.connectTime, 'seconds');
|
||||
this.emit('callStatusChange', {callStatus: CallStatus.Completed, duration});
|
||||
this.logger.debug('CallSession: call terminated by jambones');
|
||||
origDestroy();
|
||||
if (dlg.connected) origDestroy();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user