Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
77 views6 pages

IP PBX Configuration

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

IP PBX Configuration - FreePBX

FreePBX is a web based user interface designed to simplify management of


Asterisk PBX. SIP Trunk configuration instructions below apply to the following
FreePBX versions:

FreePBX v. 12 - Asterisk 11

FreePBX v. 12 - Asterisk 13 (chan_sip)

FreePBX v. 13 - Asterisk 11

FreePBX v. 13 - Asterisk 13 (chan_sip)

Documentation is provided for scenario where FreePBX server uses Static IP


address on the public Internet and when Dynamic IP address is used.

Static IP address

1. Static IP address (a.b.c.d in our example above) of your FreePBX


server will be added to GoTrunk service IP ACL (Access Control
List) and outbound calls coming from that IP address will be
accepted without requiring any further authentication (SIP
username and password). This is the most efficient way of
authenticating SIP calls.

2. Inbound calls to one of Telephone Numbers on your GoTrunk


account will be sent directly to FreePBX public IP address. Since
the calls will be coming from known peer (IP address of SIP
Trunking service q.x.y.z in our example above) FreePBX will accept
them without requiring any further authentication.
To configure FreePBX server to work with GoTrunk SIP trunk using IP
authentication the following changes are required:
Figure 9.2 FreePBX add SIP Trunk - static IP address.

Follow steps below to add SIP Trunk:

1. Click Connectivity menu.
2. Select Trunks.
3. Click Add Trunk button.
4. Select `Add SIP (chan_sip) Trunk
5. Enter name of the trunk as gotrunk
6. Switch to sip Settings tab.
7. Switch to Outgoing panel.
8. Enter gotrunk as Trunk Name.
9. Enter the following into PEER Details field
(replace eu.st.ssl7.net with amn.st.ssl7.net if you want
to use North America POP):

Routing configuration
Outbound route
Figure 9.5 FreePBX add Outbound route.

Follow steps below to add Outbound route:

1. Click Connectivity.
2. Select Outbound Routes.
3. Click Add Outbound Route button.
4. Enter gotrunk as Route Name
5. Select gotrunk in Trunk Sequence for Matched
Routes drop down list.
6. Switch to Dial Patterns tab.
7. Enter ZXXXXXX. to send numbers longer than 7 digits to
GoTrunk service.
8. Click Submit button.

INBOUND ROUTES

Figure 9.6 FreePBX add Inbound routes.

For each of the Telephone Numbers on your GoTrunk account


follow steps below to add Inbound route:

1. Click Connectivity.
2. Select Inbound Routes.
3. Click Add Inbound Route button.
4. Enter Telephone Number into Description field.
5. Enter Telephone Number into DID Number field.
6. Set desired destination from the drop down list.
7. Click Submit button.

Note: make sure to click Apply Config button in top right corner of


the page to reload your FreePBX configuration.

Configuration note
Some FreePBX distributions has default SIP listening port as 5160
instead of the standard SIP port.

To make incoming calls work we need to modify SIP port under


FreePBX to 5060. This can be done from Settings > Asterisk SIP
settings, under Chan SIP Settings, you will need to set Bind
port to 5060.

If you deployed IP Authentication you have one other option.


You can also set remote SIP port to 5160 under GoTrunk. This can
be done by editing Endpoint SIP under GoTrunk settings and set
port to 5160
https://www.10000horas.com/test-para-ver-el-nivel-en-asterisk-y-digium-
certified-asterisk-administrator/

http://telefonia.blog.tartanga.eus/2017/05/09/configuracion-practica-de-
asterisk-8a-parte-sip-trunk-entre-sistemas-asterisk/
https://upcommons.upc.edu/bitstream/handle/2099.1/6798/Mem
%C3%B2ria.pdf?sequence=2&isAllowed=y

You might also like