2-way not replying

2-way not replying SearchSearch
Author Message
Suraj Ramjist
New member
Username: Sramjist

Post Number: 1
Registered: 10-2010
Posted on Tuesday, October 12, 2010 - 03:50 pm:   

The 2 way SMS feature is not working

Performed the upgrade as recommended from V2006 to V2010 and also installed the patch as indicated in the forum thread (http://support.nowsms.com/discus/messages/1/50984.html)

And we are still unable to process the SMS.

In addition the binds are failing now on the SMSC but showing the up on nowsms.

I have tried the various TON and NPI values and it’s still failing.

I am attaching the last SMSppdebug.log and smsgw.ini files for review
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2558
Registered: 08-2008
Posted on Tuesday, October 12, 2010 - 05:28 pm:   

Hi,

It is not clear to me why you downloaded the update referenced in that other thread.

I also don't understand why you are trying to change the TON and NPI values. (Did you receive an error of some sort that made you to suspect TON or NPI values as the cause of a problem?)

All I can see from your SMPPDEBUG.LOG is that NowSMS is able to successfully connect to the SMSC in transceiver mode.

The LOG shows no other activity than a connection and immediate disconnection, which leads me to suspect that the debug logs are not actually enabled. (When debug logs are not enabled, NowSMS still creates an SMPPDEBUG.LOG when it performs a connection test in the configuration program.)

So ... I would suggest that we start this discussion thread over, as I do not understand what the problem is that you are experiencing.

Please answer the following questions to help me understand:

1.) Is this an existing installation that was working properly, but is no longer working after upgrading to the 2010 version?

2.) Were any other changes made? Changes to SMPP connection settings? Changes to 2-way commands?

3.) You say that 2-way SMS is not working ... what exactly do you mean by that?

a.) Are SMS messages being received at all by NowSMS? Any received messages would appear in the SMSIN-yyyymmdd.LOG file.

b.) Are received SMS messages being routed to your 2-way commands at all?

c.) Or is it the replies that are being generated by your 2-way commands that are stuck in the outbound message queue, like the situation described in the other thread. If this is true, please show me the contents of one of these "stuck" .REQ files. Also, does the SMSOUT-yyyymmdd.LOG file show any activity related to these stuck messages.

4.) Go to the "Serial #" page of the NowSMS configuration dialog, and enable the SMSDEBUG.LOG. Then restart the service. It would help if you could send me an SMSDEBUG.LOG that shows the problem that you are experiencing.

--

Let me know this information so that I can better understand what the problem is that you are experiencing.

Also, please feel free to send an SMSDEBUG.LOG that shows some activity so that I can better understand what the problem is that you are facing.

--
Des
NowSMS Support
Suraj Ramjist
New member
Username: Sramjist

Post Number: 2
Registered: 10-2010
Posted on Wednesday, October 13, 2010 - 02:49 pm:   

application/octet-streamSMPPDEBUG.LOG
SMPPDEBUG.LOG (9.1 k)
application/octet-streamSMSDEBUG.LOG
SMSDEBUG.LOG (6.6 k)
application/octet-streamSMSGW.INI
SMSGW.INI (1.0 k)


Hi Des,

sorry for the confusion.
There was an installation that was working and suddenly stopped.
We initially thought it was an issue with the SMSC and as such, we contacted them for support where they advised to make the adjustments to the NPI/TON values.
Yesterday i did a restart of the server and the bind was successfully completed with the SMSC.

The only outstanding error is that that it is not replying to messages sent via the 2-way option.

i have activated the logs and attached them. I have also attached the smsgw.ini file.
The SMSIN file shows receipt of the file but there is no activity in the SMSout file.

Thanks for any assistance that can be offered.
application/octet-streamSMSIN
SMSIN-20101013.LOG (6.2 k)
application/octet-streamSMSOUT
SMSOUT-20101013.LOG (0.2 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2563
Registered: 08-2008
Posted on Wednesday, October 13, 2010 - 04:02 pm:   

Hi Suraj,

Your 2-way commands are seeing the messages, correct?

It appears that NowSMS is passing the messages to the 2-way commands, but the 2-way commands are not returning any response.

I assume that the 2-way commands are designed to return a response (and that this was working properly with the earlier version), is that correct?

I am investigating any changes that may have been implemented in this area.

While I investigate, can I also ask ... what version of Windows is the system running?

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

Post Number: 2564
Registered: 08-2008
Posted on Wednesday, October 13, 2010 - 04:56 pm:   

Follow-up ...

One of our engineers has reviewed all of the changes in the 2-way command processing between the 2006 and 2010 versions.

They found one change beginning in the 2008 version with regard to how 2-way command output is redirected to a temporary file.

While this change does not seem to have any impact in our testing of 2-way commands, we are guessing that for some reason it is having an effect in your environment.

I'm not 100% confident that this will fix your problem, more like 25%. However, we should try it.

I have posted an update at http://www.nowsms.com/download/nowsms20101013.zip.

Please try this update to see if it fixes the problem.

--
Des
NowSMS Support
Suraj Ramjist
New member
Username: Sramjist

Post Number: 3
Registered: 10-2010
Posted on Thursday, October 14, 2010 - 05:07 pm:   

Hi Des,

Yes the 2-way was previously working and it looks to be receiving the messages. i am downloading the update and will advise on the results.
i am using windows server 2003.
Suraj Ramjist
New member
Username: Sramjist

Post Number: 4
Registered: 10-2010
Posted on Thursday, October 14, 2010 - 10:32 pm:   

Hi Des,

Downloaded the software and installed. The bind is up and working i am able to send an sms from the web interface and i was able to setup the echo as Bryce described.
For this i am receiving the echo response that is sent by now sms.
I have also found a folder SMS-IN that has the temporary files created of all SMS sent to the short codes.
i am attaching the updated SMSDEBUG.log, SMPPDEBUG.log and one of the temp files in the SMS-IN folder.
application/octet-stream
SMPPDEBUG.LOG (463.5 k)
application/octet-streamSMSDEBUG.LOG
SMSDEBUG.LOG (144.6 k)
text/plainSMSIN1
4CB4D96E.SMS (0.1 k)
text/plainSMSIN2
4CB50D2A.SMS (0.1 k)
Suraj Ramjist
New member
Username: Sramjist

Post Number: 5
Registered: 10-2010
Posted on Thursday, October 14, 2010 - 10:37 pm:   

But nowsms doesn't seem to be calling my programs as it shows up blank in the logs
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2572
Registered: 08-2008
Posted on Friday, October 15, 2010 - 02:11 am:   

The echo test can successfully send a reply?

The logs show that NowSMS is running your programs .. example c:\TopUP_Reply.exe +592xxxxxxxx 1441 spin

(When the log says this: ThreadProcessInboundSMS: Executing c:\TopUP_Reply.exe +592xxxxxxxx 1441 spin +5926973124 1010 Pepper ... the bit after "Executing" is the actual command NowSMS is running. The next debug statement shows the output response that was parsed.)

The blank part in the log is the response that NowSMS sees coming back as a response from the command.

If you run the command from the command line on the NowSMS PC, does it echo text back to the screen?

If you run the command from the command line on the NowSMS PC, but add "> test.txt" to the end, does the output of the command get written to a file named test.txt in the current directory? (When NowSMS runs a local executable 2-way command, it redirects command output to a temporary file ... and then reads that temporary file to see what the output of the command was.)

If the echo command works, what if you modify one of the commands to be prefaced with c:\windows\system32\cmd.exe /c ... does that make a difference?

I'm at a loss to explain what could be wrong.

Do you have the old version of NowSMS that you can re-install?

--
Des
NowSMS Support