Why is SIP / NAT not working properly on Trixbox 2.0
I currently have a Trixbox 2.0 system running in production using (70)Linksys 942 phones for standard users. We have it connected to a 100M pipe to the internet, T-1 PRI and 4-analog lines. When I was running Asterisk@Home as our production box I had no problems placing Linksys phones remotely and connecting back into the system via SIP.
We have now migrated to Trixbox 2.0 box. It was a clean build and everything was configured. The system overall is running quite smoothly except for one MAJOR issue.
When placing the Linksys phones outside (via SIP), I am getting one-way audio when I call from the outside phone to another extension. However, if I place an outbound call from the outside phone audio works perfectly. Also, if I call the outside phone from one of the phones located on the local network, I get the audio both ways also.
The issue seems to only occur when initiated from the phone residing on the outside of the network.
I have gone through every file I thought possible to make sure everything is correct and have yet to find a reason.
In addition to the conf files, I also have my firewall set to allow all traffic in and out of my server.
Hopefully someone can shed light or possibly Trixbox can send us a helping light on this issue. (Kerry Help!)
Here is my config to compare with everyone (I have added all the files I know of that relate to network/nat/sip...):
host.conf
order hosts,bind
************************************************
hosts (not to be confused with host.conf)
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
127.0.0.1 mypbx.mydomain.com mypbx.localhost
***************************************************************
SIP.conf
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68
nat=1 (I had net=yes but see no difference)
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf
****************************
SIP_additional.conf
[4305]
type=friend
secret=xxxx
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=yes
mailbox=4305@default
host=dynamic
dtmfmode=rfc2833
dial=SIP/4305
context=from-internal
canreinvite=no
callerid=device
*******************************
SIP_nat.conf
[general]
externip=xxx.xxx.xxx.xxx
externhost = mypbx.mydomain.com
localnet=192.168.1.0/255.255.255.0
nat=yes
externrefresh=10
********************************
dnsmgr.conf
[general]
;enable=yes ; enable creation of managed DNS lookups
; default is 'no'
;refreshinterval=1200 ; refresh managed DNS lookups every seconds
; default is 300 (5 minutes)
*************************************
resolv.conf
(you should make sure to add all your nameservers if you have more than one)
nameserver 192.168.1.249
nameserver 192.168.1.254
**************************************
network (under etc/sysconfig)
NETWORKING=yes
HOSTNAME=mypbx.mydomain.com
**************************************
Sincerely,
Chris
Member Since:
2007-01-05