Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
stingray17
Old
#191  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jul 2012
Thumbs up Got it working - Thanks! Also some tips/updates

Thanks a lot, I got everything working. Free phone system until 2014 and I learned some things along the way! Nice

For reference here is my configuration:
* Amazon EC2 t1.micro instance w/ Ubuntu, Linux kernel 3.2.0
* Asterisk 11.3.0
* Google Voice account currently associated with old cancelled landline
* SIP clients used: Twinkle, Ekiga, 3CXPhone for iPhone

One tip - I don't think you need to compile a new kernel yourself to get 1000HZ timing - instead you can install the premade "low latency" kernel which already has this setting ("apt-get install linux-lowlatency"). You need to manually edit /boot/grub/menu.lst so that the first/default entry refers to the new lowlatency kernel.

It also seemed like I could effectively control the 1:1 NAT firewall settings from the EC2 web console and provide adequate security without bothering to configure ufw, although I can see how it might be better to properly configure that too.

One problem I had is that I was getting "Illegal Instruction" errors from Asterisk and it would crash. What was going on is that Asterisk was being compiled to use AVX instructions which GCC thought were supported on the CPU, but the EC2 micro instance did not actually support AVX instructions. I found this is a known issue other people have had with EC2 instances. I worked around it by changing the Asterisk build options ("make menuconfig" / "Compiler Flags") so that "BUILD_NATIVE" was disabled, recompiled and voila, no more crashes!

I still haven't figured out how to make the PPTP VPN work right; with Windows and some other clients it fails to negotiate encryption. I'm sure I'll get that working eventually but meanwhile not too worried about it.

Thanks again to errorcod3 and jhax01 for putting this together!
 
codesplice
Old
#192  
codesplice's Avatar
Senior Member
Thanks Meter 827
Posts: 2,528
Join Date: Jun 2008
Location: Huntsville, AL, USA
Just wanted to chime in and thank errocod3 and jhax01; I decided to tinker a bit with the whole VoIP thing again, and was able to get Asterisk up and running with no problems (thanks to all of the good information posted here).

Thanks guys!
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...