Microsoft TAPI 2.2 [英] Microsoft TAPI 2.2

查看:94
本文介绍了Microsoft TAPI 2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是TAPI的新用户并且正在开发一个将使用TAPI API的应用程序。我的应用程序将有多个线程,这些线程将并行访问TAPI 呼叫控制API。我只是想知道如果
TAPI API是线程安全的。有人可以对此有所了解吗?


亲切的问候,约翰



 


解决方案

TAPI子系统(TAPISRV,电话服务)是线程安全的。


它甚至设计用于同时处理相同设备的并发进程(即多个TAPI应用程序)。

提供的TSP(TAPI驱动程序)由MS和其他制造商设计的可重入或必须明确指出是否。即使在后一种情况下,TAPISRV也能正确处理此问题,并在内部正确地序列化TSP访问。


因此,您的应用程序肯定可以使用多个线程处理TAPI 2.x.

Of当然,您的应用需要处理同步和异步  TAPI功能(LINE_REPLY消息)的概念,以及您选择的事件通知机制(完成端口/事件处理/隐藏窗口)。


Hi,

I am new to the TAPI and going to develop an application that will use TAPI APIs. My application will have multiple threads and these threads will be accessing TAPI call control APIs in parallel. I was just wondering that if TAPI APIs are thread safe. Can someone please shed some light on it?

Kind regards, John

 

解决方案

The TAPI sub-system (TAPISRV, Telephony Service) is thread safe.

It is even designed to handle concurrent processes (i.e. multiple TAPI applications) at the same time for the same devices.
The TSPs (TAPI drivers), provided by MS and other manufacturers, are designed to be re-entrant or have to explicitly indicate if not. Even in the latter case TAPISRV handles this correctly and internally serializes TSP access properly.

So your app can surely use multiple threads handling TAPI 2.x.
Of course your app needs to deal with the concepts of synchronous and asynchronous TAPI functions (LINE_REPLY messages) and the event notification mechanism (Completion Port / Event Handle / Hidden Window) of your choice.


这篇关于Microsoft TAPI 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