All posts under tagged ‘STUN’

Feed for all posts filed under "STUN"

Masquerade your Asterisk Server with SIProxd or Firewalled Asterisk

Source: snapvoip.blogspot.com

Siproxd is an proxy/masquerading daemon specially designed for SIP protocol. It handles registrations of SIP clients on a private IP network and performs rewriting of the SIP message bodies to make SIP connections possible via an masquerading firewall. It allows SIP clients (like kphone, linphone) to work behind an IP masquerading firewall or router. It could also be installed on the firewall itself. Installation is very simple as well.

SIP (Session Initiation Protocol, RFC3261) is used by Softphones and Hardphones (Voice over IP) to initiate a VoIP communication. By itself, SIP does not work via masquerading firewalls as the transfered data contains IP addresses and port numbers.

STUN servers are used to help SIP clients to figure out its public visible IP address and use this one instead of th non routable IP address. As a drawback, usually on the firewall, a wide range of ports must be opened up for the incoming RTP traffic and the SIP client must also support STUN, which most of them do.

Siproxd provides another approach (application layer proxy) and places itself as outbound proxy in between the local SIP client and the remote SIP client or SIP registrar. It rewrites the SIP traffic on the fly and also includes a RTP proxy for incoming and outgoing RTP traffic (the actual audio potion of a SIP based VoIP call). The port range for receiving RTP data is configurable, so the firewall needs to allow /open only a small port range.

Now here is the Masquerading Asterisk Server;

The Asterisk server will register itself as a SIP UA (Client) to an external SIP registrar. In this example sipphone.com is used as the external SIP provider. As Asterisk does not allow to specify an SIP outbound proxy we need to use transparent proxying. The context values of the asterisk configuration needs to be adapted to fit your needs.

Various Configuration files;

siproxd.conf:

if_inbound = eth0
if_outbound = ppp0
hosts_allow_reg = 10.0.0.0/24
sip_listen_port = 5060
daemonize = 1
silence_log = 1
log_calls = 1
user = siproxd
registration_file = /var/lib/siproxd_registrations
pid_file = /var/run/siproxd/siproxd.pid
rtp_proxy_enable = 1
rtp_port_low = 7070
rtp_port_high = 7089
rtp_timeout = 300
default_expires = 600
debug_level = 0
debug_port = 0

Firewall configuration (iptables):

# redirect outgoing SIP traffic to siproxd (myself)
iptables -t nat -A PREROUTING -m udp -p udp -i eth0 \
–source 10.0.0.11 –destination-port 5060 -j REDIRECT
# allow incoming SIP and RTP traffic
iptables -A INPUT -m udp -p udp -i ppp0 –dport 5060 -j ACCEPT
iptables -A INPUT -m udp -p udp -i ppp0 –dport 7070:7080 -j ACCEPT

Asterisk configuration (SIP related part):

Note: Very important are the fromuser and fromdomain keywords in the client section. They are required to have Asterisk send the correct From headers in SIP dialogs.

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)
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
defaultexpirey = 900

; codecs
disallow=all
allow=gsm ; 13 Kbps
allow=ulaw ; 64 Kbps
allow=alaw ; 64 Kbps

; SIP Trunk to sipphone.com you can use you own outbound SIP trunk here
; the SIP number is taken randomly for this example
register=17476691234:@proxy01.sipphone.com

[17476691234]
type=user
nat=never
context=from-pstn
canreinvite=no

[sipphone1]
username=17476691234
type=peer
qualify=2000
host=proxy01.sipphone.com
fromuser=17476691234
fromdomain=proxy01.sipphone.com
context=from-pstn
canreinvite=no
secret=

; local SIP extensions
[200]
username=200
type=friend
secret=XXXXXX
qualify=500
port=5060
pickupgroup=
nat=never
mailbox=
host=dynamic
dtmfmode=rfc2833
disallow=
context=from-internal
canreinvite=no
callgroup=
callerid="Extension 200"
allow=all

There you have it, a firewalled Asterisk server or Trixbox.

Links;
SIPROXD at Sourceforge.net

Published on January 23rd, 2007 under , , , , , , ,

VoipStunt 3.0 Beta

Source: voip-tech.blogspot.com

Released the version 3.0 Beta of the famous VoIP software, VoipStunt 3.0 Beta it’s ready for download directly from the website: http://www.voipstunt.com, it offer less audio quality than Skype™, but as positive thing we have 300 minutes of free calls in a week, from computer to regular landline phones (and in some countries also from computer to cellphones).
What to say… let’s use this software (also for job/work) before it will become under payment…

