Trunks:
This sections will allow you to configure the trunks or outbound phone lines for your system. Analog Trunks or FXO ports are grouped together to simplify configuration, the default trunk group for FXO ports is "ZAP/G0". Analog trunks come pre-configured from Freevoice Telecom. To regenerate the FXO port configuration on the server login to the Linux CLI, for Digium cards use the command genzaptelconf, for Sangoma cards use the command setup-sangoma. VoIP trunks are configured according to the providers instructions. After these trunks have been built they must be set to be used by an outbound route.
1. Login to FreePBX as described here.
2. Click the Setup tab at the top of the page.
3. On the left side of the page click the Trunks link under Basic.
4. Click the Add Trunk button on the right side of the page.
5. Click the link for the type of Trunk to configure. ZAP trunks are FXO ports, IAX2 and SIP Trunks are VoIP trunks ask your VoIP provider what protocol they use.
6. Configure the Trunk using the guidelines below.
General Settings
Outbound Caller ID - Send this caller ID number when calls are placed using this trunk. Only valid with certain PRI and VoIP providers.
Never Override Caller ID - Check this to keep the specified outbound caller id number, no matter what.
Maximum Channels - Set the maximum number of inbound and outbound calls for this trunk. If this Trunk contains four FXO ports set this to 4, for a PRI this should be set to 23. VoIP providers have different limits, contact your provider for their limit. We recommend VoIPStreet, they have a limit of 20 simultaneous call per account.
Outgoing Dial Rules
Dial Rules: These rules control how calls will be dialed on this trunk. These rules can be used to add or remove prefixes. Numbers dialed on this trunk that do not match any of these rules will be dialed as is. Use a '+' to add a prefix and a '|' to remove a prefix. For example for the rule '714|NXXXXXX', if '7143886015' was dialed on this trunk the '714' would be removed and only '3886015' would be dialed on the trunk. For the rule '1714+NXXXXXX', if '3886015' was dialed the prefix of '1714' would be added and the number would be dialed as '17143886015'.
Outbound Dial Prefix: Enter a prefix that will be added to numbers dialed out this trunk. This is useful if you have centrex analog lines that require a prefix of 9. To add a pause enter a 'w' for each second you would like to pause.
Outgoing Settings
Trunk Name: This will be the peer name for the trunk, in most cases it is the name of the service provider. Contact your service provider or Freevoice for more information.
Peer Details: This field will contain the required peer settings for your VoIP service provider. Contact your service provider or Freevoice for more information.
Zap Identifier: This field is for the FXO trunk group number. The default group number is 'g0'. This will set the group to dial out in descending order changing it to 'G0', will set the group to dial out in descending order.
Incoming Settings
User Context: This will be the user name or number for the trunk. Contact your service provider or Freevoice for more information.
User Details: This field will contain the user connection parameters for the trunk. Contact your service provider or Freevoice for more information.
Registration
Register String: This field is for the registration string provided by your VoIP provider. Contact your service provider or Freevoice for more information.
7. Click the Submit button when done.
8. To apply the changes click the red "Apply Changes" Bar in the upper right corner of the page. You may add more inbound routes before clicking "Apply Changes", just be sure to click the "Apply Changes" bar before exiting. |