ZyXEL Communications ISG50 User Manual

Page of 880
Chapter 29 Extension Management
ISG50 User’s Guide
474
29.5.1.1  Sample HTML for a Click-To-Talk Extension
This is the basic JavaScript and HTML code used to embed the ZyXEL web-based IP phone client in 
a web page.
Note: You must replace both WEB_SERVER_ADDR strings in the sample code with your own 
company’s website. For example, “www.zyxel.com”.
Note: If you change your dial number or WAN IP address, then you must regenerate the 
sample code.
Note: Makes sure the following four files are in a single location: ctt.js, ctt.html, 
clicktotalk.cab and clicktotalk.swf.
Once you embed the link, a visitor to your website can then click it and open the web-based IP 
phone to speak directly to person at the other end.
Figure 305   
Sample CTT Web Page
<script lang="JavaScript" src="http://WEB_SERVER_ADDR/ctt.js"></script>
<a href= 
"javascript:Click_to_Talk('WEB_SERVER_ADDR','dicompjrwmA7352)yshvpdqg@wm4rV
q[8&yuhvuhgrhx?zo3qTpZ:(vitvitltcghr@595246.542344<5483*fwqfpsfhA5)uuhvkgAL
olcqr(wynqinlt?474165173.533*vxrnhprrvv@82')">Click_to_Talk</a>