| 2-Way Received SMS |
| SMS & MMS Technical Forum » MMS & SMS Technical Discussions (unsupported) » Archive through November 12, 2008 » 2-Way Received SMS | « Previous || Next » |
| Author | Message | |||
| Marrakech
New member Username: Walou Post Number: 4 Registered: 11-2007 |
Hi all, i cann't up now get the http delivery report of an SMS and store it into an sql database. i'm sending sms via http as bellow: http://127.0.0.1:8800/?user=testuser&password=testpass&Text=MyMessgae&PhoneNumbe r=%2B3311111&receiptdelivered=yes "testuser" and "testpass" are the account parameters for web interface access. I also defined an 2-Way command to execute: http://localhost:8800/2-way.php?sender=@@SENDER@@&message=@@FULLSMS@@&DateR=@@MS GDATE@@&TimeR=@@MSGTIME@@. Then UNcheck the "Command to returns reponse text". Under the SMSGW file, i indicate the vlaue : TrackHTTPReceipts=Yes…. I the SMSIN file, every ting sames to be ok « stat:DELIVRD err:000 » But, alwayse the same probleme, impossible to execute the 2-way and store the result into an sql database. This is an example of the 2-way.php script : <? // Fill default values // Update BDD $champs = array( array('MessageID', $_REQUEST['messageid']), array('Recule', $_REQUEST['MSGDATE']), array('heurereception', $_REQUEST['MSGTIME']), array('sender', $_REQUEST['sender']), array('message', $_REQUEST['message']), ); $_SESSION[SMS]['CLIENT']['id']=xxx; $A = new SQL('2way'); $A->updateSql($fields," id='{$_SESSION[SITE_CONFIG]['CLIENT']['id']}' LIMIT 1 "); ?> I also tried this one too : <? header ("Content-Type: text/plain"); if (isset($_REQUEST['sender'])) { if (isset($_REQUEST['text'])) { echo "I recieved your message : " . $_REQUEST['text']; } else { echo "ERROR : 'text' parameter missing\r\n"; } } else { echo "ERROR : 'sender' parameter missing!\r\n"; } ?> Plz, really need a big help… | |||
| Erida Shkira
New member Username: Erida Post Number: 3 Registered: 09-2008 |
Hi I have the same problem as Marrakech can you please give me a script written in asp.net Thanks | |||
| Des - NowSMS Support
Board Administrator Username: Desosms Post Number: 129 Registered: 08-2008 |
For NowSMS support, please visit one of the "Product Support Only" areas of the forum. I'm sorry, but we don't visit this area of the forum as often. The original question is a bit stale at this point ... but the correct URL parameter to submit a message with a receipt requested would be "&ReceiptRequested=Yes", NOT "&ReceiptDelivered=Yes". -- Des NowSMS Support | |||
|

