Russian  English  All projects

Revision of Drupal module SMSC



Task: Development of Drupal module https://www.drupal.org/project/smsc with the aim of obtaining the possibility to verify the phone number with code number of the incoming call, not SMS.

---

How it works now:

After installing and configuring the module SMSC in a pair of modules Framework SMS Mobile Number for the entity the user can create a field of type Mobile Number and display it to the user registration form, thus having the opportunity to verify the user number with the code in the incoming SMS (https://smsc.ua/api/http/send/sms/#menu)


As required:

You want to instead of incoming SMS with the code, the user receives an incoming call, where the verification code is contained in the phone number. This feature of the service, the SMSC is described in their API https://smsc.ua/api/http/send/voice/phone_code/#menu


Whats the nuance:

The current method of operation of the smsc module, as I understand it, involves the generation of random code at the same site in Drupal, maintaining side code in Drupal session, the guest, the request is sent to the SMSC with that ID, and then compare the code from the SMS entered by the user in the form ID from the session.

But please note that when sending code to phone number (https://smsc.ua/api/http/send/voice/phone_code/#menu) You have no way to specify arbitrary code in the query as in the first case. A random code is generated on the side of the SMSC and returns a response to the request.

That is in fact need to work like this:

Website Drupal sends a request for the code in the call to the SMSC

- C receives the response code, which is returned to the SMSC and keeps it in the session

- The user gets a call, takes from the code enters in the form and compares the entered code with the code from the session.


---
Or accept any other option to verify the phone number when the user registers with any other set of modules, but which would have used the service, the SMSC and its method of verification through call (https://smsc.ua/api/http/send/voice/phone_code/#menu) - even created from scratch a module with or without dependence on any other modules.


Interested in time and cost.

Thank you!

25.07.2020 15:31



 Answers freelancers