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.
If you received a handle from one of the GetOutboundHandle methods and then subsequently do NOT call StartOutboundCall() then you must issue a cancel to free up the port to be selected for a future call
Overloaded. Select a port available to make an outbound call and return the handle to that port. The algorithm is to first search ports that are designated for outbound only. The algorithm specifies how it searches. If no outbound only ports are available, it will find ports designated as INOUT. The port is locked from other calls until you complete a call or call CancelOutboundCall.
Get a handle to a specific port that you want to make the outbound call. If you wish to manage your own ports, you can get the handle you need for StartOutboundCall() by calling this method. The port is locked from other calls until you complete a call or call CancelOutboundCall.
Select a port available to make an outbound call. Kick the thread responsible for that port, and call the specified DLL and method. The algorithm is to first search ports that are designated for outbound only. It starts with the highest port and works down. If no outbound only ports are available, it will find ports designated as INOUT. It starts with the highest port and works down.
Start the CTI32 Engine Service. Pass in the config data. Because starting up can take longer than the service manager will allow, this method spins a thread to do the bulk of the work.
If you already have a handle from one of the GetOutboundHandle methods, then kick the thread and make it go. The thread will then call the specified DLL and method.