Ok :)

First of all, you **M U S T** get the latest smslib from the repository 
(trunk -  http://smslib.googlecode.com/svn/smslib/trunk/). The v3.5.1 has a 
nusty bug (if you are interested, more 
here: http://blog.smslib.org/2011/05/orphaned-part-detection-issue.html and 
here: 
http://blog.smslib.org/2011/05/fix-for-orphaned-part-detection-issue.html).

Then, checkout the " *HOURS_TO_ORPHAN* " setting (
http://smslib.org/doc/smslib/parameters/) and implement the *
IOrphanedMessageNotification *callback (
http://smslib.googlecode.com/svn/smslib/trunk/src/java/org/smslib/IOrphanedMessageNotification.java).
 
Once a "lonely" message part is aged more than the setting, the callback is 
called where you can call "deleteMessage()" and get rid of it.

On Wednesday, March 7, 2012 2:19:53 PM UTC+2, JordanThompson wrote:
>
> I think you are exactly right.  What I can I do about this? If the sender 
> never sends the rest of the message, or it is stuck in the network 
> somewhere, how can I clear it?
> thanks!
>
> Jordan
>
> On Wednesday, March 7, 2012 3:22:07 AM UTC-5, T.Delenikas wrote:
>>
>> Hi,
>>
>> Are you able to check whether the "stuck" message is a full message or a 
>> part of a multi-part message?
>> I would bet that it's must be a single part of a multipart message that 
>> was never received completely.
>>
>> Can you check whether this is the case?
>>
>> On Tuesday, March 6, 2012 4:56:39 PM UTC+2, JordanThompson wrote:
>>>
>>> I am successfully using SMSLib to send and receive messages on a Zoom 
>>> USB modem.  
>>> Occasionally, a message will get stuck on the SIM and the only way to 
>>> get it unstuck is to use the Zoom software that came with the modem to 
>>> delete it.  
>>> When a message gets stuck, all new messages accumulate behind the stuck 
>>> message.  Once the one message has been deleted, the accumulated messages 
>>> continue to come in as normal.
>>> I have tried various methods in the SMSLib to determine when this 
>>> happens, but nothing I have found will even tell me that this state has 
>>> occurred.  My only solution is to assume this is the problem (when I stop 
>>> receiving messages) and to launch the Zoom app and delete the message.
>>> Any suggestions?  Even if I could just detect that this has happened, I 
>>> could alert the user and it would be better than nothing!
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/NiZFLz2Fq8EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to