Phone service is pretty expensive in US compared to many other countries. So instead of paying lets use Asterisk+GVoice+CSipSimple. Since most of my time I spend at the office or at home, I am rarely outside of WiFi coverage. This way I get away with paying $2-3 per month for prepaid when I need to make/receive calls when you are outside of Wifi.
When you are done, issue:
This is not enough. You also probably want to make sure your Android phone keeps on looking for WiFi when the screen is off. So you need to:
You will need the following things:
- Google Voice account
- Android phone (CyanogenMod is recommended)
- Some Linux server, for Asterisk1.8. (Recommended: VPS. You can get OpenVZ hosting for as low as $3/mnth)
- Some WiFi coverage
- Some prepaid SIM card, for emergency situations when you are out of WiFi coverage. (I use T-Mobile prepaid)
How it works
Google Voice allows free incoming and outgoing calls in US and Canada. They do not provide any SIP service though. However, Asterisk provides SIP server and it can use XMPP channels to make/receive calls.
When phone losts WiFi coverage, Asterisk detects it and routes incoming calls to a regular cell phone number you provide. This solution does not use any data over 3G.
When phone losts WiFi coverage, Asterisk detects it and routes incoming calls to a regular cell phone number you provide. This solution does not use any data over 3G.
Installation & configuration
Google Voice account
- Set up Google Voice as normal.
- On your Settings page, make sure the only forwarded phone is your google account.
- On your "Calls" page, make sure:
"call screening" is diabled
"call id(incoming)" says "Display callers' number"
"call id(outgoing)" says "Display my google voice number" - Modify the rest to your liking
Asterisk Server
First lets install asterisk and download reference configuration files
# apt-get install asteriskThen:
# cd /etc/asterisk
# wget -nd -p embeddedwits.com/asterisk/extensions.conf
# wget -nd -p embeddedwits.com/asterisk/sip.conf
# wget -nd -p embeddedwits.com/asterisk/gtalk.conf
# wget -nd -p embeddedwits.com/asterisk/jabber.conf
# wget -nd -p embeddedwits.com/asterisk/codecs.conf
- edit gtalk.conf and put your username.
- edit jabber.conf and replace your username and secret fields.
- edit extensions.conf and put your backup SIM number in line 25.
- edit sip.conf and update your secret field.
When you are done, issue:
# service asterisk restart
Android phone
- Go to Google Play and install CSipSimple application.
- Run the application
- Menu->Settings->Activate Expert mode
- Easy configuration-> check "always available"
- Network-> check "Lock WiFi".
Check "UDP"
Uncheck "TCP"
check "Disable TCP switch".
Connection Keepalive->Wifi UDP keep alive -> enter 15
Network->For incoming calls - check all
Network->For outgoing calls- check all - Media settings:
Check "echo cancellation"
Echo mode - select "speex"
Voice audio detection - uncheck
Clock rate - select 8khz
Codec priority list per bandwidth - uncheck
Codecs - select "speex 8khz"
Micro amplification - change to 8dB
Speaker amplification - leave at 1dB - Settings->user interface:
Check "use partial wake lock" - Now you need to add sip server.
Go to main menu and click on the key icon.
Click "Add account"
Select "Expert",
type some account name, account id, server ip and, username and password.
Type * as "Realm"
Select "UDP" as transport. - Decide how you want the app to integrate with your dialing. This is up to you.
- Now CSipSimple should be able to register with your SIP server.
This is not enough. You also probably want to make sure your Android phone keeps on looking for WiFi when the screen is off. So you need to:
- Install "Advanced Wifi Lock Free" application
- Run the app, click "enabled" in settings
- Untick "enable timeout"
- Untick "Auto Wifi disable"
- Tick "foreground service"
Testing it out
Now you should be able to make and receive calls.
- One of the most important things is to make sure CSipSimple stays connected all the time. First, make sure your connection is not dropped. This usually happens due to NAT routers tables expiration.
On your VPS type:# asterisk -r android/android 66.201.46.98 D N 31965 OK (404 ms) 1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
- You might want to call echo test service to test your call quality. Echo service just echos everything you say back to you.
Add this line in your extensions.conf in [outbound] context :
exten => 107, 1, Dial(SIP/echo@iptel.org,,r)
Then dial "107" from your phone and check quality.
Unresolved issues
When making calls without Wifi coverage, your callerid is not your GV number
Unfortunately if you need to make a call outside of wifi coverage, you will obviously have to pay. Also, the called party will not see your google voice number, but your callid will be of your SIM card. You can somewhat mitigate that issue by hiding your caller id with your cell phone, but that is ugly. Somehow Google Voice Android application manages to make calls on "fake" numbers which google reroutes to the number you wanted and makes it show your google vocie caller id. I do not know how it works and if data connection is needed for that.
Battery usage
Now, battery usage is a problem.
This happens because of the following:
This happens because of the following:
- WiFi radio never sleeps
- Android system itself does not sleep
- When WiFi is lost, WiFi keeps on scanning
- When WiFi is connected, 3G connection is still kept unnecessary.
We do that only to be able to send UDP keepalives every 15 sec and answer asterisk's ping every 30 seconds. Perhaps we could in fact go to sleep at least for 10 seconds. This needs further investigation.
In my next post I will discuss the following issues:
- Asterisk 11 and improved google voice support
- SILK (skype) codecs.
I hope this post was useful. I would appreciate any comments and some ideas how known problems can be workarounded. Feel free to comment if you run into issues with installation or operation.
Nice blog..! I really loved reading through this article. Thanks for sharing such an amazing post with us and keep blogging... Well written article Thank You for Sharing with Us pmp training in velachery | project management certfication in chennai | project management training institute in chennai
ReplyDeleteAndrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download Now
Delete>>>>> Download Full
Andrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download LINK
>>>>> Download Now
Andrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download Full
>>>>> Download LINK 34
What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. competitive market
ReplyDeleteCannot download files from mbeddedwits.com/asterisk/
ReplyDeleteCan you re-post them?
thanks for sharing this information
ReplyDeleteMEAN Stack Training in BTM
MEAN Stack Training in Bangalore
RPATraining in BTM
RPA Training in Bangalore
Qlikview Training in BTM
Qlikview Training in Bangalore
Qlik Sense Training in BTM
Qlik Sense Training in Bangalore
Buy Tramadol Online from the Leading online Tramadol dispensary. Buy Tramadol 100mg at cheap price Legally. Buying Tramadol Online is very simple and easy today. Shop Now.
ReplyDeletemongodb training in chennai
ReplyDeleteoracle training in chennai
cloud computing training in chennai
aws training in chennai
Hey, Wow all the posts are very informative for the people who visit this site. Good work! We also have a Website. Please feel free to visit our site. Thank you for sharing.
ReplyDeleteBe Your Own Boss! If you're looking for a change in your work prospects, then let's prepare for your career from here!!!
Self Employment Women Development Information Technology Engineering Courses
Nice blog..! I really loved reading through this article. Thanks for sharing such an amazing post with us and keep blogging...https://doctorbehera.in/knee-replacement/
ReplyDeleteNice blog..! I really loved reading through this article. Thanks for sharing such an amazing post with us and keep blogging...
ReplyDeleteCompre documentos en línea, documentos originales y registrados.
ReplyDeleteAcerca de Permisodeespana, algunos dicen que somos los solucionadores de problemas, mientras que otros se refieren a nosotros como vendedores de soluciones. Contamos con cientos de clientes satisfechos a nivel mundial. Hacemos documentos falsos autorizados y aprobados como Permiso de Residencia Español, DNI, Pasaporte Español y Licencia de Conducir Española. Somos los fabricantes y proveedores de primer nivel de estos documentos, reconocidos a nivel mundial.
Comprar permiso de residencia,
permiso de residenciareal y falso en línea,
Compre licencia de conducir en línea,
Compre una licencia de conducir española falsa en línea,
Comprar tarjeta de identificación,
Licencia de conducir real y falsa,
Compre pasaporte real en línea,
Visit Here fpr more information. :- https://permisodeespana.com/licencia-de-conducir-espanola/
Address: 56 Guild Street, London, EC4A 3WU (UK)
Email: contact@permisodeespana.com
WhatsApp: +443455280186
The Article is pretty good and very informative , Keep posting.
ReplyDeleteAndrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download Now
ReplyDelete>>>>> Download Full
Andrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download LINK
>>>>> Download Now
Andrey'S Blog: How To Call For With Google Voice, Android Phone And Asterisk >>>>> Download Full
>>>>> Download LINK
Do you want to know about Zolotova biography, her early life, net worth, age, boyfriend, career, real name, and relationship status?
ReplyDeletehttps://bayanlarsitesi.com/
ReplyDeleteTokat
Kastamonu
Tekirdağ
Gümüşhane
GLİ
Uşak
ReplyDeleteAnkara
Adıyaman
Hatay
Şırnak
K4E6
izmir
ReplyDeleteErzurum
Diyarbakır
Tekirdağ
Ankara
M8O2O
show
ReplyDeletewhatsapp ucretli show
EL6URU
maraş evden eve nakliyat
ReplyDeletemaraş evden eve nakliyat
izmir evden eve nakliyat
konya evden eve nakliyat
erzurum evden eve nakliyat
N4T10L
CE8C0
ReplyDeletemagnet
Paribu Borsası Güvenilir mi
Coin Nasıl Alınır
Coin Kazma
Coin Nasıl Üretilir
Btcturk Borsası Güvenilir mi
Coin Nasıl Çıkarılır
Bitcoin Oynama
Bitcoin Çıkarma
2E0D9
ReplyDeletediyarbakır canlı ücretsiz sohbet
trabzon canli sohbet chat
Bartın Sohbet Muhabbet
sohbet
kayseri telefonda kadınlarla sohbet
telefonda kızlarla sohbet
Antep Telefonda Sohbet
ardahan parasız sohbet
osmaniye rastgele canlı sohbet
6AFE0
ReplyDeleteShibanomi Coin Hangi Borsada
Twitter Trend Topic Satın Al
Spotify Takipçi Hilesi
Kripto Para Kazanma
Linkedin Takipçi Hilesi
Lovely Coin Hangi Borsada
Mexc Borsası Kimin
Youtube Beğeni Hilesi
Btcturk Borsası Güvenilir mi
RGRTHBTGYYJY
ReplyDeleteشركة كشف تسربات المياه بالجبيل
شركة تنظيف بخميس مشيط W6ye0IWky4
ReplyDeleteشركة تنظيف سجاد بخميس مشيط KA7GhQ1mv8
ReplyDeleteشركة تسليك مجاري بالاحساء nLKcS5DG0u
ReplyDeleteشركة صيانة افران 33uC19vCl6
ReplyDeleteشركة مكافحة حشرات بال
ReplyDeleteشركة تنظيف كنب بالاحساء PDjroy5ySb
ReplyDeleteشركة عزل اسطح بالهفوف Z0I4YgnpzG
ReplyDelete