how to configure yeastar gsm gateway with asterisk vicidial

Yeastar GSM Gateway SIP trunk with asterisk

Topic: how to configure yeastar gsm gateway with asterisk vicidial

yeastar gsm gateway asterisk

  Overview: Yeastar-Asterisk-Vicidial

Yeastar TG GSM/CDMA/UMTS Gateways connect GSM/CDMA/UMTS network to VoIP network directly and support two-way communication: GSM/CDMA/UMTS to VoIP and VoIP to GSM/CDMA/UMTS. It is the best solution ever to connect IP-based telephone systems, and softswithces to GSM/CDMA/UMTS network; and also the best fallback solution when landline goes down

The Yeastar Gsm gateway comes in 5 models ie ( single prot, 2 port ,4 port ,8port ,16port)

  • Neogate TG100
  • Neogate TG200
  • Neogate TG400
  • Neogate TG800
  • Neogate TG1600

    Asterisk is a free and No:1 open source framework for building communications applications and is sponsored by Sangoma.

    VICIDIAL is a software suite that is designed to interact with the Asterisk Open-Source PBX Phone system to act as a complete inbound/outbound contact center suite with inbound email support as well.

  Steps : Yeastar GSM Gateway configuration

   Step 1 :  Configuring  the IP to the yeastar gateway

By default the yeastar gsm gateway come with factory default ip  :
Configure your Laptop/pc with a ip( same subnet.

Open a browser and browse
username : admin
password : password

Navigate to System == network preferences == Lan settings.
change the IP address as per your local Network , subnetmask & gateway ip  and connect the Gsm Gateway to your Lan Network .
(as per this guide i consider as my Gsm gateway ip & my vicidial/goautodial/asterisk server IP)
Note: the Ip address should be static not from your DHCP pool.

   Step 2 : Configuring Mobile group 

Insert all your SIM cards in the respective slots

Click on the Tab  Gateway (on top right corner) 

Select Mobile Group 
Click Add New Mobile Group and fill the below details

Group Name : Give name say: SIPGROUP1
Startegy         : select either sequence or balance
Group members :  select the slots in which you have inserted sim, if all slots have sim then select all,


   Step 3 : Creating a VOIP trunk  in gsm gateway

Click VOIP trunk from the VOIP setting tab.
Click add Voip trunk button and fill the below details

  • Trunk Type : service provider
  • Type            : SIP
  • Provider name: asterisk
  • Hostname/IP :  enter the ip address of your asterisk or vicidial or goautodial server (
  • save

   Step 4 : Setting Outbound and Inbound route in Gsm Gateway

navigate to Route Settings where you can see two options
1. Mobile to IP
2. IP to Mobile

Outbound Setup:

Click IP to Mobile
Click Add IP to Mobile Route button and fill below details

  • Simple mode Yes
  • Call Source  : select asterisk from dropdown, the one we created in previous step
  • Call Destination : select the group (SIPGROUP1) from drop down, this created in step1
  • save.
Inbound Setup :
Click Mobile to IP
click ADD Mobile to IP route and fill below details
  • Simple Mode : Yes
  • Route Name   : give a name say inbound
  • call source   :   SIPGROUP1  (the one created in step 1)
  • Hot line       : 2222   (this is a extension we will be creating in asterisk)
  • save

   Step 5 : applying changes

once any setting done in Gsm Gateway  you have to press  Apply Changes.

   Step 6 :  Configuring SIP trunk in Asterisk/vicidial/goautodial

you can create sip trunk either in GUI or in command line, i prefer in command line

  • SSH your asterisk server
  • go to  vi /etc/asterisk/sip.conf 
  • add the below settings in last line of sip.conf


note: context can be any as per your inbound setup.

  • save the file and reload asterisk to register the trunk 
  • you can check the status of trunk by type sip show peers in asterisk cli.

   Step 7 : Setting outbound & inbound 

Outbound :

For outbound you need dialplan
you can write dialplan in command line or in gui, i prefer command line

  • ssh to server
  • goto vi /etc/asterisk/extensions.conf
  • use the below dialplan under default context
for vicidial based system
exten => _9X.,1,AGI(agi://
exten => _9X.,2,Dial(SIP/2222/${EXTEN:1},,Tto)
exten => _9X.,3,Hangup
For plain asterisk 
exten => _9X.,1,Dial(SIP/2222/${EXTEN:1})
exten => _9X.,2,Hangup

  • save the file ,exit,  reload the asterisk
  • Make a test call by dialling any number with prefix 9
  • Use  9  as dialprefix in the Campaign settings

Inbound setup :

If you are using vicidial or goautodial then go to GUI

  • ADD new DID
  • DID number :  2222
  • DID route  : set it based on your requirement either ingroup or exten.
For those use plain asterisk 
go to extensions.conf
create a context ie trunkinbound
exten => _X.,1,Dial(SIP/100)

the above dialplan will dial extension 100 for all the incomming  calls.
change it as per your requirement.


Hope the tutorial is helpful, for professional support reach me on skyp:striker24x7

Checkout my youtube channel for video tutorial

  • Ajit Kumar
    Ajit Kumar April 4, 2022 at 11:12 AM

    How to configure Yeastar Gsm Gateway with asterisk/vicidial/goautodial

Add Comment
comment url