Bug 972017 Part 4 - Hook up the OT sdk to the direct calling window for Loop. r=nperriault

This commit is contained in:
Mark Banner
2014-10-03 22:42:02 +01:00
parent 1867351e2d
commit 953fc553fa
16 changed files with 1049 additions and 100 deletions

View File

@@ -227,6 +227,8 @@ loop.Client = (function($) {
* @param {Function} cb Callback(err, result)
*/
setupOutgoingCall: function(calleeIds, callType, cb) {
// For direct calls, we only ever use the logged-in session. Direct
// calls by guests aren't valid.
this.mozLoop.hawkRequest(this.mozLoop.LOOP_SESSION_TYPE.FXA,
"/calls", "POST", {
calleeId: calleeIds,