Simulate SMS problem

Simulate SMS problem SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through July 14, 2004 » Simulate SMS problem « Previous || Next »
Author Message
Anonymous
 
Posted on Tuesday, May 25, 2004 - 12:56 pm:   

Hi All,
I'm trying to simulate the receipt of an incoming SMS into NowSMS by copying a text file into the SMS-IN subdir. NowSMS immediatedly changes the extension of the file to SMS but it couldn't consume the file. Any suggestion?
Thanx
Levi
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2642
Registered: 10-2002
Posted on Tuesday, May 25, 2004 - 01:37 pm:   

Hi Levi,

If the message doesn't match the criteria for any defined 2-way commands, then NowSMS renames the file from a ".IN" extension to a ".SMS" extension.

Some of our earlier versions would not process a message where the SMS message was blank, or the sender address was missing. So you might be running into this issue. (Unfortunately, I don't remember exactly what version we changed this behaviour, but I know that v5.50 will process blank messages.)

The file that you create should look something like this for a typical text message:

[SMS-IN]
Sender=SenderPhonenumber
PhoneNumber=RecipientPhonenumber
Data=Text of SMS message

If the message is in Unicode format, then it gets a little more complicated, as the SMS-IN file contains the message in binary format, and NowSMS converts it to text format as it processes it.

Probably the best way to troubleshoot this is to ask what the content of the file is that you are copying to the SMS-IN directory?

-bn
Anonymous
 
Posted on Wednesday, May 26, 2004 - 03:56 pm:   

Hi Bryce,
Thanks for your quick response. I'm working with the v5.50beta and the file content is:

[SMS-IN]
ModemName=SMPP - 127.0.0.1:9000
Sender=333
Data=LOGO TRAIL1
Binary=0

Actually, I've tried to remove the 1st line and add the PhoneNumber=111 according to your suggestion but still I got the incident :-(
Further instructions?
BR Levi
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2701
Registered: 10-2002
Posted on Monday, June 07, 2004 - 04:21 pm:   

Hi Levi,

Apologies for the delay in getting back to you.

That should work fine. I just tried the same, and it worked fine on my system.

What 2-way commands do you have defined? Maybe there is an issue with the 2-way command not finding a match with this message?

-bn
Anonymous
 
Posted on Monday, July 05, 2004 - 07:16 am:   

Hi Bryce,
My command is: http://localhost/ReqHandler/ReqHandler.aspx?SubscriberNo=@@SENDER@@&SMSPrefix=@@ SMSPREFIX@@&SMS=@@SMS@@
BTW, if the SMS part consists of several tokens separated by spaces, how should I specify the command? Can I use something like ...SMS="@@SMS@@"
Many thanks!
Levi
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2990
Registered: 10-2002
Posted on Wednesday, July 07, 2004 - 06:11 pm:   

Levi,

That should be fine. Is the "SMS Command Prefix" associated with that command "*"?

The "@@SMS@@" placeholder will get replaced with the remainder of the SMS message, it just gets URL encoded (so space characters get replaced by "%20" or "+"). Many libraries will automatically URL decode these parameters so that it is transparent to you.

-bn

Login Login / Register Logout Logout Search Last 30 Days Topics Topics