mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
23 lines
596 B
JavaScript
23 lines
596 B
JavaScript
class CallInfo {
|
|
constructor(opts) {
|
|
this.callSid = opts.callSid;
|
|
this.parentCallSid = opts.parentCallSid;
|
|
this.direction = opts.direction;
|
|
this.from = opts.from;
|
|
this.to = opts.to;
|
|
this.callId = opts.callId;
|
|
this.sipStatus = opts.sipStatus;
|
|
this.callStatus = opts.callStatus;
|
|
this.callerId = opts.callerId;
|
|
this.accountSid = opts.accountSid;
|
|
this.applicationSid = opts.applicationSid;
|
|
}
|
|
|
|
updateCallStatus(callStatus, sipStatus) {
|
|
this.callStatus = callStatus;
|
|
if (sipStatus) this.sipStatus = sipStatus;
|
|
}
|
|
}
|
|
|
|
module.exports = CallInfo;
|