DastanIqbal / google-voice-java

Automatically exported from code.google.com/p/google-voice-java
0 stars 0 forks source link

Not able to send SMS in India #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Voice voice = new Voice(username, password);
2. voice.sendSMS("+911234567891", "Test");
3.

What is the expected output? What do you see instead?
I m not able to receive message on my phone

What version of the product are you using? On what operating system?
i m using google-voice-java-1.8-java5.jar and json.jar

Please provide any additional information below.
console prints

https://www.google.com/accounts/ClientLogin - OK
Logged in to Google - Auth token received
https://www.google.com/voice/ - OK
Successfully Received rnr_se.

and no message is sent on the phone

Original issue reported on code.google.com by nit2...@gmail.com on 19 Feb 2012 at 8:30

Attachments:

GoogleCodeExporter commented 8 years ago
Doing

String st = voice.sendSMS("+911234567891", "Google Test");
System.out.println("After Message"+st);

prints

After Message{"ok":false,"data":{"code":2046}}

Original comment by nit2...@gmail.com on 19 Feb 2012 at 2:50

GoogleCodeExporter commented 8 years ago
I do not know that error code per se, but you cannot send SMS beyond USA and 
Canada to the best of my knowledge, and I am not even sure about Canada

Original comment by malone.j...@gmail.com on 21 Feb 2012 at 6:51

GoogleCodeExporter commented 8 years ago

Original comment by malone.j...@gmail.com on 21 Feb 2012 at 6:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
was the issue related to error code 2046 solved? if yes, how? Thanks

Original comment by said.zak...@gmail.com on 21 Jun 2012 at 4:06

GoogleCodeExporter commented 8 years ago
did you figure what this error means?

Original comment by SyncaT...@gmail.com on 28 Jun 2012 at 8:01

GoogleCodeExporter commented 8 years ago
My best guess is you tried sending to a number outside of USA and Canada and it 
caused the error.  This is a google voice related limitation and not an API 
problem.  

Original comment by malone.j...@gmail.com on 8 Jul 2012 at 5:15