Tracking additional SMS http values

Tracking additional SMS http values SearchSearch
Author Message
Marrakech
New member
Username: Walou

Post Number: 23
Registered: 11-2007
Posted on Friday, September 19, 2008 - 04:22 pm:   

Hi Bryce, Des, All

I have a serious problem: I need to add a variable (eg CampId) in additional http url that i send to nowsms and then recovered it (CampId) via 2way.
i use "Routesms" SMPP connection.

i tried this:
1/ IN SMSGW.INI :
[SMSGW]
ExtraHttpArgList=CampId,cidM

2: Send http request :
http://ip/test_CampId.php?User=test&Password=test&PhoneNumber=+111111&Text=Test& CampId=142&ReceiptRequested=Yes&SMSCRoute=RouteSms

3: into the "test_CampId.php" script :

<?php

$fp = fopen( "./logs/test_send.txt", "a" );
fputs( $fp, "Message Confirmation : ".date("Y-m-d H:i:s", time() )."\n" );
foreach( $_REQUEST as $k => $v ) {
fputs( $fp, $k." = ".$v."\n" );
}
fputs( $fp, "-----------------------------------------------------\n" );

die( "OK" );

?>

4/ In the file, I get all the variables except CampId.

Have i forgotten something?
have you, please, a solution to this problem?

Thanks a lot
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 115
Registered: 08-2008
Posted on Monday, September 29, 2008 - 09:29 pm:   

Hi Marrakech,

It looks like my response to your question was lost by our old web server. Last week we started experiencing severe problems with our web server, and had to speed up our transition to a new web server.

To answer your question, the ExtraHttpArgList parameters are for passing additional arguments to HTTP-based SMSC connections.

They don't remember additional arguments or parameters to help corrolate delivery receipts.

The only way that you can do what you want is for your application to remember the message id returned in the HTTP response from NowSMS when it submits the message ... then associate that message id with your campaign information in your own database.

Then, when the delivery receipt comes back to your appilcation, look up the message id in the receipt to correlate it with your saved campaign information.

We are planning for ways to better address this in future versions of NowSMS ... but unfortunately there is no easy answer for this today.

--
Des
NowSMS Support