超级难问题,在网页中实现点击某一电话号码后拨通ip电话

现有一内网网站,客户想实现通过从数据库中查询出电话号码点击则拨通ip电话,一点相关东西也没有,点滴提示均有分相赠,
---------------------------------------------------------------

楼主应该查一下拨IP电话的相关软件,然后根本IP击活该软件,当然如果有该软件的源码可以做成COM供调用更好了!没有做过,只是个人想法而以·
---------------------------------------------------------------

需要有专门拨打电话的com组件,然后就可以使用页面的onclick事件调用
---------------------------------------------------------------

需要有专门拨打电话的com组件,然后就可以使用页面的onclick事件调用

---------------------------------------------------------------

必须电话的组件
---------------------------------------------------------------

还要有接口..不过这种接口在电信局.
---------------------------------------------------------------

拨通电话的功能程序只能用服务商提供的,Web上所要做的是调用该Com组件,呵呵,就看这种组件提供的接口了。
---------------------------------------------------------------

 1<html>
 2<head>
 3<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
 4<title>sinodigital</title>
 5<script language="JavaScript"><!--   
 6  
 7var ua = navigator.userAgent;   
 8var an = navigator.appName;   
 9  
10// Is it IE?   
11bMSIE = (ua.indexOf("MSIE")>=1);   
12if (! bMSIE)   
13{   
14alert("只能在ie中运行");   
15window.close;   
16}   
17//-->   
18</script>
19<script language="VbScript">   
20  
21  
22'下列常量从tapi3if.idl中拷贝   
23Const TAPIMEDIAMODE_AUDIO = &H08&   
24Const TAPIMEDIAMODE_VIDEO = &H8000&   
25Const S_MEDIA_AUDIOVIDEO = &H8008&   
26Const TD_CAPTURE = 0   
27Const TD_RENDER = 1   
28Const QSL_NEEDED = 1   
29Const AS_INSERVICE = 0   
30Const DC_NORMAL = 0   
31Const TE_CALLSTATE = 8   
32Const TE_CALLNOTIFICATION = 4   
33Const CS_DISCONNECTED = 3   
34Const CS_IDLE = 0   
35Const CS_OFFERING = 4   
36Const CS_CONNECTED = 2   
37Const CNE_OWNER = 0   
38Const CIS_CALLERIDNAME = 0   
39'IDs接口   
40'可以在tapi3.idl, tapi3if.idl, rend.idl中找到   
41  
42Const IID_String_ITMediaSupport = "{B1EFC384-9355-11D0-835C-00AA003CCABD}"   
43Const IID_String_ITTerminalSupport="{B1EFC385-9355-11D0-835C-00AA003CCABD}"   
44Const IID_String_ITBasicCallControl = "{B1EFC389-9355-11D0-835C-00AA003CCABD}"   
45  
46'Const IID_String_ITCallInfo = "{B1EFC390-9355-11d0-835C-00AA003CCABD}"   
47  
48Const IID_String_ITCallInfo = "{350F85D1-1227-11D3-83D4-00C04FB6809F}"   
49Const IID_String_ITStreamControl= "{EE3BD604-3868-11D2-A045-00C04FB6809F}"   
50Const IID_String_ITDirectoryObjectConference= "{F1029E5D-CB5B-11D0-8D59-00C04FD91AC0}"   
51Const IID_String_ITCallStateEvent = "{62F47097-95C9-11d0-835D-00AA003CCABD}"   
52Const IID_String_ITCallNotificationEvent = "{895801DF-3DD6-11d1-8F30-00C04FB6809F}"   
53  
54  
55Const IID_String_IVideoWindow = "{56A868B4-0AD4-11CE-B03A-0020AF0BA770}"   
56  
57'下面这个CLSID tapi3.h 的定义   
58  
59Const CLSID_String_VideoWindowTerm = "{F7438990-D6EB-11d0-82A6-00AA00B5CA1B}"   
60  
61  
62'****************************************************************************   
63'全局变量   
64'****************************************************************************   
65'设置成true,可以在不能完成连接的时候跳过   
66  
67DIM sUnableToComplete   
68DIM sbNeedToExit   
69sUnableToComplete = False   
70sbNeedToExit = False   
71  
72  
73DIM pRegisteredCallNotification(50)   
74DIM pRegisteredName(50)   
75DIM iQtaRegistered   
76iQtaRegistered = 0   
77  
78  
79  
80DIM sCurrentAddressType   
81sCurrentAddressType = -1   
82  
83DIM spITCall   
84spITCall = Empty   
85  
86  
87DIm pVideoWindow1   
88DIm pVideoWindow2   
89  
90</script>
91<script id="clientEventHandlersVBS" language="vbscript"></script></head></html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus