Amazon ec2
From FreeSWITCH Wiki
Contents |
[edit]
Getting Started
There is not much difference between running on Amazon Elastic Cloud than any other linux server, but here are a few things to keep in mind.
[edit]
Opening Firewall Ports
[edit]
SIP
ec2-authorize default -P udp -p 5060
[edit]
RTP
ec2-authorize default -P udp -p 16384-32768
The RTP port range given should match your configuration in switch.conf.xml.
[edit]
Sofia External IP Config
- Find the external publicly routable IP of your EC2 instance.
- Modify freeswitch.xml to add this parameter
#set "external_rtp_ip=82.46.40.224"
where the IP matches your publicly routable IP. Instead of hardcoding the IP you can also use a stun server, eg
#set "external_rtp_ip=stun:stun01.sipphone.com"
- Modify sofia.conf.xml and add
<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
<param name="ext-sip-ip" value="$${external_rtp_ip}"/>
[edit]
External Links
- Amazon EC2 subwiki - getting started guide and links to documentation
[edit]
FAQ
[edit]
Q: What distro should I use?
Its up to you! However, some recommend CentOS.
[edit]
Q: Are there any public AMI images with FreeSWITCH pre-installed?
Ans: unknown. However its not that hard to start from a base image and install FreeSWITCH.
