mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
fixes
This commit is contained in:
@@ -18,7 +18,8 @@ class CallInfo {
|
||||
this.originatingSipIP = req.get('X-Forwarded-For');
|
||||
this.originatingSipTrunkName = req.get('X-Originating-Carrier');
|
||||
}
|
||||
else if (opts.parentCallInfo instanceof CallInfo) {
|
||||
else if (opts.parentCallInfo) {
|
||||
console.log(`is opts.parentCallInfo a CallInfo ${opts.parentCallInfo instanceof CallInfo}`);
|
||||
const {req, parentCallInfo} = opts;
|
||||
this.callSid = uuidv4();
|
||||
this.parentCallSid = parentCallInfo.callSid;
|
||||
|
||||
@@ -198,7 +198,7 @@ class CallSession extends Emitter {
|
||||
}
|
||||
_notifyCallStatusChange({callStatus, sipStatus}) {
|
||||
this.logger.debug(`CallSession:_notifyCallStatusChange: ${callStatus} ${sipStatus}`);
|
||||
this.callInfo.updateStatus(callStatus, sipStatus);
|
||||
this.callInfo.updateCallStatus(callStatus, sipStatus);
|
||||
try {
|
||||
this.notifyHook(this.application.call_status_hook);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user