Here’s the countries list where you can call for free:

  • Argentina
  • Australia
  • Austria
  • Belgium
  • Canada
  • Chile
  • Denmark
  • Estonia
  • Finland
  • France
  • Germany
  • Hong Kong (+mobile)
  • Iceland
  • Ireland
  • Italy
  • Japan
  • Liechtenstein
  • Luxembourg
  • Malaysia
  • Monaco
  • Netherlands
  • New Zealand
  • Norway
  • Portugal
  • Puerto Rico (+mobile)
  • Russian Federation
  • Singapore (+mobile)
  • South Korea
  • Spain
  • Sweden
  • Taiwan
  • United Kingdom
  • United States (+mobile)
Published on December 16th, 2006 under , , , , , , ,

OpenPBX RC2 is ready for testing.

Source: snapvoip.blogspot.com

If you not heard before, OpenPBX.org is a community driven software PBX project.OpenPBX in the same line of Asterisk but with differences. The most important differences between OpenPBX and Asterisk are;
Built-in STUN support,
The use of SpanDSP for better codecs
Full T.38 fax over IP support
Sqlite instead of Berkeley DB
Universal jitterbuffer,
POSIX timers to avoid Zaptel timing dependencies
Greater speed
Efficient dialplan execution.

Support is via mail list and Wiki
I am testing the current release on a FreeBSD 7. But I have not come across any major issues. I did have some trouble, my own making, with Zaptel drivers. You can help out the development by testing on your favorite platform, which includes NetBSD, FreeBSD 6.2 and 7, Mac OS X, and of course your favorite, happy feet, linux distribution.

Links;
OpenPBX home
OpenPBX wiki
OpenPBX mailing list

Published on November 27th, 2006 under , , , , , , , , ,

VoipBuster, VoipStunt, InternetCalls: The Attack Of The Clones?

Source: voip-tech.blogspot.com

Three brother’s softwares, very very similar in the interface and functionality, these softwares allow us to call for free landlines phones in many countries, without time limit, but i red some articles somewhere on the web that said that VoipStunt after a certain number of minutes of free calls (about 40) didn’t allow to call the free destination countries and ask for a credit (like SkypeOut) to continue to make free calls over free destinations; it also could be a little bug in the software.
On the contrary, with InternetCalls there’s no time limits or calls, will it be true? For settle things once and for all I installed all the three softwares, using them within the time I will find out if effectively will be possible to continue to make free calls without limits.
If it will be not… well, just sign in with a new account and take advantage of more free calls.
Anyhow the italian translation i made for VoipStunt works perfectly also with InternetCalls and VoipBuster.

URLs:

http://www.voipstunt.com
http://www.voipbuster.com
http://www.internetcalls.com

Published on March 9th, 2006 under , , , , , , , , , , , ,

Italian Translation for VoipStunt

Source: voip-tech.blogspot.com

I tried by best to traslate the VoipStunt software in my native language (Italian), waiting for a definitive multilanguage version.
To activate the italian language you have follow this simple steps:

  • Download this file (Italian.zip)
  • Extract it in the VoipStunt’s installation folder (Example: C:\Program Files\VoipStunt.com\VoipStunt)
  • Run VoipStunt and from the ‘Tools’ menù click on ‘Select Language’ -> ‘Load Custom Language File…’
  • Select then the file ‘Italian.lang’ previously extracted from the ZIP archive

The translation isn’t complete and/or perfect, for example the button aren’t translatable because they are in graphical format and there will be some bug for sure, if you find something wrong or you want to suggest me anything for a better translation you can mail me at: luke.net@gmail.com and suggest me the problem or the improvement you like.

If you like to give for free this file in your website, please mention and link my blogs:

http://voip-tech.blogspot.com
http://voip-italia.blogspot.com

Good VoIP to everybody.

Published on February 22nd, 2006 under , , , , , , ,

Free Calls with VoipStunt!

Source: voip-tech.blogspot.com

It’s not a dream or a fake… if you surf on the website www.voipstunt.com and you download the homonym software, VoipStunt, after a simple free registration (username and password), you will be able to call other VoipStunt registered users and make free landline phone calls over many countries.
This software is similar to Skype™, the audio quality is quite good.
I suggest you to test this interesting software, it’s free, just about 2 MB of download, and you will be able to call many countries for free.

Published on January 31st, 2006 under , , , , , , , , ,

Member of "Hype Media! Network"