2 Way SMS Support

2 Way SMS Support SearchSearch
Author Message
walter Betances
New member
Username: Wbetances

Post Number: 7
Registered: 04-2005
Posted on Tuesday, August 30, 2005 - 09:38 pm:   

Hi

I need your support in configuring 2 Way SMS, I have a little problem:

I charge different services based on Short Codes, These services I process via 2 Way SMS tool. I have several SMS Command Prefix defined to execute different Commands. The problem is NowSMS does not discriminate by Recip; it only does by SMS Command Prefix. These Short codes have different charge depending on the service. There even Short Codes that are free.

Example:

I offer X service with the Short Code 8080 (Prefix Love) this cost $1
I offer X service with the Short Code 8090 (Prefix Horoscope) this cost $3

When somebody sends SMS with Prefix Love it does not mater what SC was the recipient NOWSMS will execute the command and if somebody sends SC with the prefix Horoscope he will get a $3 service but only pay $1. If he sends the prefix Horoscope in a Free Short Code he will get a $3 service for free.


Could you make changes to Nowsms to only execute commands for specific Recip?

Example:
SMS Command Prefix: Love
Receive Phone Numbers:
Command to Execute: http://127.0.0.1/sms/smstest.aspx?mobile=@@SENDER@@
Recip Number: 8080

This way this command will only execute if you send Prefix to Short Code 8080
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4827
Registered: 10-2002
Posted on Thursday, September 01, 2005 - 05:28 pm:   

Hi Walter,

You want to put the short code(s) in as the "Receive Phone Number(s)".

That field allows you to define different 2-way commands based upon the recipient of the 2-way command (which should be the short code).

-bn
walter Betances
New member
Username: Wbetances

Post Number: 8
Registered: 04-2005
Posted on Friday, September 02, 2005 - 04:49 am:   

Hi Bryce, It is not working that way. I forgot to tell that I connect thru SMPP to SMSC.

I'm not using modems.

What can I do?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4913
Registered: 10-2002
Posted on Thursday, September 15, 2005 - 10:07 pm:   

Hi Walter,

Sorry, I lost track of this thread.

Can you add @@RECIP@@ to your 2-way "Command to Execute"?

It is possible that your service provider is changing the short code to some other value. You'll see what values the service provider is sending in the @@RECIP@@ parameter that gets passed to your application.

Then, once you see what values your service provider is sending for your short codes, you can set the "Receive Phone Number(s)" field to match the @@RECIP@@ values that you are seeing.

-bn
Lloyd Tennison
New member
Username: Mylogon

Post Number: 1
Registered: 09-2005
Posted on Friday, September 16, 2005 - 08:49 am:   

I am a little confused as to how to even set 2-way up. I want it to receive the messages sent via sms back to the modem. The guide does not even have the same fields. (old 4x beta version) I do not see how to even add anything to the received sms table, much less to process it.

I just want the message to either be able to be seen by me or forwarded to another sms address. Any help would be appreciated.


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4933
Registered: 10-2002
Posted on Friday, September 16, 2005 - 11:09 pm:   

Hi,

The guide may be a little old (http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm), but there is only one additional field on that particular configuration screen ... and you can just leave it blank.

There are some additional examples and troubleshooting tips here:

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

Forwarding the SMS to e-mail is one option that is briefly mentioned in the above mentioned guide. More details on e-mail/SMS configurations is here: http://support.nowsms.com/discus/messages/1/3451.html

If you just want to have the received SMS forwarded to another SMS recipient, you could define a 2-way command like this:

"SMS Command Prefix" = *
"Recieve Phone Number(s) = * (or leave blank)
"Command to Execute" - http://username:password@127.0.0.1:8800/?phonenumber=xxxxxx,yyyyyy,zzzzz&text=Fwd+from+@@SENDER@@:+@@FULLSMS@@"
"Command returns response text" = NOT checked

In the above example, you need to change "username:password" to match a username and password for an account that you define under "SMS Users".

"8800" should match "Port number for web interface" on the "Web" page of the configuration.

"xxxxxx,yyyyyy,zzzzz" is a comma delimited list of phone numbers that you want to forward the message to. Or it can be a single phone number.

In this example, the text of the forwarded message is going to be prefixed with "Fwd from (phonenumber):" so that the original sender's phone number is included in the text of the message.

Basically, what this 2-way command is doing is that when a message is received, it triggers NowSMS to connect to a URL where the URL request is directed back at the NowSMS server to tell it to send a new message. That is a quick & dirty way to accomplish the type of task that you describe. For more complex applications, you would write your own HTTP script which runs on a separate web server, which would perform more complex processing against the message.

-bn