diff --git a/clientapp/models/call.js b/clientapp/models/call.js index 4350187..2ba1f81 100644 --- a/clientapp/models/call.js +++ b/clientapp/models/call.js @@ -21,9 +21,7 @@ module.exports = HumanModel.define({ var reason = reasonForEnding || 'success'; this.contact.onCall = false; if (this.jingleSession) { - this.jingleSession.end({ - condition: reason - }); + this.jingleSession.end(reasonForEnding); } this.collection.remove(this); }