Need help on 2-way sms(multiple action of sending and reply )

Need help on 2-way sms(multiple action of sending and reply ) SearchSearch
Author Message
yaya
New member
Username: Gardenia

Post Number: 1
Registered: 06-2006
Posted on Monday, June 19, 2006 - 05:47 pm:   

I am developing an SMS application and interested in using Nowsms server for my final year project..
My final year project involves 2 way sms which consists of multiple action of sending and reply before receiving the final result of the application.I'm using PHP to develop the application.How can i connect my application to the smsserver?
How is the configuration and setting of Nowsms Server for this kind of sms application? Do i need to add any additional coding in making this application success?Do i need to change it to SMPP?
Can somebody help me?pleasseee....
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 65
Registered: 04-2005
Posted on Monday, June 19, 2006 - 09:21 pm:   

Hi yaya,

You will use NowSMS as a gateway for your application. But if you have your own initiaton or a full permission, You can Use NowSMS as SMSC server. So mobile Users can get SMS from you directly, again that's possible, if your mobile operator allowed you.
in case that you have an account from your mobile operator, like SMPP or HTTP over TCP/IP, so you will build your own application and use NowSMS gateway between your application and your mobile clients through your mobile operator.

if you can be more clear on what you want to do as final projetc we can give our ideas before Bryce come, because he is the only one who can give more.

regards,
salim
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6071
Registered: 10-2002
Posted on Monday, June 19, 2006 - 09:55 pm:   

General 2-way SMS information:

http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm

2-way SMS and PHP information:

http://support.nowsms.com/discus/messages/1/4520.html

Send SMS from PHP script:

http://support.nowsms.com/discus/messages/1/867.html
choco_latte
New member
Username: Gardenia

Post Number: 2
Registered: 06-2006
Posted on Wednesday, June 21, 2006 - 05:25 pm:   

My final year project is about retrieving telephone directories by using sms.It involves multiple action of sending and reply.The sequences goes like this

-user enter any directory he wish to retrieve
-the reply msg will display all names in the database which is similar to the input.User will be asked to reply the code number of info he wish to retrieve.
-the reply msg contains the verification of the request info together with few options for user to choose before retrieving final result.User will send the code number for the options.
-Finally, the final result will be retrieved.

My questions are:
1) Is it possible to implement this application using nowsms?
2) If nowsms could support application such as above, how could the setting be done?Do I have to do any additional coding?

any clue? thanx..

-
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6104
Registered: 10-2002
Posted on Wednesday, June 21, 2006 - 06:05 pm:   

You could do the above with NowSMS ... but keep in mind some limitations of SMS.

There is no concept of a "thread id" or "conversation id" in SMS. So this makes it difficult to track replies.

This should not be a big problem for your application, because it should be ok to assume that any one end-user only has a single active conversation with your server. (The server may have multiple active conversations with different end-users, but each end-user has only one logical active conversation with the server.)

So it would work something like this ...

1.) User sends query to server.

2.) Server receives query and resets active conversation (cached information) for sending user phone number.

3.) Server replies back to user with query results and assigns code numbers to different items in the query results. The server must save this information so that it knows that if it receives a message back from this user's phone number with a code number, it knows which information to return for which code number.

4.) User receives server reply, and user replies back to server with code number.

5.) Server receives message with a code number and sends back final result. (Server should still save cached results, as the user might reply back again with another code number to fetch more results.)

You could insert more steps in this process. But I'd be hesitant to add too much back and forth unless it adds value to how the application works.

As for how you would do this with NowSMS ... you would need to add some 2-way SMS scripts to process the messages that you receive at the server.

These scripts would parse queries or code numbers, and respond back with the information to be returned to the end-user.

The scripts would normally run on a separate web server, and NowSMS would make HTTP requests to the web server to interact with the scripts. The scripting language that you would use would be whatever web server scripting language you are most familiar with (PHP, ASP, Perl, etc.).

Or the script could also be an executable program, or a local VBScript running under the Windows script host.

The links above have some basic pointers that focus on simple tasks, and the interface between NowSMS and a script. How you process the actual queries and get the results from your database would be your added logic.

-bn