Properties, Methods and Events

 

Properties Description
CallerName() As String This property returns the CALLER's NAME if Caller ID is Enabled for the PSTN Network Account.
CallerDate() As String This property returns the CALL DATE as told to you by your telephone Exchange. Works only If Caller ID is Enabled for the PSTN Network Account.
CallerTime() As String This property returns the CALL DATE as told to you by your telephone Exchange. Works only If Caller ID is Enabled for the PSTN Network Account.
CallerPhone() As String This property returns the CALLER's PHONE NO if Caller ID is Enabled for the PSTN Network Account.

 

Methods Description
SetCallerID(ByVal nPort As Integer, ByVal PortSettings As String, ByVal CallerIDType As CIDCommands) As Boolean Initializes Caller-ID processing without TAPI. 

nPort is the port where the modem device is installed (usually 1-2)
PortSettings sets the baud rate, parity, data bit, and stop bit parameters of the device. (usually "9600,N,8,1")
CallerIDType are initialization strings found from various modem manufacturers manual. We have provided the famous few. The first one works for the US. Robotics Modem, try the other ones if Caller-ID does not seem to work at your place. If you believe we don't have the one which your mfg has provided do send us the string, we will be happy to add it.
ResetPort() As Boolean Releases the port so that you can initialize TAPI using StartTAPI.
ClearCIDMemory() As Boolean This function erases the earlier Caller ID Info. The last call is always stored in registry until you use this function.
DialNumber(ByVal Digits As String) As Boolean This instruction places a call from 'your modem'. The number to dial is specified by "Digits" . This establishes a connection so that you can play and record wave files. For example : DialNumber("3352411")
Hangup() As Boolean This instruction hangs-up your phone line connected using "Pick up"
MonitorDigits() As Boolean The instruction starts monitoring digits pressed by the caller. 
Pickup() As Boolean The instruction picks-up the phone in case it is ringing and makes a line connection so that you can now play or record wave files.
PlayWave(ByVal WaveFilePath As String) As Boolean The instruction plays the wave file over the connection. Please make sure the wave file is CCITT u-Law. (Its recommended.) We give a free  8000 KHz, 8 Bit Mono PCM to CCITT u-Law converting DLL with this package.
RecordWave(ByVal TimeofRecord As Long, ByVal Filewithpath As String) As Boolean The instruction records the wave file over the connection. The recording lasts for the time specified in seconds by TimeofRecord. The recorded wave file is saved to the location and file name specified by Filewithpath. The file is saved in default 8000 Hz, 8 Bit Mono PCM.
SendDigit(ByVal Digit As String) As Boolean The function sends a digit play across the line. Try as a start playing a beep. The Digit code is "#".
StartTAPI(Byval PhoneID As Long) As Boolean This function MUST be executed before you execute any other function in Dialgo ActiveX. This initializes TAPI and allows you to wait for a call or dial a call. 

PhoneID specifies the device number to use.

StopMonitoringDigits() As Boolean The instruction stops monitoring digits.
StopPlay() As Boolean The instruction stops playing the wave file over the connection. But TAPI is sensitive, its advised you wait until the playback is over.
StopRecord() As Boolean The instruction stops recording the wave file over the connection. But TAPI is sensitive, its advised you wait until the recording period specified is over.
StopTAPI() As Boolean This stops TAPI initialization and allows you to terminate your communication application.
TAPIMessage() As String This returns a TAPI message, Internal Dialgo ActiveX Error or Status message . The control also uses a combined instruction to reduce TAPI operational complexity.

 

Events* Description
Event Ringing()  The event is fired when the phone is ringing.
Event RecordingDone() The event is fired when recording is done.
Event DigitRecognized(ByVal TotalCode As String, ByVal CurrentCode As String) The event is fired when a digit gets recognized (enabled first using MonitorDigits function. TotalCode returns the total collection of character (number) pressed by the caller and CurrentCode returns the last character (number) pressed by the caller
 
*For all those who use a programming language where you cannot bring in DLL Events,
six new methods have been added along with a reset method.
[ Note that since you don't have a event you will have to use 
a TIMER to keep a check on when the methods turn TRUE as per their function. 
The rest is easy. The methods are ...]
 
Public Function mRinging() As Boolean
End Function
Public Function mRecordingDone() As Boolean
End Function
Public Function mPlayDone() As Boolean
End Function
Public Function mDigitRecogTotalCode() As String
End Function
Public Function mDigitRecogCurrentCode() As String
End Function
Public Function mReset() As Boolean
'resets all above methods to false and Totalcode and currentcode strings to NULL
 End Function