configure Tata Sip Trunk with Asterisk
The TATA SIP trunk will need a need a dedicated lan connectivity to your dialler, so in dialer or pbx you need two Ethernet Port to connect to TATA network and a Dedicated network for phone registration and agent logins
eth1 is used to connect to TATA network, and eth0 is used to connect to customer lan network were ipphones , agents pc will be connected
STEP 1: Configure the TATA network ip to eth1 of dialer/pbx
Either you can use the below command to configure the tata ip in eth1
ifconfig eth1 10.0.70.18/30
OR edit the ifcfg-eth1 file by using below command
*** Note : the ip address 10.0.70.18 might be differ for each customer.
STEP 2: Configure the route in linux to reach tata network
as SIP trunk network is on different subnet than the customer IP, a static route needed
to reach the TATA SBC .
and add below line
10.0.70.2/32 via 10.0.70.71
Once file save restart the network by typing
service network restart
then type route -n to make sure route is added
STEP 3: Asterisk sip settings.
Goto vi /etc/asteris/sip.conf and make below changes
STEP 4: Sip Carrier settings
For vicidial/goautodial you can use the admin utility- Carrier settings
for plain asterisk enter the below details in sip.conf.
register => 66810000:1234:email@example.com/66810000
host=10.0.70.2 ;this is tata SBC ip
Configure network interfaces for sip trunk
First: Interface LAN was configured by installer itself, then it add mask /24 that must be removed.
iface LAN inet static address 192.168.1.247/24 gateway 192.168.1.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.1.254 allow-hotplug SIP iface SIP inet static address 172.xxx.xxx.xxx netmask 255.255.255.252
Was modified to:
iface LAN inet static address 192.168.1.247 netmask 255.255.255.0 gateway 192.168.1.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.1.254 allow-hotplug SIP iface SIP inet static address 172.xxx.xxx.IP netmask 255.255.255.252
Then at /etc/rc.local must add two static routes
- This route sends all trafic to LAN through LAN interface
route add 192.168.1.0 gw 192.168.1.254
- This route sends all traffic to my sip server through SIP interface
route add [SIP SERVR IP] gw 172.xxx.xxx.GW
This all done the work.
172.xxx.xxx.IP is the Ip assigned by telecom provider
172.xxx.xxx.GW is the gateway assigned by telecom provider
[SIP SERVR IP] is the Sip server ip assigned by telecom provider.