/**
* Call to the number in the $rootScope.dialpadNumber.
*/
- $rootScope.call = function() {
+ $rootScope.call = function(extension) {
storage.data.onHold = false;
storage.data.cur_call = 0;
-
+ $rootScope.dialpadNumber = extension;
if(!$rootScope.dialpadNumber && storage.data.called_number) {
$rootScope.dialpadNumber = storage.data.called_number;
return false;
</div>
</div>
<div class="form-group text-center">
- <button type="submit" class="btn btn-success btn-fab" ng-click="call()" title="Call Extension">
+ <button type="submit" class="btn btn-success btn-fab" ng-click="call(dialpadNumber)" title="Call Extension">
<i class="mdi-communication-call"></i>
</button>
</div>