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. Sun May 19, 2024 20:23
SMSTools3 Community » Help and support Bottom

[answered] failed eventhandler

  This topic is locked

Page:  1

Author Post
Member
Registered:
Oct 2009
Location: Latvia
Operating system name and version: Debian
Version of smsd: 3.1.6
Smsd installed from: sources
Name and model of a modem / phone: Nokia 30
Interface: serial with USB adapter

Did I understood right that if I have some problem with evenhandler smsd no more calls it?

I had such situation and after that none of incoming messages was processes, just stored.
For me it would be better to either try some preset times to use eventhandler and then if problem still persists stop using eventhandler.
Or another configuration: just stop smsd, because thet messages are left in the modem and could be processed latter by restart.

Did I understood right that I can use setting "pdu_from_file" not only for tests, but also in such cases like descripted above to just process by eventhandler, that was no processed.

brgds
Janeks

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Janeks wrote
Did I understood right that if I have some problem with evenhandler smsd no more calls it?

No, smsd will call it regardless of what happened last time. In the log there is a line when an eventhandler is called, and there is also a return value after processing is done. If the eventhandler does not return ( = infinite loop in eventhandler or something like that ), it can be detected from the log.

Janeks wrote
I had such situation and after that none of incoming messages was processes, just stored.

This sounds strange. Hopefully you have a log with loglevel = 7, from it this issue can be examined. You could show the log here using Private tags, if necessary.

Janeks wrote
For me it would be better to either try some preset times to use eventhandler and then if problem still persists stop using eventhandler.
Or another configuration: just stop smsd, because thet messages are left in the modem and could be processed latter by restart.

I think that if there is some problem with eventhandler, retry will not help.

Because smsd does not know what eventhandler is actually doing, it can't just stop using eventhandler, or stop itself. I have to think this issue more later, but generally taken smsd cannot just stop, and also there is not much space in the SIM/ME to store received messages.

Janeks wrote
Did I understood right that I can use setting "pdu_from_file" not only for tests, but also in such cases like descripted above to just process by eventhandler, that was no processed.

Yes, it can be used like that. Notice that this feature is available only with check_memory_method values 0 and 1.

Member
Registered:
Oct 2009
Location: Latvia
Topic owner
O'k - than it seems to be failure of my eventhandler.
It looks like it not exits on failure. I got some messages like " ... already runing ...".

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
If your eventhandler does not return, there is not much to do (:.

But while you are developing your eventhandler, take a look at the version history. A new version 3.1.7beta might be useful. Even with a fully tested eventhandler, something can happen later while it's running and those troubles are not very easy to detect. This version will print to the log any output/errors from the script and will help to fix troubles. In fact, here in the forum has been several support issues that could have been solved very easily with this kind of feature, that's the reason why I included this feature in the smsd.

  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.