mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
major refactoring
This commit is contained in:
22
lib/session/call-info.js
Normal file
22
lib/session/call-info.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user