The trunk configuration settings for common VoIP providers are as follows. Simply replace the required information tokens in the following configurations with their appropriate values to configure a fully working trunk.
Required information tokens that may be used are listed as follows:
Token |
Replace with |
---|---|
(Name) |
The name of the owner of the trunk. This might be a company’s name or a person’s name. Letters, numbers, and spaces are allowed. No other special characters may be used. |
(TelNumber) |
The telephone number associated with the trunk that is being configured. For PSTN trunks, this will be a number in the format of the local calling area (for example, nine digits for North America). Trunks to other VoIP providers may have different formats. For example, the Free World Dialup (FWD) network uses six-digit telephone numbers. |
(Username) |
The username or user ID assigned by the VoIP provider. This is usually a numeric user ID. |
(Password) |
The password or "secret" assigned by the VoIP provider. |
(MaxChannels) |
The maximum number of active channels that the provider can support. Some providers have a set limit (in which case that limit will be listed). Some providers allow the purchase of additional channels for which a monthly fee is charged (in this case, the (MaxChannels) token is used). |
(FailureScript) |
The script that is used to monitor trunk failures, if one exists. See the Monitoring trunk status with FreePBX failure scripts section of Chapter 4, Trunks for sample monitoring scripts. |
(VoIPHost) |
The SIP or IAX2 server supplied by the provider. This might be referred to as the "registration server" or simply the "host" by the provider. |
Field |
Value |
---|---|
Outbound Caller ID |
(TelNumber) |
Never Override CallerID |
unchecked |
Maximum Channels |
(MaxChannels) |
Disable Trunk |
unchecked |
Monitor Trunk Failures |
(FailureScript) |
Dial Rules |
1+NXXNXXXXXX |
Dial Rules Wizards |
not applicable |
Outbound Dial Prefix | |
Trunk Name |
freepbx |
PEER Details |
type=peer insecure=very host=(VoIPHost) quality=yes sendrpid=yes username=(Username) secret=(Password) context=from-pstn |
USER Context |
freepbx-in |
USER Details |
type=user context=from-pstn host=(VoIPHost) |
Register String |
(Username):(Password)@(VoIPHost) |