- Oct 12, 2007
- Reaction score
Incredible PBX implementations include a separate Python-based component called pygooglevoice that allows SMS messaging using a Google Voice account. You’ll find the SMS Dictator and SMS message blasting scripts in the /root folder of your server. Be advised that the gvoice script used to send these SMS messages does NOT use OAuth 2 authentication and requires your traditional Google Voice account name and password. Because it uses plain text, you probably will experience failures using gvoice unless your PBX is housed on the same server from which you traditionally access this account. The workaround is to do the following immediately before attempting to use SMS messaging with Google Voice. Using a browser, log into the Gmail account that corresponds to the account you plan to use for SMS messaging. In a separate tab of your browser while still logged into Gmail, go to the following link and enable Less Secure Apps for this account. In a third tab, go to the following link and activate the Google Reset Procedure. Now, from the Linux CLI on your PBX, attempt to login to gvoice using your Gmail account name including @gmail.com AND your plain-text Gmail password. If it succeeds, you’re good to go and can now use the SMS messaging tools. Type quit to exit from gvoice. Google normally follows up insecure access attempts with an email requesting that you confirm this is a "safe IP address" for your account. If you fail to respond to that email, you probably will need to repeat this exercise every time you attempt to use SMS messaging.
Did you follow the two troubleshooting tips from the link above? gvoice uses plain text passwords. If you want to use it, you're going to have to (regularly) activate the Google Reset Procedure.
urllib2.HTTPError: HTTP Error 400: Bad Request
I simply need a command line tool to send sms's. So what you're saying is that I would no longer be able to use my Google Voice account at this point?All SMS messaging requires a DID for tracking. Vitelity, VoIP.ms, and Skyetel (and others) offer easy-to-use SMS messaging with Asterisk. Kiss Google goodbye.
Ok. If I sign up for a DID with VOIP.ms for only out going SMS, what command line script to you suggest for sending, bash or PHP?Using Google Voice reliably for SMS messaging now range between slim and none. For all intents and purposes, Google Voice is dead on the Asterisk platform.
I just tried the script and it appears not to work, no output or anything...