-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major improvements to call management
- Loading branch information
Showing
5 changed files
with
172 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 1,46 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="SIPClient"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" type="text/css" href="bower_components/angular/angular-csp.css"> | ||
<link rel="stylesheet/less" type="text/css" href="less/popup.less"> | ||
<script type="text/javascript" src="bower_components/less/dist/less.js"></script> | ||
<title>Chrome SIP Client</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" type="text/css" href="bower_components/angular/angular-csp.css"> | ||
<link rel="stylesheet/less" type="text/css" href="less/popup.less"> | ||
<script type="text/javascript" src="bower_components/less/dist/less.js"></script> | ||
<title>Chrome SIP Client</title> | ||
</head> | ||
<body> | ||
<form ng-controller="SIPClientCtrl" ng-submit="startCall()"> | ||
<fieldset id="connection"> | ||
<button type="button" ng-hide="connected" ng-click="connect()">Connect</button> | ||
<button type="button" ng-show="connected" ng-click="disconnect()">Disconnect</button> | ||
</fieldset> | ||
<fieldset id="new_call" ng-show="connected"> | ||
<label for="toaddr">New call to:</label> | ||
<div> | ||
<input type="text" id="toaddr" name="toaddr" ng-model="toaddr"> | ||
<button type="submit">Call</button> | ||
</div> | ||
</fieldset> | ||
<fieldset ng-repeat="sipCall in calls"> | ||
<output>{{ sipCall.session }}</output> | ||
<button type="button" ng-click="answer(sipCall)">Answer</button> | ||
<button type="button" ng-click="hangup(sipCall)">Hang up</button> | ||
<div class="dialpad"> | ||
<button type="button" ng-repeat="digit in dialpad" ng-click="dtmf(sipCall, digit)">{{ digit }}</button> | ||
</div> | ||
</fieldset> | ||
</form> | ||
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script> | ||
<script type="text/javascript" src="bower_components/angular/angular.js"></script> | ||
<script type="text/javascript" src="js/popup.js"></script> | ||
<form ng-controller="SIPClientCtrl" ng-submit="startCall()"> | ||
<fieldset id="connection"> | ||
<button type="button" ng-hide="connected" ng-click="connect()">Connect</button> | ||
<button type="button" ng-show="connected" ng-click="disconnect()">Disconnect</button> | ||
</fieldset> | ||
<fieldset id="new_call" ng-show="connected"> | ||
<div> | ||
<label for="toaddr">New call to:</label> | ||
<input type="text" id="toaddr" name="toaddr" ng-model="toaddr"> | ||
</div> | ||
<div class="dialpad"> | ||
<button type="button" class="dialbtn" ng-repeat="dialbtn in dialpad" ng-click="dialToAddr(sipCall, dialbtn.digit)"> | ||
<pre>{{ dialbtn.digit }}</pre> | ||
<pre class="letters">{{ dialbtn.letters }}</pre> | ||
</button> | ||
</div> | ||
<button type="submit">Call</button> | ||
</fieldset> | ||
<fieldset ng-repeat="sipCall in calls"> | ||
<output>{{ sipCall.session }}</output> | ||
<div class="dialpad"> | ||
<button type="button" class="dialbtn" ng-repeat="dialbtn in dialpad" ng-click="dtmf(sipCall, dialbtn.digit)"> | ||
<pre>{{ dialbtn.digit }}</pre> | ||
<pre class="letters">{{ dialbtn.letters }}</pre> | ||
</button> | ||
</div> | ||
<button type="button" ng-click="answer(sipCall)">Answer</button> | ||
<button type="button" ng-click="hangup(sipCall)">Hang up</button> | ||
</fieldset> | ||
</form> | ||
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script> | ||
<script type="text/javascript" src="bower_components/angular/angular.js"></script> | ||
<script type="text/javascript" src="js/popup.js"></script> | ||
</body> | ||
</html> |