i’m used this method with mikrotik ROS 6.32 and GSM modem huawei E220.
client request username and password can sending SMS to Mikrotik with command “request” or other.
then put phone-number in inbox with schedule each 1minute to find inbox keyword “request” after put phone number make using user with CLI.. sory i’m bad english and cannot give code/script cause using not smartphone.