Skip to main content

How to configure TATA PJSIP trunk in asterisk vicidial freepbx

  Step by step guide to configure the TATA PJSIP trunk in asterisk based dialers like vicidial, goautodial,Freepbx,elastix,issabel.


Tata PJSIP

If you are looking for TATA PJSIP trunk configuration in asterisk or vicidial then this blog post is for you. In this tutorial i have provided asterisk pjsip configuration for TATA PJSIP trunk.
Tata Tele Business Services, belonging to the prestigious Tata Group of Companies, is the country’s leading enabler of connectivity and communication solutions for businesses. Tata Providing PRI trunks over VOIP as SIP or PJSIP to indian customers.

Tata PJSIP Network Settings:

Tata PJSIP trunk is provided with a dedicated network from tata tele 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 tata network and also connect to your existing network, or you need to have a router which can support two networks with proper routing.

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 the article how to enable PJSIP in vicidial.

Tata PJSIP Carrier Details

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

DID Range and Pilot Number
Username and password
TATA network subnet range
SIP gateway and Media IP


Asterisk - Vicidial PJSIP Settings for TATA

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 username:00918069123456, pass=1234, IP=10.60.41.32
[tatasiptrunk]
type=registration
retry_interval=20
max_retries=10
contact_user=00918069123456
expiration=600
transport=0.0.0.0-udp
outbound_auth=tatasiptrunk
client_uri=sip:00918069123456@10.60.41.32:5060
server_uri=sip:10.60.41.32:5060

 

[tatasiptrunk]
type=auth
auth_type=userpass
password=1234
username=00918069123456

 

[tatasiptrunk]
type=aor
qualify_frequency=60
contact=sip:00918069123456@10.60.41.32:5060
default_expiration=600

 

[tatasiptrunk]
type=identify
endpoint=tatasiptrunk
match=10.60.41.32

 

[tatasiptrunk]
type=endpoint
transport=0.0.0.0-udp
context=from-trunk
dtmf_mode=rfc4733
disallow=all
allow=alaw
allow=ulaw
allow=g729
direct_media=no
rtp_symmetric=yes
trust_id_inbound=yes
send_rpid=yes
;from_domain=10.60.41.32
inband_progress=yes
rewrite_contact=yes
;force_rport=yes
aors=tatasiptrunk


Asterisk PJSIP Dialplan

Use the below dialplan to dial over the tata 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}@tatasiptrunk,30,Tto)
exten => _9X.,n,Hangup()


dialpal for plain asterisk users

exten => _9X.,1,Dial(PJSIP/${EXTEN:1}@tatasiptrunk,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 

id:manish.kadiya

 

Comments

Popular posts from this blog

Vicidial Scratch installation Alma -9

Step 1 – Download the dependencies   hostnamectl set-hostname xxxxxx.xxxxx.xxx ### Use YOUR SubDomain vi /etc/hosts ##Change domain name for actual server ip (xxx.xxx.xxx.xxx   complete domain name    subdomain only) timedatectl set-timezone Asia/Kolkata yum check-update yum update -y yum -y install epel-release yum update -y yum install git -y yum install -y kernel* sudo dnf install kernel-devel-$(uname -r) -y #Disable SELINUX sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config     reboot Step 2 – Run the Script cd /usr/src/ git clone https://github.com/manish23k/vicidial-install-scripts cd vicidial-install-scripts chmod +x alma-rocky9-ast16.sh ./alma-rocky9-ast16.sh Or the Asterisk 18 version: chmod +x alma-rocky9-ast18.sh ./alma-rocky9-ast18.sh ####For PHP 8 use this script. chmod +x main-installer-php8.sh ./main-installer-php8.sh

Vicidial Scratch installation Debian 11 with Asterisk 16, WebRTC and Dynamic Portal

  Vicidial Scratch installation Debian 11  Asterisk 16, WebRTC and Dynamic Portal apt update apt upgrade apt-get install git nano wget cd /usr/src/ git clone https://github.com/manish23k/Vici_Install_Scripts_Deb_11.git cd Vici_Install_Scripts_Deb_11/ chmod +x *.sh Run ./vici_install_deb_ast16.sh Install WebRTC ./vicidial-install-webrtc.sh Once Done with Configuration Secure Server with Vici Dynamic Portal Run ./vici_dynportal.sh

How to delete old call logs and other logs in vicidial or goautodial.

Step 1 : SSH to the server using the Putty Step 2:   login to mysql by typing   mysql -p                    (if you dont know password try below command )               mysql -ucron -p1234 Step 3 : select the asterisk database by typing               use asterisk step 4: Run the below command to check total disk occupied by asterisk database                SELECT table_schema AS "asterisk", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Step 5 : Run the below command to check disk space consumed by each table in asterisk database SELECT table_name AS "Table", ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" FROM information_schema.TABLES WHERE table_schema = "asterisk" ORDER BY (data_length + inde...