We are trying to use a softphone from a location that is behind a firewall. We are using x-lite as the softphone. So far, we've been able to get the phone to register with the asterisk server, and it can receive voice from the asterisk server (IE, voicemail, etc). However, asterisk can't hear anything from the softphone. We have used 2 different machines to test this on. We are watching the traffic and noticed that there doesn't appear to be any rtp traffic going back to asterisk (this is where we think the problem might be). The firewalls on both sides have ports 5060, 10000-20000 and 3478 (STUN) open. Out conf files are: ------------------ [sip.conf] *[general] context=incoming ; Default context for incoming calls bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls allow = all [1000] nat=yes type=friend secret=Polycom context=internal host=dynamic canreinvite=no mailbox=1000@default callerid=TESTUSER1 <1000> * ----------------- [extensions.conf] exten => 1000,1,Macro(stdexten,1000@default,SIP/1000) ---------------- [rtp.conf] [general] rtpstart=12000 rtpend=12005 dtmftimeout=3000 What are we missing? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070612/732aebfd/attachment.htm
Leonardo Kamache (Gmail)
2007-Jun-12 10:22 UTC
[asterisk-users] Softphone behind NAT issues
In [general] section: externip=your_extern_ip_address localnet=your_local_net/bits i.e. 192.168.0.0/24 Try this... On 6/12/07, Rob Schall <rschall@callone.net> wrote:> > We are trying to use a softphone from a location that is behind a firewall. > We are using x-lite as the softphone. > > So far, we've been able to get the phone to register with the asterisk > server, and it can receive voice from the asterisk server (IE, voicemail, > etc). > > However, asterisk can't hear anything from the softphone. We have used 2 > different machines to test this on. We are watching the traffic and noticed > that there doesn't appear to be any rtp traffic going back to asterisk (this > is where we think the problem might be). The firewalls on both sides have > ports 5060, 10000-20000 and 3478 (STUN) open. > > Out conf files are: > ------------------ > [sip.conf] > > [general] > context=incoming ; Default context for incoming calls > bindport=5060 ; UDP Port to bind to (SIP standard port is > 5060) > bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to > all) > srvlookup=yes ; Enable DNS SRV lookups on outbound calls > allow = all > > [1000] > nat=yes > type=friend > secret=Polycom > context=internal > host=dynamic > canreinvite=no > mailbox=1000@default > callerid=TESTUSER1 <1000> > > ----------------- > [extensions.conf] > exten => 1000,1,Macro(stdexten,1000@default,SIP/1000) > ---------------- > > [rtp.conf] > > [general] > rtpstart=12000 > rtpend=12005 > dtmftimeout=3000 > > What are we missing? > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > >
On 12 Jun 2007, at 17:53, Rob Schall wrote:> We are trying to use a softphone from a location that is behind a > firewall. We are using x-lite as the softphone.Alternatively you could use an IAX softphone. They generally don't have a problem with NAT or firewalls. Tim Panton www.mexuar.net www.westhawk.co.uk/