I found this configuration file on Wiki for FWD behind firewall ; SIP Configuration for Asterisk ; [general] disallow=all allow=ulaw port=5060 ; Port to bind to bindaddr=0.0.0.0 ; Address to bind SIP channel to externip=xxx.xxx.xxx.xxx localnet=172.16.1.0 localmask=255.255.255.0 context=inbound-sip ; Default context for incoming calls maxexpirey=180 defaultexpirey=160 tos=reliability srvlookup=yes register => FWD#:secret@fwd.pulver.com/FWD# bindaddr=0.0.0.0 - is this the address of my asterisk server externip=xxx.xxx.xxx.xxx - this is my external IP before firewall isn't it? When I try to register, I get: sip_reg_timeout: Registration for ... What am I missing? -- #Joseph
You probably want to use IAX to talk to FWD. It tunnels through NAT without any special changes. See http://www.fwd.pulver.com/advanced/iax Making asterisk work through NAT is a pain and some of the Wiki stuff is wrong/out dated. This works for me: In sip.conf: localnet: 192.168.1.0/255.255.255.0 externip: <MYIP> Then look at rtp.conf and see what range of ports it uses. Mine is 10000-11000 (since I never have a lot of calls at once) Then I configured my firewall to route 5060 (sip) and 10000-11000 (rtp) to my asterisk box. I'm sending both TCP and UDP, but I suspect UDP is really the only protocol required. - |Daryll
> Making asterisk work through NAT is a pain and some of the Wiki stuff > is wrong/out dated. This works for me:Please feel free to fix or point out what is wrong/outdated so someone else can fix. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050116/2fefeb95/attachment.htm