Skip to content

Commit

Permalink
stringify from property
Browse files Browse the repository at this point in the history
  • Loading branch information
msach22 committed Feb 22, 2019
1 parent 75a03d3 commit 339cd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/opentok.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@ OpenTok.prototype.dial = function (sessionId, token, sipUri, options, callback)
body.sip.secure = !!options.secure;
}

if (options.from && _.isString(options.from)) {
body.sip.from = options.from;
if (options.from) {
body.sip.from = String(options.from);
}

this.client.dial(body, function (err, json) {
Expand Down

0 comments on commit 339cd4c

Please sign in to comment.