首页
学习
活动
专区
圈层
工具
发布

TAPI来电
EN

Stack Overflow用户
提问于 2015-12-17 19:39:24
回答 1查看 1.3K关注 0票数 0

我正在使用Delphi6中的Async Professional库来执行对Avaya Ip Office呼叫中心的tapi调用。

我已经成功地通过vcl组件(ApdTapiDevice1、ApdTapiStatus1、ApdComPort1)执行了传出-内部调用。

我想检测来电的来电号码。这个是可能的吗?

提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2015-12-17 20:26:18

TApdTapiDevice有一个OnTapiCallerID事件,您可以连接到它来获取CallerID字符串和CallerIDName

它还提供了一个提供ITCallInfo接口的CopyCallInfo方法(请参阅:MSDN ITCallInfo)。这将公开一个方法get_CallInfo (MSDN : get_CallInfo),该方法可以检索由CALLINFO_STRING枚举(MSDN : CALLINFO_STRING)枚举的信息字符串。

TApdVoIP组件还提供了一个CallInfo属性,该属性包含有关呼叫信息的扩展记录。

代码语言:javascript
复制
TApdVoIPCallInfo = record
    InfoAvailable : Boolean;       { True if we get the info, False if the }
                                   { ITCallInfo interface isn't available  }
    { string type fields }
    CallerIDName,                  { the name of the caller }
    CallerIDNumber,                { the number of the caller }
    CalledIDName,                  { the name of the called location }
    CalledIDNumber,                { the number of the called location }
    ConnectedIDName,               { the name of the connected location }
    ConnectedIDNumber,             { the number of the connected location }
    CalledPartyFriendlyName,       { the called party friendly name }
    Comment,                       { a comment about the call provided by the originator }
    DisplayableAddress,            { a displayable version of the called or calling address }
    CallingPartyID : string;       { the identifier of the calling party }
    { DWORD types }
    MediaTypesAvailable,           { the media types available on the call (TAPIMEDIATYPE_*) }
    CallerIDAddressType,           { the address types (LINEADDRESSTYPE_*) }
    CalledIDAddressType,
    ConnectedIDAddressType,
    Origin,                        { the origin of the call (LINECALLORIGIN_*) }
    Reason,                        { the reason for the call (LINECALLREASON_*) }
    MinRate,                       { the minimun data rate in bps }
    MaxRate,                       { the maximum data rate in bps }
    Rate : DWORD;                  { the current rate of the call in bps }
  end;

如果您正在使用AsyncPro进行严肃的开发,那么保留一个copy of the reference manual handy是非常值得的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34333691

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档