Sangoma-A200remora Interfacecard Setupguide
Sangoma-A200remora Interfacecard Setupguide
Sangoma-A200remora Interfacecard Setupguide
http://www.elastix.org
PaloSanto Solutions
Sangoma A200 Server Setup Guide
2
PaloSanto Solutions
Sangoma A200 Server Setup Guide
To set up the Elastix Server for the Sangoma A200 Interface Card,
1. Go to the web address of the Elastix Server Login page. The web address is
determined by the customer, for this guide we have used the IP address 192.168.1.186
2. On the Login page, type the username and password for an administrative user into
the Username and Password fields, see Figure 4-1. The username and password are
determined by the customer.
5. Now, click on “Hardware Detector” tab see Figure 4-3. This will take you to set some
parameters for detecting new hardware in Elastix, see Figure 4-3.
3
PaloSanto Solutions
Sangoma A200 Server Setup Guide
6. Click on “Advance” checkbox and select “Replace file chan_dahdi.conf” and “Detect
Sangoma hardware” options. Now click on “Detect New Hardware” (Figure 4-4).
7. If the interface card is successfully detected you should see FXO and FXS ports
shown at the bottom of the page. It should say “Detected by Asterisk”. The green
squares represent voltage presence in the port. Thus, FXS ports are shown in this color.
(Figure 4-5).
4
PaloSanto Solutions
Sangoma A200 Server Setup Guide
8. You can configure ports for echo cancellation. Click on “Configuration of Span” link
located on the left side of the detected ports (Figure 4-6).
9. In Elastix the echo cancellation by default is OSLEC. You can change this value
according to your needs.
10. Once the card is detected and configured, we’ll create a DAHDI and SIP Extension
to make calls from analog phone to IP Phone and vice versa. For this go to “PBX” tab
and select “Extensions” option located on the left. Choose “Generic DAHDI Device”
and click on “Submit” button (Figure 4-7).
11. In the Add DAHDI Extension page, set the following parameters (Figure 4-8):
Add Extension
5
PaloSanto Solutions
Sangoma A200 Server Setup Guide
Device options
Channel: Channel number were the analog phone is connected. Refer to figure
4-5. (“3” in this example).
Figure 4-8
12. Click on “Submit” button located at the end of the page. The extension will be
created and you will see the page on Figure 4-9 displaying the “Apply Configuration
Changes Here” pink ribbon on top of the screen.
Figure 4-9
13. Click on “Apply configuration Changes Here”. Now select “Generic SIP Device” to
create a new extension and click on “Submit”. In the Add SIP Extension page fill in the
following information (Figure 4-10):
6
PaloSanto Solutions
Sangoma A200 Server Setup Guide
Add Extension
Device Options
7
PaloSanto Solutions
Sangoma A200 Server Setup Guide
15. We’ll create an IVR for receiving calls from PSTN. Go to “PBX => PBX
Configuration => IVR”. Click on “Add IVR” link (Figure 4.10). Set the following:
16. Click on “Save” and Apply changes by clicking on the pink ribbon that appears at
the top of the page. Now go to “PBX => PBX Configuration => Inbound Routes”. Click
on “Add Incoming Route” link (Figure 4.11). Set the following:
8
PaloSanto Solutions
Sangoma A200 Server Setup Guide
17. Click on “Submit” and apply changes. Now when we receive calls from PSTN the
“WelcomeIVR” IVR will play to the caller giving him choices to interact with Elastix
Server.
18. We will also configure an Outbound Route for outgoing calls to PSTN depending on
a prefix. For this we have to configure a DAHDI Trunk first. Go to “PBX => PBX
Configuration => Trunks”. Click on “Add DAHDI Trunk”, then “Submit” (Figure 4-
12). Set the following:
Trunk Name: A name for the DAHDI trunk (“TestTrunk” in this example)
DAHDI Identifier: Specify the span to be used for the trunk. (“g0” is the
default value. It means any port. For more details about the choices you have,
refer to Appendix in this guide).
9
PaloSanto Solutions
Sangoma A200 Server Setup Guide
19. Click on “Submit Changes” and apply changes. Go to “PBX => PBX Configuration
=> Outbound Routes”. Click on “Add Route” (Figure 4-13). Set the following:
Route Settings
Route Name: (“9_Outside_Test” in this example)
Dial patterns
Prefix: (“9” in this example) | Match pattern: (“.” in this example)
Trunk Sequence for Matched Routes
0: The trunk that we just created (“TestTrunk” in this example)
10
PaloSanto Solutions
Sangoma A200 Server Setup Guide
20. Now you can make calls to the PSTN through your FXO ports calling a telephone
number with “9” as prefix.
21. Configure the other IP (SIP) Phone with the correct parameters.
22. To test the configurations, pick up the previously configured IP (SIP) Phone and call
the Analog Phone connected in the FXS port of the Sangoma A200 Interface Card.
When the call is established, speak into the phone and verify that the Analog phone can
hear your voice. Check this by calling from both ends.
11
PaloSanto Solutions
Sangoma A200 Server Setup Guide
APPENDIX
DAHDI Identifier
When you create a DAHDI Trunk you need to specify the span that will be used for the
trunk. The default value is “g0” (Any port). This value means that DAHDI will choose
the available span in the order that shows the hardware detector section of Elastix Web
Interface. If you want to use a particular span for your convenience, just follow these
steps:
1. In the Elastix Server WebUI go to “PBX => Tools”. Select “Asterisk File Editor”
option located on the left side. Click on “Show Filter” (Figure A-1).
2. In the filter field write “dahdi-channels.conf” without quotes and press ENTER
(Figure A-2).
3. Click on “dahdi_channels.conf” file. Check the “group” parameter, the first one
(Figure A-3).
If you want the DAHDI Trunk to use specifically Span 1, you have to set “g11”
instead of “g0” in this example. It would be the same for Span 2 with “g12”.
12
PaloSanto Solutions
Sangoma A200 Server Setup Guide
4. Close Asterisk File Editor. You can also use channel number instead of groups. See
figure 4-5 to identify the channel number (“1” to “4” in this example).
13