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 - 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 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 - 10.229.37.12 10.229.50.11
Vodafone Network subnet range (10.229.37.12,10.229.37.10/27)
Step 1: Network Connection
Step 2: Vodafone SIP Proxy Static route
Check your OS network settings to set static route to vodafone network.
Sample vodafone Sip details
SIP proxy ip : 10.229.37.12
Media IP :10.229.50.11
ServerIP : 10.229.37.13
gateway ip :10.229.37.10
interface : Eth1
ip route add 10.229.37.12 via 10.229.37.10 dev eth1ip route add 10.229.50.11 via 10.229.37.10 dev eth1
ip route showorroute -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.
[vodafone]
type=friend
disallow=all
allow=alaw
allow=ulaw
allow=g729
host=10.229.XXX.XXX ;this is vodafone sip proxy ip
fromdomain=10.229.XXX.XXX ;this is vodafone sip proxy ip
qualify=yes
dtmfmode=rfc2833
nat=no
context=trunkinbound ;context to receive inbound calls
sendrpid=yes
trustrpid=yes
Step 4: asterisk dialplan for Vodfone sip
exten => _X.,1,Set(CALLERID(num)=+914412345678)exten => _X.,2,Dial(SIP/vodafone/${EXTEN})exten => _X.,3,Hangup
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)exten => _X.,2,Set(CALLERID(num)=+914412345678)exten => _X.,3,Dial(SIP/vodafone/${EXTEN},,tTo)exten => _X.,4,Hangup