-
Notifications
You must be signed in to change notification settings - Fork 7
/
js_test.php
25 lines (24 loc) · 908 Bytes
/
js_test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</html>
<head>
<script>
function onProxyEvent(type,msg){
alert(msg);
}
function startConference(){
alert(document.getElementById('agent').value);
alert(document.getElementById('another').value);
window.external.AgentNwayCallStart(document.getElementById('agent').value,document.getElementById('agent').value);
}
function inviteAnotherOne(){
alert(document.getElementById('agent').value);
alert(document.getElementById('another').value);
window.external.AgentNwayCallAddOne(document.getElementById('agent').value,document.getElementById('another').value,document.getElementById('agent').value,"1183",60000)
}
</script>
</head>
<body>
agent:<input id='agent' type='text' value="1002"/>
anthor:<input id='another' type='text' value="1183"/>
<input type="button" value='startConference' onClick="startConference()"/>
<input type="button" value="inviteAnotherOne" onClick="inviteAnotherOne()"/>
</body>