No data
- This topic has 11 replies, 3 voices, and was last updated 10 years, 1 month ago by
fleure fleure.
-
AuthorPosts
-
September 16, 2013 at 9:16 pm #4693
Stuart Bercun
ParticipantI am using a 4 channel unit. The message is received per the log:
Sep 16 21:51:30 boa: recvlivelog: Non-polling message [index: 1]: 21:51:28, 13/09/16, +16093347339, Twentyone
Sep 16 21:51:30 boa: recvlivelog: Non-Polling delivery response from server: HTTP/1.1 200 OK
Sep 16 21:51:30 boa: recvlivelog: Non-Polling Receive API Delivery was successful.However the receive.txt only contains the delimiters as if no data was passed.
Any ideas?
September 17, 2013 at 8:20 am #4694Bryon Davis
ModeratorHi Stuart,
It’s difficult to tell with the limited information. It appears from the logs that the message Twentyone was received and delivered.Is this a new setup? Has it ever successfully delivered a message to your Non-polling server?
Regards,
BryonSeptember 17, 2013 at 8:35 am #4695Stuart Bercun
ParticipantThank you for the response.
This is a brand new installation.I am trying to determine if it is the Apache server that is causing the problem. I am now looking in the manual to see if I can simulate a message to the server, properly formatted, to see if it functions.
The messages are being received properly at the device, but something during the transmission to the Apache seems to be going awry.
September 17, 2013 at 8:45 am #4696Bryon Davis
ModeratorWe have some sample code on the FTP site. Try using the PHP sample code as a test. It is a simple program that uses Apache. The HowTo.rtf file explains how to use the sample code.
The PHP sample code it in the folder at the link below:
https://webfiles.multitech.com/engineering/sample-code/sms-finder/PHP/September 17, 2013 at 9:38 am #4697Stuart Bercun
ParticipantI should have been clearer.
I am using the sample code from the web site.
It is interesting that the receive.txt file IS being written, so I am comfortable the the php script is running. I believe that the $data is blank.
Can you point me to the format of the http syntax that the device sends Apache?
Many thanks.
September 17, 2013 at 10:04 am #4698Bryon Davis
ModeratorHere’s an example of the XML data that is sent:
XMLDATA=<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<Response>
<Msg_Count>1</Msg_Count>
<MessageNotification>
<Message_Index>1</Message_Index>
<ModemNumber>1</ModemNumber>
<SenderNumber>17637425555</SenderNumber>
<Date>13/09/03</Date>
<Time>16:16:01</Time>
<EncodingFlag>ASCII</EncodingFlag>
<Message>TestSMS00002</Message>
</MessageNotification>
</Response>Wireshark IP captures would show you the exact format that was sent and whether the message’s text was included.
September 17, 2013 at 11:24 am #4699Stuart Bercun
ParticipantExcellent, thank you.
I see that Wireshark is get a properly formatted message.It still appears that $data is blank in the sample ismsResponse.php.
I have not modified the code at all. To be sure, I copied the php from the zip and placed it in the directory. I know that it is being called because I see the creation of the receive.txt.
September 17, 2013 at 11:37 am #4700Bryon Davis
ModeratorWhat are the versions of Apache and iSMS are you using?
Perhaps there has been a change made in the Apache version you are using. I can try testing it and see if it works for me.
September 17, 2013 at 11:55 am #4701Stuart Bercun
ParticipantI am using
MultiModemâ„¢ iSMS
Web Management – Version 1.51.21and Apache version 2.44
Your help is greatly appreciated.
September 18, 2013 at 9:32 am #4702Stuart Bercun
ParticipantThe issue resolved itself.
Not sure why, but I am no longer getting empty fields.
Thank you for your help.
September 18, 2013 at 9:43 am #4703Bryon Davis
ModeratorHi Stuart,
Thanks for the update. Glad to here it’s working now.Regards,
BryonFebruary 6, 2015 at 9:22 am #6340fleure fleure
Participanthello all , i send a response to answer the Receive api message with this format :
XMLDATA=<?xml version=”1.0″ encoding=”ISO-8859-1″?>\r\n
<MessageNotification>\r\n
<ModemNumber>nnnnn</ModemNumber>\r\n
<SenderNumber>xxxx</SenderNumber>\r\n
<Date>08/03/10</Date>\r\n
<Time>09:05:30</Time>\r\n
<Message>Here is a test message</Message>\r\n
</MessageNotification>\r\nis this the good format please.
-
AuthorPosts
- You must be logged in to reply to this topic.