[Help] Incoming SMS

Hi everybody!
If there are several users, and if SMS arrives, how to correctly address it to the user’s inbox?

For additional information:

Thank you advance.

Jamshid Tursunov

By assigning a sender_id to user or, if be the case, modifying playsms to search for user that recently sent SMS to number is responding