Switchvox - How do I add a delay before sending dialed digits to the telco over an analog line using FreePBX?
A majority of calls that attempt to connect to a PSTN number fail with the telephone company returning the error: "This call cannot be completed as dialed." The trunks and outbound routes are configured correctly, since some of the calls do connect.
Solution:
Asterisk may be sending the digits over the line before the telco is ready to receive them. A delay is needed before sending the digits. The following steps will create a custom trunk in FreePBX that includes a delay:
From the FreePBX main page, navigate to Connectivity > Trunks
Click on Add Custom Trunk
For the sections General Settings and Dialed Number Manipulation Rules, use the same settings as in the trunk that you are currently using to send analog calls.
In the Outgoing Settings section, for Custom Dial String use the following:
DAHDI/g0/www$OUTNUM$
If the group number for your DAHDI channels is not 0, then make sure the proper group indicator (such as g5 for Group 5) is used in the Custom Dial String.