shyamalayathish / missed-call-otp

Automatically exported from code.google.com/p/missed-call-otp
0 stars 0 forks source link

Validation Code needs 0 before code. #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I get call I get call from +1234567xxx

API Response : {
"Status":"Success",
"Result":"sid531ca68a4ed556.62158460"
}

But when I try to verify it fails.

On logging the verification call I see the verification code is 

 mOTP Validation API Response : {
"Status":"Success",
"Result":"01234567752"
}

Why is there that additional 0 ? This is failing on my calls. Please verify

Original issue reported on code.google.com by kinshuk1...@gmail.com on 9 Mar 2014 at 5:47

GoogleCodeExporter commented 9 years ago
Hi Kinshuk,

This is not an issue, Perhaps it is more dependent on Telco Operator and User's 
device.
The simplest example is,
In Bangalore, I receive caller id as +1234567xxx ( on Vodafone, KA )
Whereas, In Mumbai, on the same number, I receive caller id as 001234567xxx 

So it is specific to the operator, What I can suggest is, you can take last 10 
digits of user input and compare it with last 10 digits of the mOTP Response. 
This should always solve the issue.

Original comment by team.m...@gmail.com on 9 Mar 2014 at 5:56

GoogleCodeExporter commented 9 years ago
Thanks for the quick update. Made changes on my end to handle all cases.  But 
the point is the the api response shouldnt send '0' appended before, coz that 
is wrong in any case!  

This specific response was for a bangalore airtel number

Original comment by kinshuk1...@gmail.com on 9 Mar 2014 at 6:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Kinshuk,

Sure, We would consider it and change immediately.

Thanks for raising concerns. It helps us make API better.

- Edit:
We have modified code from our end as well.

Original comment by team.m...@gmail.com on 9 Mar 2014 at 6:29

GoogleCodeExporter commented 9 years ago
Just compare last 10 characters :)

Original comment by poo...@gmail.com on 9 Aug 2014 at 8:58

GoogleCodeExporter commented 9 years ago
Yes, I am currently doing that only.

Original comment by kinshuk1...@gmail.com on 9 Aug 2014 at 9:08