Closed GoogleCodeExporter closed 9 years ago
Issue 473 has been merged into this issue.
Original comment by T.Delenikas
on 22 Mar 2012 at 9:08
WARNING, i don't think this is working 100%.
I currently have the AsyncMessageProcessor + InboundPollingThread (actually
don't know if it's ok).
The messages are being received by the AsyncMessageProcessor, they are delete
from card: 'Autodeleting message at index: 1'. BUT they are not stored in the
Database.
Original comment by tiago.pe...@gmail.com
on 28 Mar 2012 at 2:37
The messages are only stored in when they are catched by the
InboundPollingThread.
What i've made, was override the messagesReceived in Database.java, to validade
that the message is unique, not stored in the database.
IF NOT EXISTS (SELECT * FROM [dbo].[smsserver_in] WHERE [originator] = @originator AND [message_date] = @message_date )
BEGIN
INSERT INTO [dbo].[smsserver_in] (...) VALUES (..)
END
Original comment by tiago.pe...@gmail.com
on 28 Mar 2012 at 2:41
--
The messages are being received by the AsyncMessageProcessor, they are delete
from card: 'Autodeleting message at index: 1'. BUT they are not stored in the
Database.
--
Hi - are you talking about the smsserver app?
Original comment by T.Delenikas
on 28 Mar 2012 at 7:29
Yes, I'm running the SMSServer, with the parameter -Dsmslib.serial.polling
Since "SMSLib behaves as if no modem is connected."
I would appreciate your help, since this solution is able to delete partially
received messages, that aren't being removed with the standard library.
Original comment by tiago.pe...@gmail.com
on 29 Mar 2012 at 9:56
Digging in the code, when using ModemGateway, the method:
readMessages(Collection<InboundMessage> msgList, MessageClasses msgClass)
is called in 2 places:
- AModemDriver.java - AsyncMessageProcessor.run()
- SMSServer.java - readMessages(), after which the Interfaces.messagesReceived() methods are called.
If the messages is caught in the first one, she won't be inserted in the
DataBase.
Original comment by tiago.pe...@gmail.com
on 29 Mar 2012 at 11:11
OK, just found MY problem, indeed I'm using the SMSServer, and in the 3.5.1
version the InboundMessageNotification, isn't used. So no treatment for the
AsyncMessageProcessor.
Uncomented the line:
Service.getInstance().setInboundMessageNotification(this.inboundNotification);
and Added in the loadConfiguration():
gtw.getGateway().setAutodeleteReceivedMsg(true);
Now, those messages caught in the AsyncMessageProcessor and
InboundPollingThread are treated (both call Interfaces.messagesReceived())
Thanks again for your help
Original comment by tiago.pe...@gmail.com
on 29 Mar 2012 at 4:46
Original comment by admin@smslib.org
on 1 Jan 2014 at 9:25
Original comment by thana...@smslib.org
on 26 Apr 2014 at 10:09
Original issue reported on code.google.com by
wim.stev...@gmail.com
on 20 Mar 2012 at 10:46