The TATA SIP trunk required a dedicated LAN interface in your asterisk server whereas one LAN port occupied for the local network and second LAN for TATA network
Configure the TATA network ip to the free LAN interface in server.
Edit the ifcfg-eth2 file
nano /etc/sysconfig/network-scripts/ifcfg-eth1 IPADDR=10.0.30.10 PREFIX=30 ONBOOT=YES The ip address 10.0.30.10 provided by TATA
Configure the route to communicate with TATA network
SIP trunk network always on different rather than the local network ip of your so static route to be require to communicate with TATA SBC
Create a new file
nano /etc/sysconfig/network-scripts/route-eth2 Insert the following based on the SBC IP provided 10.0.30.4/32 via 10.0.30.11 Save the file and restart network service
Once network service restarted check the route is added by using route -n
Asterisk sip settings
Edit the sip.conf file and make the changes as mentioned
nano /etc/asterisk/sip.conf defaultexpiry=600 progressinband=yes
SIP trunk setting
In vicidial & Vicibox use admin utility > Carrier settings
register => 33450000:1234:33450000@10.0.30.4/33450000 [tata-sip] type=friend disallow=all allow=alaw allow=ulaw allow=g729 host=10.0.30.4 ;SBC ip of TATA dtmfmode=rfc2833 nat=no canreinvite=no context=from-tata
Save the sip.conf file and reload the dialplan using asterisk -rx “sip reload”
Dialplan configuration to dialout via tata trunk
In vicidial & Vicibox use admin utility > Carrier settings
Asterisk users can edit extensions.conf and insert dialplan
nano /etc/asterisk/extensions.conf exten => _X.,1,SipAddHeader(P-Preferred-Identity:<sip:33450000@10.0.30.10>) exten => _X.,n,Progress() exten => _X.,n, Dial(SIP/tata-sip/0${EXTEN}) exten => _X.,n,Hangup()
Save the extensions.conf file and reload the dialplan using asterisk -rx “dialplan reload”
Received incoming calls from TATA SIP trunk
Edit the extensions.conf file and insert the following dialplan.
nano /etc/asterisk/extensions.conf [from-tata] exten => _X.,1,Goto(s,1) exten => s,1,Noop(Let us look deeper into the invite) exten => s,n,Set(pseudodid=${SIP_HEADER(To)}) exten => s,n,Set(pseudodid=${CUT(pseudodid,@,1)}) exten => s,n,Set(pseudodid=${CUT(pseudodid,:,2)}) exten => s,n,Goto(trunkinbound,${pseudodid},1)