2-Way Received SMS Search Search

Now SMS/MMS Gateway » MMS & SMS Technical Discussions (not for Now Product Support) » 2-Way Received SMS « Previous Next »

Author Message
Marrakech
New member
Username: Walou

Post Number: 4
Registered: 11-2007
Posted on Saturday, January 19, 2008 - 01:05 am:   

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…

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to register with this discussion board.
Password:
Options: Automatically activate URLs in message
Action:

Search Search Tree View Tree View   Home Home
Login Login / Register Topics Topics Search Last 1|3|7 Days   Previous Page Previous Next Next Page

© Copyright 2002-2008 by Now Wireless Limited
Airport House, Purley Way, Croydon, London, CR0 0XZ, UK
UK Tel: +44-20-8286-8080 US Tel: +1.410.833.8711
email : nowsms@now.co.uk