Author |
Post |
|
#1 Thu Jun 21, 2012 22:48, 148 months ago.
|
Member
Registered: Oct 2010
Location: New Caledonia
|
Hi all, For a specific case, I would like to simulate a received SMS that will be created then treated by eventhandler. The easiest way is to use the sendsms command but it will cost me 1 SMS to phone provider. So I'd like to know if I can create a file containing the SMS so it can be treated by eventhandler. As my eventhandler only use the From field and SMS content, I've tried to create a file in /var/spool/sms/incoming named GSM1.000001 with this content: but eventhandler doesn't look at it... (for sure if I tell eventhandler to test the file, it works : /usr/local/bin/smsd_eventhandler.sh RECEIVED /var/spool/sms/incoming/GSM1.000001 ) Is there a way to do this or must I send a SMS ? Thanks in advance for your time.
|
|
#2 Mon Jun 25, 2012 18:52, 148 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
A setting pdu_from_file is for this kind of purposes. To get the PDU, you need to enable store_received_pdu first. Message in file must be in PDU format, normal text will not work.
|
|
#3 Mon Jun 25, 2012 20:46, 148 months ago.
|
Member
Registered: Oct 2010
Location: New Caledonia
Topic owner
|
Thanks Keke ![;)](./templates/default/smilies/wink.gif)
|
|
#4 Wed Jul 25, 2012 18:59, 147 months ago.
|
Member
Registered: Jul 2012
Location: Russian Federation
|
Hello.
I cant understand how to use pdu_from_file. I defined pdu_from_file = /var/spool/sms/PDU.txt in the modem section, created this file with content:
PDU: 079153181111111106BC0C91531832547698609031314174216090313141842100
I start the sms service, but nothing appears in the incoming folder.
Please tell me what's wrong?
|
|
#5 Sun Jul 29, 2012 22:26, 147 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
tpom6oh, what check_memory_method your are using? This pdu_from_file only works with check_memory_method values 0 or 1.
|
|
#6 Mon Jul 30, 2012 21:11, 147 months ago.
|
Member
Registered: Jul 2012
Location: Russian Federation
|
I don't defined check_memory_method, so I think it has default value of 1.
|
|
#7 Sun Aug 12, 2012 11:42, 146 months ago.
|
Member
Registered: Jul 2012
Location: Russian Federation
|
I tried to define check_memory_method = 1, but nothing changed.
|