Author |
Post |
|
#1 Thu Aug 15, 2013 16:39, 137 months ago.
|
Member
Registered: Dec 2010
Location: United States of America
|
Operating system name and version: Ubuntu 12.04.1 LTS Version of smsd: 3.1.15 Smsd installed from: This site Name and model of a modem / phone: Option ICON 322 Interface: USB Towards the end of this event handler I want to put the date, time stamp and modem in the GET part of the URL string along with the from number and message.
|
|
#2 Sat Aug 17, 2013 17:33, 137 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
All headers from the message file are available in the array, so you could use something like this: if ($sms_type == "RECEIVED") { $to_exec = "wget -q \"http://localhost/sms/index.php" ."?sender=" .$sms_headers['From'] ."&received=" .$sms_headers['Received'] ."&modem=" .$sms_headers['Modem'] ."&message=" .urlencode($sms_message_body) ."\" -O /dev/null"; exec($to_exec);
} 'php' Syntax Highlight powered by GeSHi
|