Click to Call on stage with Sinatra, Rack and Passenger
I have been preparing an Amazon Machine Image (AMI) with Adhearsion, Asterisk and all of the available components installed and pre-configur
ed to be made public soon. For the AMI I decided to get the Sinatra web app included with the Click To Call component up and running as a daemon.
I used a combination of Rack and Passenger, since they make the process so easy and production ready. To this end I have updated the README and Click To Call component I covered in my previous blog post to include the how to and Rack configuration file required.
To get this up and running do the following:
- Install the Apache Webserver
- sudo gem install rack
- sudo gem install passenger (follow instructions here for compiling the Apache module)
Copy the files and directories in ~ahn-project/components/restful_clicktocall/web directory to the appropriate file system location for your Apache web server. Add these virtual host settings to your Apache configuration (ie – /etc/httpd/conf/httpd.conf):
<VirtualHost *:80> ServerName ec2-174-129-89-20.compute-1.amazonaws.com DocumentRoot /var/www/restful_clicktocall_web/public </VirtualHost>
Change line three to reflect your configuration. Restart your Apache web server and then connect to the site you configured. For more options I recommend referring to the Passenger documentation found here.
Stay tuned for the upcoming Amazon Machine Image!
RSS





have you taken a look at voxilla’s asterisk ami? not sure if it would be a good starting point, but its got some cool features, like auto-generate passwords.
Great point, and that is exactly what I am doing!
Has anyone created an Ubuntu equivalent of the Voxilla AMI?
Do you plan on putting the AMI out there for download?
Thanks,
Brian
Brian, yes, the Amazon Machine Image is 80% done. Just all of the testing right now before I make it a public image. Like always, time is becoming thinner, but I hope to have it out soon.
Good stuff!! I can’t wait to give it a go
One other question. The Voxilla AMI uses the 1000hz
Has Amazon given any indication when the 1000Hz kernel,
aki-9b00e5f2 (32 bit) and aki-9800e5f1 (64 bit), will be available in
the eu-west data centre?
Cheers,
Brian
Brian, that I do not know at the moment. Although you might post on the AWS developer forums.
Also, the image is not Ubuntu that I am building, but using what Voxilla is of course.