SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Mon Mar 01, 2021 00:14
SMSTools3 Community » Help and support Bottom

[answered] Issue with eventhandler on smsd 3.1.14

  This topic is locked

Page:  1

Author Post
Member
Registered:
Jun 2009
Location: Russian Federation
Operating system name and version: Windows XP SP3
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Siemens MC 35
Interface: serial

I have found new issue after upgrading to smsd 3.1.14 from 3.0.10.
I have modem with zero-balance sim in it.
When I try to send sms via the modem, eventhandler is called with SENT argument. This means that smsd assumes message as sent successfully. But indeed sms is not sent. Just after this event , sms notification is received by the modem from GSM Provider about zero balance : "An SMS you tried to send or receive has failed as you are out of credit for that message type. Recharge now to allow future SMS messages to be sent or received."

Please see log below


I see such issue for the first time.
Any advice?!

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
There is no difference between 3.0.10 and later versions in this case.

SMS was delivered to the Service Center and smsd got a reference number for it, in your case 25. Service Center did not tell that it cannot deliver SMS to the recipient, instead it told that the sending was OK. Some other operators may give an error message in that kind of case, like "Short message transfer rejected", or something else, but it depends on the operator.

You could try to use the modem setting report = yes, together with the global setting sent = /var/spool/sms/sent and the script smstools3/scripts/eventhandler_report. I assume that when SMSC will not deliver message, it also does not return a status report which says that the SMS is delivered to the phone. You can use this information to detect which messages are delivered and which are not, after message about zero balance is received.

See also this topic: Sample config and script for regular_run and balance of prepaid SIM using USSD, it may be very useful in your system.

Member
Registered:
Jun 2009
Location: Russian Federation
Topic owner
Keke, thanks again!

Most of our modems use non prepaid sims. Because of this I see the issue for the first time.
Will think of possible solution.

Thank you for the link ;)

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Okay, if the invoice of postpaid SIM is not paid, and SIM is closed, you may get the "+CMS ERROR: 302 (Operation not allowed)". This is stored to the failed SMS file as a Fail_reason. Also an alarmhandler is called, and alarmhandler could generate some alert if this kind of error is shown.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.