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 

EOL-Product

  • folder icon closed folder iconUser Manual
    • iCallDroid User Manual
    • iCallDroid spot User Manual
    • IX120 User Manual
    • IX132 Series IP-PBX User Manual
    • SWG2008_User_Manual
    • SWG-1016C User Manual
    • WGW1002 User Manual
    • VS-GW1202-8G User Manual
    • VS-GW1600 User Manual
    • VS-GW2120 Series User Manual
    • 3G Gateways User Manual
    • A800E on DAHDI User Manual
    • A800P on DAHDI User Manual
    • A1200E on DAHDI User Manual
    • A1200P on DAHDI User Manual
    • D110P /D110E on DAHDI User Manual
    • D115P/DE115P on Elastix User Manual
    • DE115P/DE115E on DAHDI User Manual
    • G400P/G400E/G410P/G410E User Manual
    • iAG804/iAG808 User Manual
    • iAG840/iAG880 User Manual
  • folder icon closed folder iconDatasheet
    • VS-GW1600 GSM Series Datasheet
    • VS-GWM400 Datasheet
    • VS-GWM400W Datasheet
  • folder icon closed folder iconQuick Start Guide
    • Quickstart Guide of VS-GW1600-20G Connect with VOS3000 Operation Platform
    • Quickstart Guide of VS-GW1600-20G Connect with 3CX Server
    • Quickstart Guide of VS-GW1600-20G Connect with Asterisk Server
    • Quickstart Guide of VS-GW1600-20G Connect with Elastix Server
    • Quickstart Guide of VS-GW1600-20G Connect with FreeSWITCH Server
  • folder icon closed folder iconAPP Note
    • GSM Gateways APP Note
      • APP Note_AMI
      • Expand Callback Function
      • How to Bind the GSM Gateway Ports with PBX Sip Extension
      • How to Integrate the Analog Gateway and the GSM Gateway in One OpenVox Box
      • OpenVox GSM Gateway Function User Manual
      • OpenVox GSM Gateway HTTP Interface
      • Openvox HTTP SMS API Demo
      • OpenVox Wireless Gateway Connect with playSMS Manual
      • Remote Server Get CDR from GSM Gateway by AMI
      • VoxStack GSM Gateway API 1.0.0
      • VoxStack GSM Gateway Connect with iCallDrid Manual
      • VoxStack GSM Module Upgrading Guide
  • folder icon closed folder iconFAQ
    • IPC100/110
loading
Popular Searches
  • Array
  • Array
  • Array
  1. Home
  2. Docs
  3. EOL-Product
  4. APP Note
  5. GSM Gateways APP Note
  6. VoxStack GSM Gateway API 1.0.0
Updated on March 17, 2022

EOL-Product

  • folder icon closed folder iconUser Manual
    • iCallDroid User Manual
    • iCallDroid spot User Manual
    • IX120 User Manual
    • IX132 Series IP-PBX User Manual
    • SWG2008_User_Manual
    • SWG-1016C User Manual
    • WGW1002 User Manual
    • VS-GW1202-8G User Manual
    • VS-GW1600 User Manual
    • VS-GW2120 Series User Manual
    • 3G Gateways User Manual
    • A800E on DAHDI User Manual
    • A800P on DAHDI User Manual
    • A1200E on DAHDI User Manual
    • A1200P on DAHDI User Manual
    • D110P /D110E on DAHDI User Manual
    • D115P/DE115P on Elastix User Manual
    • DE115P/DE115E on DAHDI User Manual
    • G400P/G400E/G410P/G410E User Manual
    • iAG804/iAG808 User Manual
    • iAG840/iAG880 User Manual
  • folder icon closed folder iconDatasheet
    • VS-GW1600 GSM Series Datasheet
    • VS-GWM400 Datasheet
    • VS-GWM400W Datasheet
  • folder icon closed folder iconQuick Start Guide
    • Quickstart Guide of VS-GW1600-20G Connect with VOS3000 Operation Platform
    • Quickstart Guide of VS-GW1600-20G Connect with 3CX Server
    • Quickstart Guide of VS-GW1600-20G Connect with Asterisk Server
    • Quickstart Guide of VS-GW1600-20G Connect with Elastix Server
    • Quickstart Guide of VS-GW1600-20G Connect with FreeSWITCH Server
  • folder icon closed folder iconAPP Note
    • GSM Gateways APP Note
      • APP Note_AMI
      • Expand Callback Function
      • How to Bind the GSM Gateway Ports with PBX Sip Extension
      • How to Integrate the Analog Gateway and the GSM Gateway in One OpenVox Box
      • OpenVox GSM Gateway Function User Manual
      • OpenVox GSM Gateway HTTP Interface
      • Openvox HTTP SMS API Demo
      • OpenVox Wireless Gateway Connect with playSMS Manual
      • Remote Server Get CDR from GSM Gateway by AMI
      • VoxStack GSM Gateway API 1.0.0
      • VoxStack GSM Gateway Connect with iCallDrid Manual
      • VoxStack GSM Module Upgrading Guide
  • folder icon closed folder iconFAQ
    • IPC100/110

VoxStack GSM Gateway API 1.0.0

Estimated reading: 3 minutes 1055 views

1. Configuring AMI in VoxStack GSM Gateway.

1.1 How to configure AMI interface?

Login your gateway with your user account and password, and please follow this flow to configure: ADVANCED–>Asterisk API. Please change the default to yours.

image2015 9 17%2017:25:6

Concerning the ‘permit’ option, if you have one more IP addresses, then you should have junction with them by symbol ‘&’. In the demo test, allowing both servers 172.16.99.16 and 172.16.1.207 to have access to this GSM gateway.

1.2 Defining read/write authorization for various event classes.

image2015 9 17%2017:27:49

In this illustration, you will be able to define custom authorization for various event classes. Read authorization permits you to receive asynchronous events, in general. Write authorization permits you to send commands and get back responses.

2. Monitoring and managing your Asterisk over Asterisk Manager Interface (AMI).

2.1 Using telnet to demonstrate AMI connectivity over TCP socket.

a. Connect to the AMI over a TCP socket on port 5038.

b. Log in using the login action and your user account.

c. Execute the Ping action .

Here’s how to get access to the gateway and some responds for the actions from AMI.

image2015 9 17%2017:31:5

2.2 Introduction of SMS sending command

gsm send syncsms <span> <destination> <message> <timeout> [id]

image2015 9 17%2017:32:37

 

2.2 Starting to send SMS over command action by value “gsm send syscsms …” .With regard to the SMS ID, you will be able to set it by yourself, or take ActionID to be your SMS ID.

image2015 9 17%2017:34:31

image2015 9 17%2017:34:16

image2015 9 17%2017:34:56

 

2.3 Introduction of Manager Action Ping.

image2015 9 17%2017:35:31

2.4 Completed transaction of AMI when a short message comes in.

image2015 9 17%2017:35:57

image2015 9 17%2017:36:51

image2015 9 17%2017:37:31

In the whole transaction, you can find a code segment as the following. This section is the most important when you would like to monitor the incoming short message. Asterisk (Gateway core) will report a new event to the client.

image2015 9 17%2017:38:36

image2015 9 17%2017:38:51

image2015 9 17%2017:45:33

If TCP socket connection is still alive. And you receive both parameters Newexten and sms, which indicate that there is a new short message comes in. You will be able to use Ping action to check if your connection is alive or not, and monitor the incoming short message by these two events.

2.5 AMI over TCP for Windows

Yes, you can get access to your GSM Gateway over AMI protocol in Windows system. Please follow thisflow: Click Start–>Run–>Open, at the input text box, type ‘cmd’ to enter a Windows console.

image2015 9 17%2017:46:27

Hit the [Enter], and it will automatically skip to the next illustration.

image2015 9 17%2017:46:55

image2015 9 17%2017:47:8

In this demo, I sent a short message to be outside by action command.

2.6. Using PHP script to send short message over AMI protocol.

Before doing this, please download phpagi target from website: http://sourceforge.net/projects/phpagi/, and place it to /var/lib/asterisk/agi-bin. Give execute permission to the file. Based on my experience, if your PHP version is higher than 5.3, you MUST rename the function goto in phpagi.php.

Here’s demo script voxstack_sms.php:

image2015 9 17%2017:47:58

image2015 9 17%2017:48:38

3. Introduction of USSD sending command.

gsm send ussd <span> <message> [timeout]

image2015 9 17%2017:49:28

Still stuck? How can we help?

Was this page helpful? Yes No

How can we help?

Leave a Comment Cancel reply

CONTENTS

Copyright © 2002-2024 OpenVox all rights reserved.