Asp page

Asp page SearchSearch
Author Message
Anonymous
 
Posted on Friday, March 26, 2004 - 09:00 am:   

hi all
i want to create a unique asp page that will send logo or ring tone to user depending on their sms message exemple :
if user send sms containing "l 1000" the nowsms server will send them the logo number 1000 (on my database)
and if he send an sms containing "r 100" the nowsms server will send them the ringtone number 100 (on my database)
is there any one who can help me to make this asp page
Anonymous
 
Posted on Friday, March 26, 2004 - 11:39 am:   

Hello
I am in the same situation.

I think to do with an if sms = r 100 I return a
Response.write("a<href the link of r 100>")

Regards
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2221
Registered: 10-2002
Posted on Monday, March 29, 2004 - 07:42 pm:   

Hi,

You wouldn't use Response.write.

I'm not an ASP expert, but I believe you would want to use Response.Redircect ("http://nowsms.ip.address:port/?PhoneNumber=...&UDH=...&Data=....")

You would build this URL string dynamically in your ASP.

The PhoneNumber field in the redirect response would be parsed from the sender in the request that is received by your ASP script.

The UDH and Data fields would be the appropriate commands for your ring tone or logo. Or, if the ring tone or logo is being sent via WAP Push, the command would look more like this:

Response.Redircect ("http://nowsms.ip.address:port/?PhoneNumber=...&WAPURL=mysite.com/content.url")

(Where "mysite.com/content.url" is a link to the content that you want to send in the WAP push.)

This is the easiest approach for responding to a received message with a binary content response (as described above and at http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm).

Your ASP script could also initiate a new HTTP connection to NowSMS instead of using the redirect technique. Some pointers to possible techniques can be found here: http://support.nowsms.com/discus/messages/1/252.html.

-bn