Epygi Quadro 6L FXO Gateway with new distro Setup Guide

Broke my last thread so i hope this works better

Login to Quadro FXO Gateway
• Username : admin
• Password : 19

This document assumes you have configured the WAN port to a static IP and that Time and Date settings have been configured.

This document is solely to provide information to allow a Quadro 6FXO FXO Gateway to be able to provide PSTN access to FreePBX Distro.

First thing to do is set up the authenticated users.
Next we setup the inbound call routing.
After this we will set up the outbound call routing.
Then we will go into the FreePBX interface and setup our trunks and routing.

User / Trunk Authentication setup

Users -> Extensions Management

• Remove all except 00 Attendant
• Click Add
o Extension Number (Username later on) Example: 100
o Set Username (numeric value) Example: 100
o Set and confirm password (numeric value) Example: 2012
o Enter SIP server IP (FreePBX.Server.IP.Address) Example: 192.168.0.1
o SIP Port 5060 and leave Registration unticked.
• SIP Advanced Settings
o Authentication Username (same as username above)
o Tick “Send Keep-alive”
o Outbound Proxy Host Address (FreePBX.Server.IP.Address)
• Voice Mailbox Settings
o Disable Voice Mail
• Save
• Repeat for Each Line

Inbound Routing of calls

Telephony -> Call Routing -> Call Routing Table

• Click Add
o Destination Number Pattern: *
o Number of Discarded Symbols: 1
o Prefix: Example: 55512345
o Destination Type: IP-PSTN
o Metric: 10
o Description:
• Click Next
o User Extension Settings: Example: 100
o Tick “Keep Original Caller ID” and “Add Remote Party ID”
o Destination Host: (FreePBX.Server.IP.Address)
o Destination Port: 5060
o Username: Extension Username Example: 100
o Password: Extension Password Example: 2012
o Tick “Use RTP Proxy”
o Failover Reasons: None
o Transport Protocol for SIP messages: UDP
• Click Next
o Source number Pattern: *
o Source Type: FXO
• Click Next
o Source Port ID: Choose from drop down Example: FXO 1
• Click Next
• Click Finish
• Repeat for Each Additional Line (choosing correct line number and associated users)

Telephony -> FXO Settings

• Click FXO 1
o Enable FXO
o Allowed Call Type: Both incoming and outgoing
o Route incoming FXO call to: Routing: * <Routing with a value of *>
o PSTN Number: Example: 55512345
o Save
• Repeat for each additional line in use.

Outbound Routing of Calls
(All calls can use any available line)

Telephony -> Call Routing -> Call Routing Table

• Click Add
o Enable Record
o Destination Number Pattern: *
o Destination Type: FXO
o Metric: 10
o Description: FXO
• Click Next
o Port ID: Select ports for normal dial out Example: FXO1, FXO2, FXO3, etc
o Failover Reasons: None
• Click Next
o Source Number Pattern: * (any trunk / caller id from PBX dialling out)
o Source Type: SIP
• Click Next
o Source Host: (FreePBX.Server.IP.Address)
• Click Next
• Check all and click Finish

(One Extension in FreePBX has own dedicated line: Example would be a shared office)

In this situation, Office A can use lines 1, 2, and 3 but line 4 is for Office B.
Setup would be the same for above but Port ID in step 2 would ONLY be FXO1, FXO2 & FXO3
For FXO4 we make a new rule as below.

Telephony -> Call Routing -> Call Routing Table

• Click Add
o Destination Number Pattern: *
o Destination Type: FXO
o Metric: 10
o Description: FXO4
• Click Next
o Port ID: FXO 4
o Failover Reasons: None
• Click Next
o Source Pattern Number:
o Source Type: SIP
• Click Next
o Source Host: (FreePBX.Server.IP.Address)
• Click Next
• Check all and click Finish
• Back in call routing
o Move up the route just created above the wildcard source route.
Setup Trunks and Routes in FreePBX

Login to FreePBX Admin GUI

Trunks

Connectivity -> Trunks

• Add trunk
o Trunk Name: FXO1
o Outbound CallerID:
o Outgoing Settings:
 Trunk Name:
 PEER Details:
• host=<FreePBX.Server.IP.Address>
• qualify=yes
• type=peer
o Incoming Settings:
 USER Context: <Username in Quadro for Line1 : Example: 100>
 USER Details:
• context=from-trunk
• host=<FreePBX.Server.IP.Address>
• qualify=yes
• secret=<password for Quadro line1 user: Example: 2012>
• type=friend
• username=<Username in Quadro : Example: 100>
• Add Trunk
o Same as above for line2 / FXO2 through to last line.

Basically we have made 1 trunk per line.

Routes

Inbound Routes

Connectivity -> Inbound Routes

• Create inbound routes as per normal – you can do based on CallerID as well as this is passed through from the Quadro

Outbound Routes

In this example we will say that Office A has access to lines 1-3, Office B has access ONLY to line 4 from extension 1010, and lines 5 & 6 are unused.

Connectivity -> Outbound Routes

• Add Route
o Route Name: Office A
o Dial Patterns: Whatever you set normally
o Trunk Sequence for Matched Routes
 0 – FXO3
 1 – FXO2
 2 – FXO1
• Add Route
o Route Name: Office B
o Dial Patterns: match pattern = . and CallerID = 1010
o Trunk Sequence for Matched Routes:
 FXO4

That’s it

Hi
I have got Ipygi quatro 2x2 and would like to use it to get incoming calls through PSTN go to Freepbx. I have followed your post, and have few questions, how does Epygi forward my pstn line to freepbx?
under trunk user details, what information do you set?