Allo analog Gateway 2 FXS/FXO and Elastix Server Setup Guide http://www.elastix.org
1. Setup Diagram Figure 1-1 is a setup diagram for a single gateway 2 FXS/FXO configuration. The gateway is setup as a SIP device. Gateway 2 FXS/FXO 2. Host PC Environment Figure 1-1. Setup Diagram Table 2-1. Host Server Environment Details Description Hardware Type Elastix Appliance ELX-Series Hardware Version ELX-5000 Software Type Elastix Software Version 2.4 3. Test Setup Equipment Table 3.1. Test Setup Equipment Equipment Model Version IP (SIP) Phone N/A N/A Analog Phone N/A N/A Allo Gateway 2 FXS/FXO CPX-003.R10042014 Switch N/A N/A 2
4. Setup Procedure To set up the Elastix Server for the Allo Gateway 2 FXS/FXO 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.5.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 is admin and the password is determined by the customer. Figure 4-1. Login 3. Press Enter or click on the Submit button to go to Elastix s Dashboard 4. Once inside, click on the PBX tab on the menu at the top of the screen. Figure 4-2. Dashboard 3
5. Click on the Submit button to add an extension so we can test the gateway using it when we finish the entire configuration, see Figure 4-3. This will take you to the Add SIP Extension page. Figure 4-3. Add an Extension 6. On the Add SIP Extension page (Figure 4-4), fill in the following information: User Extension (302 in this example) Display Name ( IPPhone in this example) secret ( h7dka3rf9si0t in this example) Figure 4-4. Add SIP Extension 7. Click on the Submit button at the end of the page and you will see a similar page on Figure 4-5 displaying the Apply Configuration Changes Here pink ribbon on top of the screen. Click on there to apply changes. 4
Figure 4-5. Apply Configuration 8. Configure an IP Phone with the same settings to register it with Elastix Server. 9. Now we will configure an Outbound Route for outgoing calls depending on a prefix. For this we have to configure a SIP Trunk first. Go to PBX => PBX Configuration => Trunks. Click on Add SIP Trunk, then Submit (Figure 4-6). Set the following: General Settings Trunk Name: (AlloGw in this example) Outgoing Settings Trunk Name: (80004 in this example) Peer Details: host=dynamic username=( 80004 in this example) secret=( jx8fkou13sv6 in this example) type=peer insecure=very qualify=yes Figure 4-6. Add SIP Trunk 10. Click on the Submit button at the end of the page and the SIP Trunk will be created. 5
11. Now, go to PBX => PBX Configuration => Outbound Routes to configure the outbound route using this trunk. Fill in the following information: (Figure 4-7) Route Settings Route Name: ( 9_outside in this example) Dial patterns Prefix: ( 9 in this example) Match pattern: (. in this example) Trunk Sequence for Matched Routes 0: ( AlloGw in this example) Figure 4-7. Add Route 12. Click on the Submit button at the end of the page and Apply changes. 13. Now, we ll create an incoming route for the calls from PSTN that pass through the gateway. We re going to use an IVR for incoming calls. Go to PBX => PBX Configuration => IVR. Click on the link Add IVR (Figure 4.8). Set the following: Name: Name of IVR (WelcomeIVR in this example) Announcement: Record which will be played for incoming calls. Options: o * - Phone book. o 0-302 Extension o t - Repeat the options of IVR (Add this option by modifying the IVR after creation) 6
Figure 4-8. IVR 14. 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. (Figure 4.9). Set the following: Description: Name of inbound route ( Incoming_Calls in this example) DID Number: Set destination: Where the call will be routed. ( WelcomeIVR IVR in this example) Figure 4-9. Incoming Route 15. Click on Submit button and apply changes. Now when we receive calls from PSTN, the IVR will be played to the caller giving him choices to interact with our Elastix Server. 16. To configure the Allo Gateway 2 FXS/FXO you will need to enter the information from the sip trunk created on the Elastix Server into the gateway. For the initial configuration, refer to the Allo Gateway 2 FXS/FXO User Manual found at: http://www.allo.com/analog-gateway.html Table 4.1. Factory default settings IP Addressing Web Access Admin Web Access Password DHCP admin admin 7
17. Log in to the Allo Gateway 2 FXS/FXO WebUI by pointing your browser to the IP address of the gateway. 18. When prompted, enter the Web Access Password to access to the WebUI (Figure 4-10). Figure 4-10. Allo Gateway WebUI 19. The System Status is the first information (Figure 4-11) Figure 4-11. System Status 20. Use the information from the Add SIP Trunk (Figure 4-6) to enter the following necessary information on Setup => Trunks(Analog & SIP) => VoIP Tunks => New SIP Trunk (Figure 4-12) 8
Figure 4-12. New Sip Trunk 21. Click on Save button and then Apply Changes at the top right (Figure 4-13) Figure 4-13. Apply Changes 22. To Configure the incoming calls (FXO) from PSTN we go to Setup => Trunks(Analog & SIP) => Analog Trunks => New Analog Trunk (Figure 4-14) Figure 4-14. Add Analog Trunk 23. Click on Add button and then Apply Changes at the top right (Figure 4-13) 24. Now Configure the Outgoing Calling Rules in Setup => Outgoing Calling Rules => New Calling Rule (Figure 4-15) 9
Figure 4-15. Add Calling Rule 25. Click on Save button and then Apply Changes at the top right (Figure 4-13) Note: _9X. All calls must be go out with prefix 9 except when I call to the other Analog Phone 26. For calls from analog phone reach any extension we must create a dial plan in Setup => Dial Plans => New DialPlan, so they can call from FXS1 to FXS2 and also to SIP extensions created in Elastix server (Figure 4-16) Figure 4-16. Add Dial Plan 10
27. Click on Save button and then Apply Changes at the top right (Figure 4-13) 28. To use an analog phone we need to create an analog extension in Setup => Extensions => Create New User (Figure 4-17) Figure 4-17. Create New User Note: Use the DialPlan2 (Figure 4-16) 29. Click on Update button and then Apply Changes at the top right (Figure 4-13) 30. To call from Sip extensions (Elastix) to Analog extension (Allo Gateway) we need to create incoming calling rules in Setup => Incoming Calling Rules => New Incoming Rule (Figure 4-18). Figure 4-18. Create Incoming Rule 11
31. For incoming calls from the PSTN that are answered by the IVR in Elastix we must create the rule is this section too (Figure 4-19) Figure 4-19. Create Incoming Rule for FXO port Note: Any call from PSTN is routed to the Elastix Trunk 32. Click on Update button and then Apply Changes at the top right (Figure 4-13) 33. To test the outbound calls, pick up the previously configured IP (SIP) Phone and call to an external number using the prefix 9 (i.e. 9-2235695). The call will use the registered port of the gateway to connect to the call and you should be able to hear the ring tone. To test the inbound calls, from the PSTN call to your public number which should be connected to a registered port in Allo gateway, and after some rings you should be able to reach the IVR configured in Elastix. This step completes the procedure of configuration. 12