Commit 14d02200 authored by nextime's avatar nextime

GMI application for grandstream gxv3175 started

parent 593d6d4a
ALTER TABLE `voip_users` ADD `callbackextension` VARCHAR( 255 ) NULL DEFAULT NULL AFTER `secret`;
ALTER TABLE `voip_users` ADD INDEX ( `callbackextension` );
ALTER TABLE `voip_users` ADD `regserver` VARCHAR( 100 ) NULL DEFAULT NULL AFTER `insecure` , ADD INDEX ( `regserver` );
UPDATE voip_users SET nat='force_rport,comedia instead' WHERE nat='yes';
ALTER TABLE `voip_users` ADD `avpf` ENUM( 'no', 'yes' ) NOT NULL DEFAULT 'no' AFTER `transport`;
ALTER TABLE `voip_users` ADD `encryption` ENUM( 'no', 'yes' ) NOT NULL DEFAULT 'no' AFTER `avpf`;
ALTER TABLE `voip_users` CHANGE `nat` `nat` ENUM( 'force_rport,comedia', 'no', 'force_rport', 'comedia' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'force_rport,comedia';
<html> <html>
<head> <head>
<title>Domotika GMI Interface</title> <title>Domotika GMI Interface</title>
<link rel="stylesheet" href="/resources/pure/pure-nr-min.css">
<link href='style.css' type='text/css' rel='stylesheet'> <link href='style.css' type='text/css' rel='stylesheet'>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="simpleGMI.js"></script> <script language="javascript" src="simpleGMI.js"></script>
...@@ -12,13 +13,34 @@ ...@@ -12,13 +13,34 @@
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
simpleGMI.fullScreen(); simpleGMI.fullScreen();
function sarca(data)
{
alert(data);
}
setInterval(function(){
simpleGMI.post('http://admin:domotika@q.unixmedia.net/domotika/gmi/style.css', 'aaa=sarca', sarca);
}, 5000);
</script> </script>
</head> </head>
<body> <body>
<div>spazio</div> <div class="pure-g">
<div>spazio</div> <div class="pure-u-1-3">
<div>spazio</div> <button class="pure-button pure-button-primary" onclick="simpleGMI.refresh()">REFRESH</button>
<div onclick="simpleGMI.refresh()">AAAAAAAAAAAAAAAAAAAAAAAAAAAA</div> </div>
<div class="pure-u-1-3">
</div>
<div class="pure-u-1-3" style="float:right">
<button class="pure-button pure-button-primary" onclick="simpleGMI.refresh()">REFRESH</button>
</div>
</div>
<div class="footer-bar">
<button onClick="simpleGMI.dial(0, 0, 0, 281, '', 1)" class="pure-button pure-button-secondary">
<img src="img/microphone-little.png"></img>
</button>
</div>
</body> </body>
</html> </html>
...@@ -104,14 +104,14 @@ function SimpleGMI(){ ...@@ -104,14 +104,14 @@ function SimpleGMI(){
pagedoc.title = "simpleGMI::stopPlay"; pagedoc.title = "simpleGMI::stopPlay";
} }
this.dial = function( account, isVideo, isDialPlan, number, headers ) this.dial = function( account, isVideo, isDialPlan, number, headers, hidePhone )
{ {
pagedoc.title = "null"; pagedoc.title = "null";
if ( headers != undefined ) if ( headers != undefined )
{ {
pagedoc.title = "simpleGMI::dial::" + account + "::" + isVideo pagedoc.title = "simpleGMI::dial::" + account + "::" + isVideo
+ "::" + isDialPlan + "::" + number + "::" + headers; + "::" + isDialPlan + "::" + number + "::" + headers + "::" + hidePhone;
} }
else else
{ {
......
body {
background-image:url('img/bg.jpg');
color: #FFF;
font-color: #FFF;
}
.footer-bar {
position: fixed;
bottom: 0;
width: 100%;
height: 50px;
color: #000;
font-color: #000;
background-color:#d3d3d3;
}
.pure-button-success,
.pure-button-error,
.pure-button-warning,
.pure-button-secondary {
color: white;
border-radius: 4px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.pure-button-success {
background: rgb(28, 184, 65); /* this is a green */
}
.pure-button-error {
background: rgb(202, 60, 60); /* this is a maroon */
}
.pure-button-warning {
background: rgb(223, 117, 20); /* this is an orange */
}
.pure-button-secondary {
background: rgb(66, 184, 221); /* this is a light blue */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment