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 

Wireless Gateway

  • folder icon closed folder iconUser Manual
    • SWG-2016/32 User Manual
    • VoxStack Series Wireless Gateway
    • SWG-3008/3016/32 User Manual
    • SWG-3016/32-4S User Manual
    • SWG-M20X User Manual
  • folder icon closed folder iconFunctions Guide
    • Interaction docking Guide
      • Wireless Gateway connects with 3CX
      • Wireless Gateway connects with asterisk16.15.1
      • Wireless Gateway FAQ connect with UC
      • Wireless Gateway connects with Freepbx15
      • Wireless Gateway connects with FreeSwitch1.10.5
  • folder icon closed folder iconApplication Notes
    • GSM Gateways APP Note
      • Expand Callback Function
      • APP Note_AMI
      • How to Bind the GSM Gateway Ports with PBX Sip Extension
      • OpenVox GSM Gateway HTTP Interface
      • How to Integrate the Analog Gateway and the GSM Gateway in One OpenVox Box
      • OpenVox GSM Gateway Function User Manual
      • 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
    • The difference between the GWP Series gateway and the old version VS-GW1600/2120 Series gateway
    • Default IP and login information of various Gateways
    • SWG30XX-4S card position switching
    • How to update firmware when there is a file over limit pop-up
    • how to use smpp via diafaan ?
    • Product Comparison
  • folder icon closed folder iconfunction
    • Cloud Management – How to Connect to Cloud Management
    • Balance Inquiry – How to check the balance of your card on your device
    • Modify secondary dialing voice prompts
    • USSD API Sending – How to send USSD via API
    • Secondary Dialing – How to set up secondary dialing for outbound routing
    • Card switching strategy – how to make the sim card switch according to your expectations
    • Number lookup – How to look up the number of the card on the device and display it
    • Inbound routing, outbound routing
    • Call Forwarding – How to set up call forwarding
    • Call Waiting – How to set up call waiting
    • How to upgrade the system of the gateway
    • How to translate the language of a web page into the language you want
    • How to upload and download gateway configurations
    • How to restore factory settings via web or RST button
    • Turn on call logging and AT logging – How to turn on call logging and AT logging
    • Module Upgrade – How to Upgrade Module System
    • SMS API Delivery – How to send SMS through API and set up SMS server to receive it
    • SMS Restrictions – How to set SMS restrictions
    • Gateway connection vpn – if connecting to vpn
loading
Popular Searches
  • VoIP
  • Gateway
  • IPPBX
  1. Home
  2. Docs
  3. Wireless Gateway
  4. Application Notes
  5. GSM Gateways APP Note
  6. Expand Callback Function
Updated on March 29, 2022

Wireless Gateway

  • folder icon closed folder iconUser Manual
    • SWG-2016/32 User Manual
    • VoxStack Series Wireless Gateway
    • SWG-3008/3016/32 User Manual
    • SWG-3016/32-4S User Manual
    • SWG-M20X User Manual
  • folder icon closed folder iconFunctions Guide
    • Interaction docking Guide
      • Wireless Gateway connects with 3CX
      • Wireless Gateway connects with asterisk16.15.1
      • Wireless Gateway FAQ connect with UC
      • Wireless Gateway connects with Freepbx15
      • Wireless Gateway connects with FreeSwitch1.10.5
  • folder icon closed folder iconApplication Notes
    • GSM Gateways APP Note
      • Expand Callback Function
      • APP Note_AMI
      • How to Bind the GSM Gateway Ports with PBX Sip Extension
      • OpenVox GSM Gateway HTTP Interface
      • How to Integrate the Analog Gateway and the GSM Gateway in One OpenVox Box
      • OpenVox GSM Gateway Function User Manual
      • 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
    • The difference between the GWP Series gateway and the old version VS-GW1600/2120 Series gateway
    • Default IP and login information of various Gateways
    • SWG30XX-4S card position switching
    • How to update firmware when there is a file over limit pop-up
    • how to use smpp via diafaan ?
    • Product Comparison
  • folder icon closed folder iconfunction
    • Cloud Management – How to Connect to Cloud Management
    • Balance Inquiry – How to check the balance of your card on your device
    • Modify secondary dialing voice prompts
    • USSD API Sending – How to send USSD via API
    • Secondary Dialing – How to set up secondary dialing for outbound routing
    • Card switching strategy – how to make the sim card switch according to your expectations
    • Number lookup – How to look up the number of the card on the device and display it
    • Inbound routing, outbound routing
    • Call Forwarding – How to set up call forwarding
    • Call Waiting – How to set up call waiting
    • How to upgrade the system of the gateway
    • How to translate the language of a web page into the language you want
    • How to upload and download gateway configurations
    • How to restore factory settings via web or RST button
    • Turn on call logging and AT logging – How to turn on call logging and AT logging
    • Module Upgrade – How to Upgrade Module System
    • SMS API Delivery – How to send SMS through API and set up SMS server to receive it
    • SMS Restrictions – How to set SMS restrictions
    • Gateway connection vpn – if connecting to vpn

Expand Callback Function

Estimated reading: 2 minutes 170 views

Both gsm and 3G gateway support to expand callback function, but you need config it in SSH way.

Please follow steps below:

Step 1:  define gsm channel entry:

[email protected]:~# cd /etc/asterisk/
[email protected]:~/memcfg/etc/asterisk# vi chan_extra.conf

#include extra-global.conf
;#include extra-channels.conf

#include extra-channels_custom.conf   //change default extra-channles to custom channels entry

[email protected]:~/memcfg/etc/asterisk# cp extra-channels.conf extra-channels_custom.conf

[email protected]:~/memcfg/etc/asterisk# vi extra-channels_custom.conf

group=1
;context=gsm-1     //default calls go to [gsm-1] context in extensions_routing.conf
context=gsm-custom-1     ////Now leading calls go to [gsm-custom-1] context in extensions_custom.conf
signalling = gsm
vol=70
mic=1
dacgain=-15
adcgain=-3
debugat=on
gsm_ec=off
anonymouscall=off
call_waiting=off
…….

…….

step 2: Modify asterisk.conf to change dirrectory of agi

[directories]

astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /usr/lib/asterisk
astagidir => /etc/asterisk/agi-bin
astspooldir => /tmp/media/spool/asterisk
astrundir => /var/run
astlogdir => /tmp/log/asterisk
astdatadir => /etc/asterisk

 

step 3: Creat your own Dialpan:

Such as: any incoming call from gsm-1.1 will be hangup, gsm gateway will automatically callback through gsm-1.1 and connect the caller with sip ext 1001.

[gsm-custom-1]
exten => s,1,Set(DESTINATION=${CALLERID(num)})
exten => s,n,Noop(===========incoming call=============)
exten => s,n,hangup()
exten => h,1,Noop(=======call back start=========)
exten => h,n,DeadAGI(callback.php,${DESTINATION},”1001″,gsm-callback.s.1,20)   ;1001 is  sip ext
exten => h,n,Hangup()

[gsm-callback]
exten => s,1,Noop(====${CALLERID(num)}====)
exten => s,n,Dial(EXTRA/1/${CALLERID(num)})      ;using port gsm-1.1 to callback
exten => s,n,Hangup()

Please upload files below to your gsm gateway. Put them in this directory:  /etc/asterisk/agi-bin

phpagi-asmanager.php

phpagi.php

callback.php

 

Notice: As all confiugration is stored in RAM, so you need to run a tool to write them into files, otherwise all configuration will be lost once reboot.                                                                                

[email protected]:~/memcfg/etc/asterisk# /my_tools/sync2flash

 

 

 

 

 

 

 

 

 

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.