Previous page Next page

Syntax Implementation

Click to Dial Functionality

To enable the click to dial functionality, use the following syntax:

wtai://wp/mc;number

This code can be embedded into any valid WML tag that implements href or a hyperlink such as <a> tag, <anchor>, <do>, <option>, or <onevent> tags by associating these tags with a <go> tag.

Click-to-dial using <a> tag:

<?xml version=”1.0”?>

<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”

“http://www.wapforum.org/DTD/wml13.dtd”>

<wml>

<card id=”callid1” title=”Click-to-Dial Demo”>

<p>

Click on the link below to originate a call

<a href=”wtai://wp/mc;5551212”>Call 5551212</a>

</p>

</card>

</wml>

The above-generated code is rendered as the following diagram:

The code shows a hyperlink as Call 5551212 on the web screen of an Avaya 4620 IP Telephone. A phone icon precedes this hyperlink, indicating that it is a “click-to-dial” number. When this link is selected on the phone, the phone will dial the string “5551212” or any phone number followed by a semicolon in the WTAI code on the previous page.

NOTE:

A phone icon is only generated when an <a> tag is used.

Click-to-dial using <anchor> tag:

<?xml version=”1.0”?>

<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”

“http://www.wapforum.org/DTD/wml13.dtd”>

<wml>

<card id=”callid2” title=”Using anchor tag”>

<p>

<p align=”center”>***Customer Service***</p>

Your order will ship in 3-5 days.

If you have any questions, then

<anchor>Call us

<go href=”wtai://wp/mc;5551212”/>

</anchor>

</p>

</card>

</wml>

The above-generated code is rendered as the following diagram:

The code will show a hyperlink as Call Us on the web screen of an Avaya 4620 IP Telephone. When this link is selected on the phone, it will dial the string “5551212” or a number followed by a semicolon in the WTAI code on the previous page.

Click-to-dial using <onevent> tag:

<?xml version=”1.0”?>

<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”

“http://www.wapforum.org/DTD/wml13.dtd”>

<wml>

<card id=”callid3” title=”Incorrect Login”>

<onevent type=”ontimer”>

<timer value=”50”/>

<go href=”wtai://wp/mc;+1888 555 1212"/>

</onevent>

<p>

You have exceeded number of tries.

A call will be automatically launched in 5 seconds.

</p>

</card>

</wml>

The above-generated code is rendered as the following diagram:

The code will automatically dial the number 1888 555 1212 after 5 seconds, once the web page is loaded.

Click-to-dial using <do> tag (softkey):

<?xml version=”1.0”?>

<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”

“http://www.wapforum.org/DTD/wml13.dtd”>

<wml>

<card id=”callid4” title=”Click-to-Dial Demo”>

<p>

Please contact us for more information.

</p>

<do type=”accept” label=”Call Us” name=”dotag1”>

<go href=”wtai://wp/mc;+18005552525”/>

</do>

</card>

</wml>

The above-generated code is rendered as the following diagram:

The code will be implemented as a softkey Call Us indicating that it is a “click-to-dial” number. When this link is selected on the phone, it will dial the string “18005552525” or a number followed by a semicolon in the WTAI code above.


Previous page Next page