add sms messaging support

This commit is contained in:
Dave Horton
2020-10-09 08:00:17 -04:00
parent 950f1c83b7
commit c02aa94500
12 changed files with 689 additions and 590 deletions

View File

@@ -44,6 +44,14 @@ class CallInfo {
this.callStatus = CallStatus.Trying,
this.sipStatus = 100;
}
else if (this.direction === CallDirection.None) {
// outbound SMS
const {messageSid, accountSid, applicationSid, res} = opts;
this.messageSid = messageSid;
this.accountSid = accountSid;
this.applicationSid = applicationSid;
this.res = res;
}
else {
// outbound call triggered by REST
const {req, accountSid, applicationSid, to, tag} = opts;