我正在使用Delphi6中的Async Professional库来执行对Avaya Ip Office呼叫中心的tapi调用。
我已经成功地通过vcl组件(ApdTapiDevice1、ApdTapiStatus1、ApdComPort1)执行了传出-内部调用。
我想检测来电的来电号码。这个是可能的吗?
提前感谢!
发布于 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属性,该属性包含有关呼叫信息的扩展记录。
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是非常值得的。
https://stackoverflow.com/questions/34333691
复制相似问题