Amazon ec2

From FreeSWITCH Wiki

Jump to: navigation, search

Contents

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.

Opening Firewall Ports

SIP

ec2-authorize default -P udp -p 5060

RTP

ec2-authorize default -P udp -p 16384-32768

The RTP port range given should match your configuration in switch.conf.xml.

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}"/>

External Links

FAQ

Q: What distro should I use?

Its up to you! However, some recommend CentOS.

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.

Personal tools