2 Way SMS question

2 Way SMS question SearchSearch
Author Message
alex
New member
Username: Alexc

Post Number: 5
Registered: 08-2010
Posted on Tuesday, August 31, 2010 - 08:41 pm:   

I am trying to execute the "simple" C:\WINDOWS\system32\cmd.exe /c echo ECHO @@FULLSMS@@ command.

I see the sms arrive on the service tab SMS received counter.

it does show up in the SMSIN-yyyymmdd log

And this is the DebugLog:
12:25:03:484 [8] ThreadProcessInboundSMS: Processing 4C6C80D6.in...
12:25:03:484 [8] GetProgramToExecute: C:\WINDOWS\system32\cmd.exe /c echo ECHO @@FULLSMS@@
12:25:03:484 [8] GetProgramToExecute: C:\WINDOWS\system32\cmd.exe /c echo ECHO Brand new attempt
12:25:03:484 [8] ThreadProcessInboundSMS: Executing C:\WINDOWS\system32\cmd.exe /c echo ECHO Brand new attempt
12:25:03:531 [8] ThreadProcessInboundSMS: Processing complete 4C6C80D6.in...
12:25:04:046 [2] ModemReceiveMessages:
OK

The question I have is why is the command window not opening and showing the body of the SMS?

Does the /c close it too quickly for the naked eye to catch?

I just want to make sure that the command to execute function is working correctly.


Thanks-

Alex
Yonggang Li
New member
Username: Coldfire1999

Post Number: 1
Registered: 09-2010
Posted on Wednesday, September 01, 2010 - 10:41 am:   

I have not even see something like "12:25:03:484 [8] GetProgramToExecute: C:\WINDOWS\system32\cmd.exe /c echo ECHO @@FULLSMS@@ " in SMSDEBUG.LOG.
But the incoming message does show up in SMSIN-20100901.LOG and under SMS-IN directory.

Expecting expertise from NowSMS!!!
Yonggang Li
New member
Username: Coldfire1999

Post Number: 2
Registered: 09-2010
Posted on Wednesday, September 01, 2010 - 10:45 am:   

One more thing: I'm testing with 60 days trial. Is this a limitation for trial edition?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2472
Registered: 08-2008
Posted on Wednesday, September 01, 2010 - 11:50 am:   

Hi Alex,

NowSMS runs as a service process, so any 2-way commands also run in that con text. There will be no visible interaction on screen.

-- Des NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2473
Registered: 08-2008
Posted on Wednesday, September 01, 2010 - 12:10 pm:   

Hi,

If there is no reference to the command in the SMSDEBUG.LOG but you see othe r information related to the message being received, then this suggests the c ommand is not configured. Make sure the Receive Phone Number configured for t he command is blank. And use a command prefix of *.

Already received messages will not be reprocessed if a new command is define d. But you can rename *.SMS to *.IN in SMS-IN to force reprocessing.

-- Des NowSMS Support

>
alex
New member
Username: Alexc

Post Number: 6
Registered: 08-2010
Posted on Wednesday, September 01, 2010 - 04:05 pm:   

Hi Des-

I added "> c:\eval\test_sms.txt" to the end of the command to force a file to be created, perhaps useful for other newbies like me!

One more question:

Is there a comprehensive list of @@ operators? I noticed that this site as well as the documentation may be missing some. For instance @@RECEIVEDSMSC@@.

Thanks,

Alex
Yonggang Li
New member
Username: Coldfire1999

Post Number: 3
Registered: 09-2010
Posted on Thursday, September 02, 2010 - 01:19 am:   

After remove "Phone number" it works well. It would be nice if the manual document can be updated.

Thanks!
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2477
Registered: 08-2008
Posted on Thursday, September 02, 2010 - 11:30 am:   

Hi,

The 'Receive Phone Number' field is used to limit a 2-way command so that it only applies to messages received for a particular number. So if you have m ore than one modem or are receiving for multiple numbers, you can define dif ferent commands for the numbers. If it is left blank it applies for message s received on any number.

-- Des NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2478
Registered: 08-2008
Posted on Thursday, September 02, 2010 - 11:40 am:   

Hi Alex,

I'll make a note to review this. I know the web site is behind the PDF manua l version. We do need to update it. The PDF manual should be up-to-date. H owever, I'm not surprised that @@RECEIVEDSMSC@@ is not mentioned. It applies only to modem connections.

-- Des NowSMS Support
alex
New member
Username: Alexc

Post Number: 7
Registered: 08-2010
Posted on Thursday, September 02, 2010 - 05:45 pm:   

Thanks Des-

Do you know if there is a way to select which @@ parameters are included in the .SMS files that arrive in the SMS-IN folder. We would like to have additional information as we are using two SMSC's that include varying information.

Thanks,

Alex
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2481
Registered: 08-2008
Posted on Friday, September 03, 2010 - 12:10 pm:   

Hi Alex,

TLV parameter support can be enabled via the SMPPOptions settings.

Unfortunately at this time, the settings are global so there can be confusio n if different servers use the same TLV option number for different settings . (As long as they do not overlap it is OK.)

http://blog.nowsms.com/search/label/SMPPOptions

Any of these options that are present in a received message are automaticall y appended to the 2-way command without requiring an @@ setting.

-- Des NowSMS Support
alex
New member
Username: Alexc

Post Number: 8
Registered: 08-2010
Posted on Friday, September 03, 2010 - 10:41 pm:   

Hi Des,

1. Can SMPPOptions be set if using a GSM modem?

2. How do you find out what all is passed through in an SMS? Is that information from the SP or the modem manufacturer?

Thanks,

Alex
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2487
Registered: 08-2008
Posted on Tuesday, September 07, 2010 - 01:10 pm:   

Hi Alex,

No, SMPPOptions is very specific to SMPP environments. They are parameter settings specific to different provider implementations.

SMS messages themselves have very little room for any extra information. ETSI GSM 03.40 is the specification that defines this. (A 3GPP spec supersedes this...I don't recall it's number at the moment.)

-- Des NowSMS Support
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7936
Registered: 10-2002
Posted on Saturday, November 13, 2010 - 04:44 pm:   

The new question that was added to this thread was unrelated to the discussion above and was moved to the following link:

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