call jambonzHangup when API ends call (#1104)

This commit is contained in:
Sam Machin
2025-03-03 12:23:03 +00:00
committed by GitHub
parent bf4ae5b618
commit a5e778d7f3

View File

@@ -1311,7 +1311,7 @@ class CallSession extends Emitter {
_lccCallStatus(opts) {
if (opts.call_status === CallStatus.Completed && this.dlg) {
this.logger.info('CallSession:_lccCallStatus hanging up call due to request from api');
this._callerHungup();
this._jambonzHangup();
}
else if (opts.call_status === CallStatus.NoAnswer) {
if (this.direction === CallDirection.Inbound) {