The service hangs when there are incorrect numbers

Dear!
Now our playsms service accepts wrong numbers and the service freezes(hangs). And we had to kill file in /var/spool/gammu/outbox. And restart.
The service freezes when there are incorrect count of numbers or string or symbols.
Correct phone number in our country is +998913301367 - (11 - numbers)
Not correct phone numbers are

  1. +99890990143646 (<>11 numbers)
  2. +9989133013ad (string)
  3. +9989133013$&#@ (symbols)

We have to get err status 222 for example if users sent incorrect numbers.
We have real users and it is very important fix this.
Thank you!
Cordially Gayrat.

Can we set validation in playsms, and than playsms would sent only right numbers, and there would not be such problem?

Have u asked gammu developers or communities how to fix that issue ?

I mean beside having another system (playSMS) verify/validate/sanitize input data (in this case the number)

Anton

Do you think that it is good idea to do validation in gammu? Does playsms support number validation?
Cordially Gayrat

Its not just validation but gammu should not be dead/hang just because a user send wrong number, it should just fail the sending, returns an error as if the sms status is fail

In playSMS the number should be numbers no letters, theres a function that does the valodation, if it is its a bug Ill fix it

here is the check:

here is the function:

Anton