Hi all!
I've spent some hours in last days on Google and forum Search, but no success till now.
Any help on this is greatly appreciated! Bellow you can find all details.
Problem: can not register SIP softphone/device from web (WAN). I only get timeout. Same softphone/device works 100% ok when within LAN.
Environment:
Fonera is main router and also the Asterisk server:
- Kamikaze v8.09.2 (in fact Gargoyle v1.1.7)
- embedded Asterisk v1.4.23.1 (asterisk14-mini package installed via opkg)
Fonera is pluged to a cable modem (WebSTAR DPC2100R2)
Dynamic IP
Fonera DDNS is pointing to xxxx.no-ip.org
PC/ATA/smartphone on LAN via WiFi to Fonera/Asterisk
Asterisk registered ok to some SIP providers.
Fonera Firewall:
UDP 4569 forwarded to 192.168.1.1
UDP 5036 forwarded to 192.168.1.1
UDP 3478 forwarded to 192.168.1.1
UDP 8000~8050 forwarded to 192.168.1.1 (all SIP clients are set to use 8000~8050 RTP)
UDP/TCP 5060~5065 forwarded to 192.168.1.1 (all SIP clients are set to use 5060~5065 SIP)
(also tried DMZ to 192.168.1.1 but did not help)
asterisk.conf
[options]
languageprefix = yes
systemname = xxxx.no-ip.org
rtp.conf
[general]
rtpstart=8000
rtpend=8050
sip.conf
[general]
context=XXXX
externhost=xxxx.no-ip.org
externrefresh=60
localnet=192.168.1.0/255.255.255.0
port=5060
bindaddr=0.0.0.0
useragent=xxxx.no-ip.org
realm=xxxx.no-ip.org
srvlookup=yes
defaultexpiry=1800
nat=yes
canreinvite=no
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
allow=gsm
dtmfmode=auto
rtptimeout=120
rtpholdtimeout=300
[500]
type=friend
context=YYYY
username=500
secret=xxxxx
callerid=("Wilson Cel" <500>)
host=dynamic
SIP clients on LAN:
eyeBeam, ATA and Nokia smartphone can register to Asterisk with no problem.
All are configured to register to xxxx.no-ip.org (not to LAN IP 192.168.1.1)
Can call and receive calls ok. Even no audio problems.
SIP clients from Web:
eyeBeam and Nokia smartphone can not even register to Asterisk. Only gets timeout.
All them are configured to register to xxxx.no-ip.org
Have tried with and without STUN server configured on them.
In Fonera, if I don't forward ports and/or don't DMZ 192.168.1.1 registration is refused almost instantly. So when forwarding and/or DMZing seems some communication is started between clients/Fonera because it takes almost a minute to get timeout.
Just as additional info: all SIP clients can register and works fine with other hosted SIP PBXs (SipSorcery, Voxalot, PBXes), so it is not restrictions on clients' LAN/WAN. Problem for sure is in my OpenWrt+Asterisk
Any tips?
Can you register your SIP clients to your embedded Asterik? If so, how are your Asterisk conf files? How is your OpenWrt firewall config?
Thanks in advance!
(Last edited by wilsonhlacerda on 8 Mar 2010, 22:45)