facing problem to receive unread Messages

Home Forums iSMS facing problem to receive unread Messages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2614
    mohammad Siddiqui
    Participant

    Hi,

    I’m facing problem to receive unread Messages through API, I have sent 2 messages from my cell and received that message through API after 20 minutes, then send more 2 messages from my cell and received these that messages after 30 minutes I thought might be server is responding slow but now I’m unable to receive more messages either I have sent few more messages from my cell for testing purpose .

    Here is my code could you help me out… What s wrong in my code or command

    URLAddress = “http://192.168.71.39:81/recvmsg?user=admin&passwd=admin”

    oHTTP = CREATEOBJECT(‘MSXML2.ServerXMLHTTP’)

    oHTTP.Open(“GET”, URLAddress, .f.)

    oHTTP.send

    IF oHttp.status = 200

    CheckMSG = oHTTP.Responsexml.SelectSingleNode(“//Unread_Available”).text

    IF VAL(CheckMSG) =<0

    MESSAGEBOX(“No New Messages are available .”,0,”System Message”)

    RETURN .f.

    ELSE

    cXML = oHttp.responseXML.xml

    STRTOFILE(cXML,”SMSRec.xml”)

    XMLTOCURSOR(“SMSRec.xml”,”SMSRec”,512)

    ENDIF

    ELSE

    MESSAGEBOX (” SMS Server is Not Responding.”,0,”System Message”)

    ENDIF

    Thanks & Regards

    #3317
    Bryan Tran
    Moderator

    Hi Mohammad,

    1. I would try to send a couple sms from the cell phone to the iSMS device and look at both – sms live log and the inbox to verify that the sms messages that you have sent are coming in to the iSMS device.

    2. Once you have confirming this, then you need to run a wire shark on the PC that had the script posted running. Then look at the wire shark capture and see if it gives you any clues…

    Regards,

    BT

    #3318
    Sujatha Patel
    Participant

    Hi Mohammad / Bryan,

    Looks like, this coding may be quite useful to me. Can you please advise how to execute this coding? Whis application to run this coding?

    Thanks and Regards

    Suja

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.