Method: SetDigitDuration
|
Function: |
Set the duration of the digit generation for a voice modem line. |
|
|
Parameters: |
Duration(Long): The duration of the digit generation in milli-second.
The AT COMMAND string used to set the hook-flash duration.Most
modems recognize "at+vtd=X" as the command. X is the 1/10 of
the duration in milli-second. For example, "at+vtd=20" will
set the duration 200 ms. If this parameter is passed with an empty string,
it will use the default command string "at+vtd=X" as the command
string, X will be replace with a value of the 1/10 of the first parameter
Duration. Otherwise it will use AtCmd as the command.
|
|
|
Description: |
SetDigitDuration only affect voice modems. If you are using a voice board, you should set the digit duration in the TSP configuration dialog instead. This method should be called before Initialize called. When the Initialize is called, it will add the AT COMMAND string to the corresponding area of every modem in registry, and it will take effect. |
|
| Dependencies: |
None |
|
| Events Raised: |
None |
|
| Relevances: |
Sample Code In Visual Basic:
'The following example show how to use SetHookFlashDuratioin and SetDigitDuration.
Sub Form_Load()
VoiceAngel1.SetHookFlashDuration 200,"" ' You can also use VoiceAngel1.SetHookFlashDuration 20,"ats29=20"
VoiceAngel1.SetDigitDuration 400,"" 'You can also use VoiceAngel1.SetDigitDuration 400,"at+vtd=40"
VoiceAngel1.Initialize ""
End Sub