Play example, 3 play example – Grandstream GXV3140 GMI Guide User Manual
Page 25

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 25 of 43
www.grandstream.com
Last Updated: 09/2010
td
>
tr
>
<
tr
><
td
align
=
"center"
>
<
font
class
=
"contract_name"
>
*26
font
>
td
>
tr
>
table
>
td
>
…… //Omit the code for the other contacts
tr
>
table
>
fieldset
>
<
div
>
//When the Call button is pressed, use the text inputted in the text box as the
number to call. Call the API function GMIEngine.call(0, user, cb_call) to initiate the
phone call.
<
h4
>
If you can't find the number you want to call, you
can enter the number below and then press
<
font
color
=
'yellow'
size
=
"5"
>
Call
font
>
button.
h4
>
<
div
>
<
input
type
=
"text"
id
=
"dial_number"
value
=
"Number To
Dial"
><
input
id
=
"call-submit"
onclick="call
(
document
.getElementById
(
'dial_numbe
r'
)
.value
)
"
type
=
"button"
value
=
"Call"
>
div
>
//When the “Launch” button is pressed, launch the specified application by
//calling the API function GMIEngine.launch(program, cb_launch).
<
h4
>
Or launch
<
font
color
=
'yellow'
size
=
"5"
>
Phonebook
font
>
and call
h4
>
<
div
>
<
input
id
=
"launch-contract"
type
=
"button"
value
=
"Launch
Phonebook"
onclick="launch
(
'phonebook'
)
;"
>
div
>
<
center
>
body
>
6.3 Play Example
This example is part of the “Call” example source code, please scroll down the page
to view this.