mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
call jambonzHangup when API ends call (#1104)
This commit is contained in:
@@ -1311,7 +1311,7 @@ class CallSession extends Emitter {
|
|||||||
_lccCallStatus(opts) {
|
_lccCallStatus(opts) {
|
||||||
if (opts.call_status === CallStatus.Completed && this.dlg) {
|
if (opts.call_status === CallStatus.Completed && this.dlg) {
|
||||||
this.logger.info('CallSession:_lccCallStatus hanging up call due to request from api');
|
this.logger.info('CallSession:_lccCallStatus hanging up call due to request from api');
|
||||||
this._callerHungup();
|
this._jambonzHangup();
|
||||||
}
|
}
|
||||||
else if (opts.call_status === CallStatus.NoAnswer) {
|
else if (opts.call_status === CallStatus.NoAnswer) {
|
||||||
if (this.direction === CallDirection.Inbound) {
|
if (this.direction === CallDirection.Inbound) {
|
||||||
|
|||||||
Reference in New Issue
Block a user