OpenVox Document Center OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 
OpenVox Document Center OpenVox Document Center
OpenVox Document Center
  • Home 
  • Products 
  • Solutions 
  • Resources 
    • Document Center 
    • Datasheets 
    • Firmwares 
    • Videos 
  • Partners 
  • Blog 
  • Company 

Analog Gateway

  • folder icon closed folder iconUser Manual
    • iAG200/400 Series Analog Gateway User Manual
    • iAG800 V2 Series Analog Gateway User Manual
    • iAG801 Series Analog Gateway User Manual
    • MAG Series Analog Gateway User Manual
    • VoxStack Series Analog Gateway
    • VS-GWM801 Series Analog Gateway
  • folder icon closed folder iconApplication Notes
    • OpenVox TR069 Technote
    • iAG200/400 Analog Gateway Quick User Guide
    • iAG800 V2 Analog Gateway Quick User Guide
    • MAG1000 Analog Gateway Quick User Guide
  • folder icon closed folder iconFAQ
    • Analog Gateway FXO connect with 3CX
    • Analog Gateway FXO connect with Freepbx15
    • Analog Gateway FXO connect with asterisk16.15.1
    • Analog Gateway FXO connect with OpenVox UC
    • Analog Gateway FXO connect with Issabel
    • Analog Gateway FXS connect with 3CX
    • Network disconnection escape
    • PEER-PEER GATEWAY SCENARIO
    • SNMP Guide on Analog gateway
    • RJ21 Cable Instruction(MAG1000/MAG1100)
    • Analog Gateway mutiple FXS blinding single SIP account

Analog Gateway

  • folder icon closed folder iconUser Manual
    • iAG200/400 Series Analog Gateway User Manual
    • iAG800 V2 Series Analog Gateway User Manual
    • iAG801 Series Analog Gateway User Manual
    • MAG Series Analog Gateway User Manual
    • VoxStack Series Analog Gateway
    • VS-GWM801 Series Analog Gateway
  • folder icon closed folder iconApplication Notes
    • OpenVox TR069 Technote
    • iAG200/400 Analog Gateway Quick User Guide
    • iAG800 V2 Analog Gateway Quick User Guide
    • MAG1000 Analog Gateway Quick User Guide
  • folder icon closed folder iconFAQ
    • Analog Gateway FXO connect with 3CX
    • Analog Gateway FXO connect with Freepbx15
    • Analog Gateway FXO connect with asterisk16.15.1
    • Analog Gateway FXO connect with OpenVox UC
    • Analog Gateway FXO connect with Issabel
    • Analog Gateway FXS connect with 3CX
    • Network disconnection escape
    • PEER-PEER GATEWAY SCENARIO
    • SNMP Guide on Analog gateway
    • RJ21 Cable Instruction(MAG1000/MAG1100)
    • Analog Gateway mutiple FXS blinding single SIP account

Analog Gateway FXO connect with asterisk16.15.1

Estimated reading: 3 minutes 213 views

This document mainly describes the detailed steps of connecting the analog gateway with Asterisk.

Follow the steps below to configure two-way calls between the phone and the gateway:

Outgoing call: from Asterisk SIP extension 3002 to the gateway through relay 1008;

Incoming call: call from an outside line to the gateway, through SIP trunk 1008 to Asterisk, and then send the call to the 3002 SIP extension through Asterisk;

In the following steps, the parameters below are mandatory configurations, and other parameters can be configured according to your needs.

Step1. Create a SIP Trunk in Asterisk Server

Please add the following lines in /etc/asterisk/sip.conf to create a SIP trunk(1001) and a SIP extension(3002):

[1001]
username=1001
secret=1001
host=dynamic
port=5060
type=friend
context = from-gsm

[3002]
username=3002
secret=3002
host=dynamic
port=5060
type=friend
context = from-internal

After editing, save and exit and restart SIP service in Asterisk Server

Step 2. Edit Dial Rules In Asterisk

Edit dial rules in /etc/asterisk/extensions.conf.

[from-internal]
exten => _x.,1,Dial(sip/1001/${EXTEN})
exten => _x.,n,hangup()

[from-gsm]
exten =>_x.,1,Dial(sip/3001)
exten =>_x.,n,Hangup()

Step 3. Set Network Parameters in Web

Log in to the network in the browser, and click “Network -> LAN Settings” to set your network parameters. The figure below is an example for reference only.

Step 4. Create a SIP Endpoint in Web

Please select “VOIP—>VOIP Settings—>Add New SIP Endpoint” to set SIP trunk. The following figure shows detail information about how to set it.

IMG_258

About other parameters in SIP, please set by your requirements for there is no need to set them in simple calls.

Step 5. Set Routing Rules in Web

Click “ROUTING—> Call Routing Rules—> New Call Routing Rule” to set outbound and inbound routing rules like the following:

Inbound routings:

IMG_259

outbound routing rules:

IMG_260

Please save all your changes to make effect.

Step 6. Register a SIP extension by software

Taking advantage of SIP software such as Xlite, eyeBeam to register a SIP extension(3001). After all above steps, you can try to make calls and send SMS.

Test call:
Incoming call test: Dial the number of port 1 on the gateway via your mobile to see if 3002 will ring. If 3002 rings, it means your configuration is successful; unless, it means there is something wrong with your configuration, please check it.
Outgoing call test: Dial your mobile number on 3002 extension registered in a software phone. If your mobile rings, it means your configuration is ok; unless, please check your configuration.

 

Still stuck? How can we help?

Was this page helpful? Yes No

How can we help?

A premium WordPress theme with integrated Knowledge Base,
providing 24/7 community based support.

Leave a Comment Cancel reply

CONTENTS

Copyright © 2002-2022 OpenVox all rights reserved.