| 1 |
<html> |
|---|
| 2 |
<head> |
|---|
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> |
|---|
| 4 |
<link rel="stylesheet" href="styles.css" media="screen" /> |
|---|
| 5 |
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT"> |
|---|
| 6 |
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> |
|---|
| 7 |
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> |
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
<SCRIPT LANGUAGE="JavaScript"> |
|---|
| 11 |
<!-- |
|---|
| 12 |
var movieName = "operator_panel"; |
|---|
| 13 |
|
|---|
| 14 |
function thisMovie(movieName) { |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
if (navigator.appName.indexOf ("Microsoft") !=-1) { |
|---|
| 18 |
return window[movieName] |
|---|
| 19 |
} else { |
|---|
| 20 |
return document[movieName] |
|---|
| 21 |
} |
|---|
| 22 |
} |
|---|
| 23 |
|
|---|
| 24 |
function movieIsLoaded (theMovie) { |
|---|
| 25 |
if (typeof(theMovie) != "undefined") { |
|---|
| 26 |
return theMovie.PercentLoaded() == 100; |
|---|
| 27 |
} else { |
|---|
| 28 |
return false; |
|---|
| 29 |
} |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
function sendnumber(telefono) { |
|---|
| 34 |
if (movieIsLoaded(thisMovie(movieName))) { |
|---|
| 35 |
thisMovie(movieName).TGotoFrame("_level0/numdial",10); |
|---|
| 36 |
for(a=0;a<telefono.length;a++) { |
|---|
| 37 |
var frame= telefono.charAt(a); |
|---|
| 38 |
if(!isNaN(frame)) { |
|---|
| 39 |
thisMovie(movieName).TGotoFrame("_level0/numdial",frame); |
|---|
| 40 |
thisMovie(movieName).TGotoFrame("_level0/numdial",12); |
|---|
| 41 |
} |
|---|
| 42 |
} |
|---|
| 43 |
thisMovie(movieName).TGotoFrame("_level0/numdial",11); |
|---|
| 44 |
} |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
</script> |
|---|
| 49 |
|
|---|
| 50 |
</head> |
|---|
| 51 |
<body> |
|---|
| 52 |
|
|---|
| 53 |
<!-- |
|---|
| 54 |
To enable click to dial, you have to specify the dial parameter after each |
|---|
| 55 |
appearance of operator_panel.swf below. You can specify the button number |
|---|
| 56 |
as this example, or the channel name, like |
|---|
| 57 |
|
|---|
| 58 |
operator_panel.swf?dial=SIP/john |
|---|
| 59 |
|
|---|
| 60 |
When a dial order is received from javascript, it will use that channel |
|---|
| 61 |
to originate the call. It only works for channels for the 1st server |
|---|
| 62 |
(if you are monitoring multiple servers). |
|---|
| 63 |
--> |
|---|
| 64 |
|
|---|
| 65 |
<div align='center'> |
|---|
| 66 |
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="990" height="600" id="operator_panel"> |
|---|
| 67 |
<param name="allowScriptAccess" value="sameDomain" /> |
|---|
| 68 |
<param name="movie" value="operator_panel.swf?dial=7" /> |
|---|
| 69 |
<param name="quality" value="high" /> |
|---|
| 70 |
<param name="bgcolor" value="#ffffff" /> |
|---|
| 71 |
<embed src="operator_panel.swf?dial=7" quality="high" bgcolor="#ffffff" width=990" height="600" name="operator_panel" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> |
|---|
| 72 |
</div> |
|---|
| 73 |
|
|---|
| 74 |
<a href="#" onclick="sendnumber('18005555555'); return false;">Dial 1-800-555-5555</a> |
|---|
| 75 |
|
|---|
| 76 |
</body> |
|---|
| 77 |
</html> |
|---|
| 78 |
|
|---|