How to Configure TATA PJSIP Trunk in Asterisk/Vicidial

Solutions

Integrating a TATA PJSIP trunk into your Asterisk-based dialer, such as Vicidial, FreePBX, or GoAutoDial, ensures efficient call handling and connectivity. This guide walks you through the step-by-step process to set up the TATA PJSIP trunk seamlessly.

📌 Prerequisites

  • Asterisk Version: Ensure you’re running Asterisk 16 or higher, as PJSIP support is robust in these versions.
  • Network Configuration: TATA provides a dedicated network setup. Ensure your server has dual NICs or proper routing to handle both TATA’s network and your internal network.

🛠️ Step-by-Step Configuration

1. PJSIP trunk Configuration

Edit the pjsip.conf file located at /etc/asterisk/pjsip.conf and add the following configurations:


[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060

[tata-auth]
type=auth
auth_type=userpass
username=YOUR_USERNAME
password=YOUR_PASSWORD

[tata-aor]
type=aor
contact=sip:YOUR_USERNAME@TATA_SIP_IP

[tata-endpoint]
type=endpoint
transport=transport-udp
context=from-trunk
disallow=all
allow=ulaw
outbound_auth=tata-auth
aors=tata-aor

[tata-identify]
type=identify
endpoint=tata-endpoint
match=TATA_SIP_IP

2. Dialplan Configuration

In your extensions.conf or the appropriate dialplan file, add the following to handle outbound calls:

[from-internal]
exten => _9X.,1,NoOp(Outbound call through TATA PJSIP Trunk)
 same => n,Dial(PJSIP/${EXTEN:1}@tata-endpoint)
 same => n,Hangup()

This configuration strips the leading ‘9’ and routes the call through the TATA PJSIP trunk. 3. Reload Asterisk After saving the configurations, reload Asterisk to apply the changes:

asterisk -rx "module reload"

✅ Verification To verify the trunk registration, use the following command:

asterisk -rx "pjsip show registrations"

Ensure that the TATA trunk shows as “Registered.”

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

Toll-Free vs. Local DIDs

2025 Communication Trends: Are Toll-Free Numbers or Local DIDs Better for Customer Trust?

Choosing the right phone number for your business can make all the difference in customer trust. In 2025, U.S. consumers weigh toll-free and local DID numbers differently than ever before. Discover the latest trends, the pros and cons of each option, and expert insights from VITI Security Solutions on how to build customer confidence with secure, scalable communications.

Read more
Contact us

Partner with Us for Comprehensive IT

We’re happy to answer any questions you may have and help you determine which of our services best fit your needs.

Your benefits:
What happens next?
1

We Schedule a call at your convenience 

2

We do a discovery and consulting meting 

3

We prepare a proposal 

Schedule a Free Consultation