how to configure vodafone PJSIP trunk in asterisk vicidial freepbx

    Step by Step guide to configure the Vodafone-Idea PJSIP trunk in asterisk based PBX and dialers like vicidial, Freepbx, Goautodialelastix, issabel. Vodafone-Idea India provides VOIP trunk to India customer for domestic dialing which supports both SIP and PJSIP protocol. If you are looking for vodafone-idea VOIP trunk in PJSIP then this article is for you.


vodafone pjsip trunk asterisk

Whos is vodafone-idea?

    If you are looking for vodafone PJSIP trunk configuration in asterisk or vicidial then this blog post is for you. In this tutorial i have provided asterisk pjsip configuration for vodafone PJSIP trunk.

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

Vodafone PJSIP Network Settings:

    Vodafone PJSIP trunk is provided with a dedicated network from vodafone network service, that is you will be provided with a router with dedicated subnet, either you need to have two ethernet interface in your dialer to connect to vodafone network and also connect to your existing network, or you need to have a router which can support two networks with proper routing.

Check out my tata sip trunk Article for the Network connectivity required for the vodafone network and Asterisk server.

How to enable PJSIP:

 PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE.PJSIP is both compact and feature rich. It supports audio, video, presence, and instant messaging

Check out my blog post how enable PJSIP in vicidial.

Vodafone PJSIP Carrier Details

Once you have purchased the vodafone PJSIP trunk, you will be provided with the below details,

DID numbers
Pilot number
SIP gateway IP & Media IP
Vodafone Network subnet range (server IP,subnet, gateway IP)

Asterisk - Vicidial PJSIP Settings for vodafone

    If you are using Plain asterisk or configuring the trunks in command line, then add the below PJSIP settings in pjsip.conf which is located in the /etc/asterisk/ folder.

    If you are using vicidial then add all the pjsip settings mentioned here under the same carrier Account settings.

Note:  you no need to add any registration string for the pjsip trunks.

            Replace the username,password, IP address my  IP=10.229.37.12

[vodafonesiptrunk]
type=aor
qualify_frequency=60
contact=sip:vodafonesiptrunk@10.229.37.12:5060
[vodafonesiptrunk]
type=endpoint
transport=0.0.0.0-udp
context=from-trunk
disallow=all
allow=ulaw,alaw,gsm,g726,g722
aors=vodafonesiptrunk
send_connected_line=false
language=en
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
trust_id_inbound=no
t38_udptl_nat=no
direct_media=no
rtp_symmetric=yes
dtmf_mode=rfc4733
[vodafonesiptrunk]
type=identify
endpoint=vodafonesiptrunk
match=10.229.37.12

Asterisk PJSIP Dialplan

    Use the below dialplan to dial over the vodafone trunk with PJSIP dialplan application.

If you are using the Asterisk and manging over command line, then add this dialplan in extensions.conf under your preferred outbound context,  

For vicidial users add this dialplan in same carriers settings under Dialplan Entry

dial plan for Vicidial Users

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log) 
exten => _9X.,n,Dial(PJSIP/${EXTEN:1}@vodafonesiptrunk,30,Tto) 
exten => _9X.,n,Hangup()

dialpal for plain asterisk users

exten => _9X.,1,Dial(PJSIP/${EXTEN:1}@vodafonesiptrunk,30,Tto) 
exten => _9X.,n,Hangup()

Conclusion:

    Hope this article is helpful for you, if you like this post kindly share and follow.

Still you are facing issue or need a professional support reach out to be me on skype or telegram - id: striker24x7

No Comment
Add Comment
comment url