beautypg.com

Grandstream GXV3140 GMI Guide User Manual

Page 24

background image

Grandstream Networks, Inc.

GMI HTML SDK and API Guide

Page 24 of 43

www.grandstream.com

Last Updated: 09/2010

}

……

/******************************************************************************

* After the page loads, the first contact will be selected. At the same time, all keypad

events will be handled by softkey_process function.

******************************************************************************/

<

body

onload="init

()

;"

onkeydown="softkey_process

(

event

.keyCode

)

;"

id

=

"call-fr

ame-body"

style

=

"color:white;"

`>

<

center

>

<

h4

>

    Welcome to GMI Call Demo, press

<

font

color

=

'yellow'

size

=

"5"

>

Left

font

>

and

<

font

color

=

'yellow'

size

=

"5"

>

Right

font

>

to select the contacts below, and then

press

<

font

color

=

'yellow'

size

=

"5"

>

Call(F3 softkey)

font

>

or

<

font

color

=

'yellow'

size

=

"5"

>

Enter

font

>

key to originate the call.

h4

>

<

div

>

<

fieldset

style

=

"border:1px solid blue;margin-left:15px;"

>

<

legend

>

Contacts

legend

>

<

table

>

<

tr

>

//Define a contact. When selected, call the contact by calling the API fcuntion

GMIEngine.call(0, user, cb_call)

<

td

align

=

"center"

>

<

table

>

<

tr

><

td

>

<

input

id

=

"c_1"

class

=

"contract"

type

=

"button"

style

=

"background:url(img/05

.gif);"

onfocus="set_user

(

'0'

)

;"

onclick="call

(

'0'

)

"

>

td

>

tr

>

<

tr

><

td

align

=

"center"

>

<

font

class

=

"contract_name"

id

=

"c_1_dst"

>

0

font

>

td

>

tr

>

table

>

td

>

//Define a contact. When selected, call the contact by calling the API fcuntion

GMIEngine.call(0, user, cb_call)

<

td

align

=

"center"

>

<

table

>

<

tr

><

td

>

<

input

id

=

"c_2"

class

=

"contract"

type

=

"button"

style

=

"background:url(img/02

.jpg);"

onfocus="set_user

(

'*26'

)

;"

onclick="call

(

'*26'

)

"

>