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.