CTI32 Engine Class Library

Engine.ApplyDialingMask Method 

Dialing masks are defined in the CTI32Engine.config file. Each port can be assigned a Dialing mask. A dialing mask assists you in adding a 1 for long distance, morphing local numbers, handling special inter-lata dependencies etc. So here is how the dialing mask works: 1) The dialing mask is located and the number of rules for that mask is determined. 2) The logic rolls through each rule starting from the first rule 3) The source and destination is loaded. 4) If the source is empty, that means match that rule no matter what. If the phone number starts with the digits in the source, then the digits in the destination are replaced with those digits.

[Visual Basic]
Public Function ApplyDialingMask( _
   ByVal chdev As Integer, _
   ByVal number As String _
) As String
[C#]
public string ApplyDialingMask(
   int chdev,
   string number
);

Parameters

chdev
Port you are dialing out on.
number
Raw Phone number to dial.

Return Value

The morphed phone number the port should dial

See Also

Engine Class | CTI32Engine Namespace