Send URL to phone through a JAVA application

Send URL to phone through a JAVA application SearchSearch
Author Message
jessicay
New member
Username: Jessicay

Post Number: 2
Registered: 06-2004
Posted on Tuesday, June 29, 2004 - 12:11 am:   

Hello Bryce N,

Just downloaded Now.WAP/SMS gateway, tried wap push from the web interface, it was great.

Currently, I am trying to setup a platform using Now.WAP/SMS gateway simulating phones sending SMS request to a .jsp and then receiving a URL from it.

Following the instruction at
http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm
and
http://www.ihub.com/tb/TB-NOWSMS-003.htm

My JSP could receive the request from the phone and parse the information like Sender and FullSMS.
However, I am stuck here. I tried sending back with a redirect URL, but the phone did not receive anything, I did not check the box"Command returns response text". If I am understanding correcly, the redirect technique could be used for more complicated response than only text message.

So, is there any solution to this case? Or is there any API I can call from my jsp sending a wap push service indicator to the phone?

Thank you!

Jessica
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2936
Registered: 10-2002
Posted on Tuesday, June 29, 2004 - 09:28 pm:   

Hi Jessica,

I'm sure that there is a way to make a new HTTP request from within JSP, but I don't have any experience with JSP, so the redirect appraoch is easiest to describe.

I'd suggest enabling the debug log in NowSMS, and let's take a look at what is coming back from your script. Perhaps the redirect URL is not in the correct format.

To enable the debug log, manually edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Then restart the NowSMS SMS Gateway service.

Send in another message so that it gets routed to your JSP.

Then let's take a look at the SMSDEBUG.LOG to see what it reports when it executes your JSP.

-bn
jessicay
New member
Username: Jessicay

Post Number: 4
Registered: 06-2004
Posted on Wednesday, June 30, 2004 - 12:15 am:   

Hi Bryce:

Thank you for your response. You are right, my redirect URL was in a wrong format, and now it works fine.

Just have another question about Push over SMS. Currently, I am using phone as modem connect to the Now.WAP/SMS gateway, the redirect URL point back to the SMS gateway calling the web interface to send a WAPURL to specific Phonenumber. My question is

If I get other connections, like using SMPP or HTTP rather than GSM modem, should I modify my JSP to have different redirect URL format? Or in that case, some other techniques instead of redirect should be applied?
By the way, is this redirec technique a standard one? I am thinking, if I need to use SMPP connection, and the SMS gateway in the live network is not a Now.SMS gateway, can I still use this redirect technique pushing a URL over SMS from my JSP to the phone?

Thank you!

Jessica
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2943
Registered: 10-2002
Posted on Wednesday, June 30, 2004 - 05:00 pm:   

Hi Jessica,

NowSMS would handle this the same way if it was an SMPP (or CIMD2 or UCP/EMI) connection. However, we do not support receiving messages from an SMS service provider over HTTP ... sending only ... as there is no standard format for that environment.

This 2-way callback format is specific to NowSMS, NowSMS just interfaces into different types of SMSC connections to provide this interface.

-bn