Polygator GSM card 8 channels and Elastix Server Setup Guide http://www.elastix.org
1. Setup Diagram Figure 1-1 is a setup diagram for a single Polygator GSM Interface Card configuration. Figure 1-1. Setup Diagram 2. Host PC Environment Table 2-1. Host Server Environment Details Hardware Type Hardware Version Software Type Software Version Description Elastix Appliance ELX-Series ELX-3000 Elastix 2.4 3. Test Setup Equipment Table 3-1. Test Setup Equipment Equipment IP (SIP) Phone Polygator Switch Model N/A GSM 8 modules N/A Version N/A chan-polygator-1.5.6-0 N/A 2
4. Setup Procedure PaloSantoo Solutions To install the Polygator GSM driver, 1. Log in as root using a SSH client or directly from Elastix server. (Figure 4-1) Figure 4-1. Logging in the Elastix Server 2. Install the Polygator GSM driver (See figure 4-2). Enter the command yum install polygator-linux kmod-polygator chan-polygator 4-2. Output of yum command 3. Reboot the system: shutdown r now 4. When the system boots up go to Asterisk CLI by entering asterisk r in the command line and type polygator show channels to verify the SIM card is correctly registered. (See figure 4-3) Figure 4-3. Channels status 3
PaloSanto Solutions To set up the Elastix Server for the Polygator GSM 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.66 2. On the Login page, type the username and password for an administrative user into the Username and Password fields, see Figure 4-4. The username and password are determined by the customer. Figure 4-4. Login 3. Press Enter or click on the Submit button to go to Elastix s Dashboard. See figure 4-5 Figure 4-5. Dashboard 4. Once inside, click on the PBX tab on the menu at the top of the screen and go to PBX Configuration (Figure 4-6) 4
Figure 4-6. PBX 5. Click on Extensions and select Generic SIP Device to create an extension for the IPPhone. In the Add SIP Extension page fill in the following information (Figure 4-7): Add Extension User Extension: (302 in this example) Display name: ( IPPhone in this example) Device Options Secret: ( h7dka3rf9si0t in this example) Figure 4-7. Add SIP Extension 6. Click on Submit button located at the end of the page and apply changes. Now, click on Trunks on the left side and select Add Custom Trunk (Figure 4-8). 5
Figure 4-8. Trunks 7. On the Add Custom Trunk page, set the following parameters (Figure 4-9). General Settings Trunk Name: ( Polygator_Trunk in this example) Outgoing Settings Custom Dial String: PGGSM/CH[gsm-00]/$OUTNUM$ $ where gsm-00 is the Alias of the GSM module we ll use for outbound calls. In this case we have the SIM card located in the first module. To check the Alias please refer to Figure 4.3 Figure 4-9. Custom Trunk 8. Click on Submit Changes button located at the end of the page. Go to PBX => PBX Configuration => Outbound Routes. Click on Add Route (Figure 4-10). Set the following parameters: Route Settings Route Name: ( 9_Outside in this example) 6
Dial patterns Prefix: ( 9 in this example) Match pattern: (. in this example) Trunk Sequence for Matched Routes 0: The trunk that we just created ( Polygator_Trunk in this example) Figure 4-10. Outbound Route 9. Now you can make outbound calls through the SIMCARD calling a telephone number with 9 as prefix. 10.We ll create an incoming route for the calls from any external number to our SIMCARD. We re going to use an IVR for incoming calls. Go to PBX => PBX Configuration => IVR. Click on Add IVR (Figure 4.11). 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) 7
Figure 4-11. IVR 11.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.12). Set the following: Description: Name of inbound route ( Incoming_Calls in this example) Set destination: Where the call will be routed. ( WelcomeIVR IVR in this example) Figure 4-12. Incoming Route 12.Click on Submit button and apply changes. Now when we receive calls to the SIMCARD the WelcomeIVR IVR will be played to the caller giving him choices to interact with Elastix Server. 13.Configure the IP (SIP) Phone with the correct parameters. 14.To test the configurations, pick up the previously configured IP (SIP) Phone and dial a mobile phone with 9 as prefix (in this case 90989532586). When the call is established, speak into the phone and verify that the mobile phone can hear your voice. Next, from your mobile phone call to the SIMCARD number (in this case 0995689029) and when the call is established you should be interacting with the IVR. 8
SMS Functions Sending SMS On Asterisk CLI, enter the following command to send a SMS to a mobile phone: polygator channel gsm gsm-00 sms new 0989532586 "Message here" Here we tell Asterisk to send a SMS from module gsm-00 to message should be received by the destination. 0989532586. The Receiving SMS Send a SMS from any mobile phone to the number of our SIM card located on the Polygator Card. You should see an informative message on Asterisk CLI telling you that a SMS was received. To all the SMS in the module gsm-00, enter the following command: polygator channel gsm gsm-00 sms inbox Figure 4-13. Receiving SMS a To see a specific SMS: polygator channel gsm gsm-00 sms inbox 2 Figure 4-14. Receiving SMS b 9