3
votes

I wanted to know whether asterisk 11 on amazon EC2 would be a good idea so that it can handle more than 100 concurrent calls? If yes then which type of instance will work nicely? I have a good amount of business logic and application logic as well with the asterisk. I wanted to know how would be the performance with EC2 instance? is it recommended to use EC2 instance with asterisk?

Thanks

2

2 Answers

4
votes

amazon ec2 is bad idea for voip.

It have NAT and not perfect timing. Also it not so hi perfomance.

100 calls require instance like c1.xlarge/ m1.xlarge/c3.large - ECU 8+.

On c1.medium asterisk usualy can handle 50-80 calls depend of dialplan and your skill.

Also note, that bandwidth on ec2 is VERY costly.

I not recomend use ec2 instances for asterisk, unless you need have any of following:

  • on demand application with failover setup.
  • payed per minute/scalable application(for example planned conference service)
  • need posibility launch instance on crash and/or other infrastructure already on EC2.

In all other cases much better get 2 dedicated servers and setup failover for thoose servers. You will get much more perfomance for similar cost.

3
votes

A successful deployment of Asterisk on Amazon EC2 requires that you enable three critical ports on EC2's firewall. Without them, Asterisk will not work. Thus, the following ports are key to passing RTP packets (for voice) and SIP signaling (for devices, DTMF codes, etc.):

5060 (UDP)

4569 (UDP)

10000-20000 (UDP)

22 (TCP) (You'll need this for SSH access)

Use Eric Hammond's Ubuntu AMI (Amazon Machine Image), ami-ce44a1a7, and the 1000HZ AKI, aki-9b00e5f2. This AKI is important because it is specifically compiled for VoIP applications such as Asterisk. Any AKI (Amazon Kernel Image) other than one set at 1000HZ will produce undesirable results in voice quality and functionality.

TIP: Asterisk 1.4.21.1 is an older, but stable version. Supplement the version number with a newer one if you prefer