How to configure vodafone sip-voip trunk in asterisk vicidial freepbbx

    Step by step guide to configure vodafone SIP trunk in asterisk based systems like vicidial goautodial freepbx. In this article i have included the SIP settings required for vodafone voip trunk configuration required in asterisk as well network settings required to terminate the vodafone trunk gateway.   

 vodafone sip voip trunk with asterisk

Vodafone - asterisk
Vodafone - vicidial
vodafone - freepbx

Vodafone Idea SIP:

    Vodafone Idea Business, offers Managed SIP service for businesses for whom voice calls are a key business resource with Vodafone Idea Managed SIP (MSIP), these organizations will now have the assurance of security as well as a window to monitor, measure and optimize their voice infrastructure.

Vodafone SIP trunk Networking

    The Vodafone SIP Trunking is provided in secure way of connection,   Vodafone provides a dedicate network to connect to there SIP gateway to register the SIP trunk as per the below Architecture .

To connect to the Vodafone network your PBX/asterisk server should have provisioned with a dedicated ethternet port configured with the IP Subnet provided by Vodafone or you can redesign your network setup to pass both subnet in a single ethernet with static routing.

vodafone idea SIP VOIP

Vodafone SIP trunk Details:

            Once you have purchased  the new Vodafone sip trunk, you will be provided with below details
DID numbers
Pilot number
SIP gateway IP & Media IP -
Vodafone Network subnet range (,

Step 1: Network Connection

            As show in picture above ,connect your Asterisk server to the Vodafone network and assign the IP address from the subnet provided by Vodafone either to a second ethernet or existing ethernet port(based on your network design).
The network configuration is not covered here , it might defer between OS type you are using, but concept is same.

Step 2:  Vodafone SIP Proxy Static route

       If you are connecting Vodafone to your existing networks as pre the picture shown, then you might need a static route to reach the Vodafone SIP Proxy also media ip.
Strict RTP switching to RTP target address 
Check your OS network settings to set static route to vodafone network.
Sample vodafone Sip details
SIP proxy ip    :
Media IP          :
ServerIP           :
gateway ip       :
interface           : Eth1

Centos 7 command to set a static route to SIP proxy ip and media ip
ip route add via dev eth1
ip route add via dev eth1
Command to check the routes
ip route show 
route -n

Step 3: vodafone SIP peer configuration sip.conf

     Once you have setup the network , make sure you are able to reach the Vodafone gateway and SIP gateway ip by ping command.

       enter the below sip settings in you asterisk sip.conf,  if are using Freepbx you can create the same in Gui trunk settings, similar for vicidial/goautodial under carrier settings.


host=10.229.XXX.XXX ;this is vodafone sip proxy ip
fromdomain=10.229.XXX.XXX ;this is vodafone sip proxy ip
context=trunkinbound  ;context to receive inbound calls

Step 4: asterisk dialplan for Vodfone sip

Note: The key factor to dial out via Vodafone is you need to set proper caller-id while dialing out.
Use the below dialplan , alter according to your requirement.

For vanilla Asterisk :
exten => _X.,1,Set(CALLERID(num)=+914412345678)
exten => _X.,2,Dial(SIP/vodafone/${EXTEN})
exten => _X.,3,Hangup
;+914412345678 is my pilot no, you have to enter your pilot no or any number from the DID range

Vicidial / Goautodial
exten => _X.,1,AGI(agi://
exten => _X.,2,Set(CALLERID(num)=+914412345678)
exten => _X.,3,Dial(SIP/vodafone/${EXTEN},,tTo)
exten => _X.,4,Hangup
;+914412345678 is my pilot no, you have to enter your pilot no or any number from the DID range

    If  you want individual CID for each user make sure each user extension is configured with outbound callerid with there DID number. 
For Freepbx, you need create outbound route , with necessary Dial pattern and make sure to set the ROUTE CID (either pilot or DID numbers)


Hope the above tutorial is helpful to configure the vodafone Idea siptrunk in your sip server.
For professional support reach me via skype: striker24x7 , telegram
Youtube Channel :

No Comment
Add Comment
comment url