mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
check dlg connected before deleting
This commit is contained in:
@@ -570,7 +570,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