Some issues

Some issues SearchSearch
Author Message
Hadi
Unregistered guest
Posted on Monday, November 24, 2003 - 11:35 am:   

Hi all,
I have been trying the 60-day trial version for sometime and I noticed some issues....
The 1st one, I noticed that nowsms (running as a service) stop recieving message from the smsc connection for some reason after some time (usually 1:30 ~ 2:00 hours) and I have to re-start the service to coorect the behaviour...
The second issue or rather a question is that I found some files left in the sms-in folder with an extension *.in. This happens when the server holding the 2-way scripts stopped responding...The question is how to tell NowSMS to push them to the 2-way application again?

And I have noticed that there are some undocumented settings appearing here in the forum and I wonder if they will ever be documented?

Thanks for your time and such a great product.
Hadi.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1221
Registered: 10-2002
Posted on Monday, November 24, 2003 - 10:53 pm:   

Hadi,

I'm not aware of any situations where the service stops receiving messages from the SMSC.

What type of SMSC connection are you using? (If it is SMPP, UCP/EMI, or CIMD2 ... do you have a keep-alive setting active? If not, you might need one, or the SMSC might stop pushing messages down the connection.)

On the 2-way scripts not responding, this also sounds puzzling.

The thread that processes these messages is independent of any other activity ... so even if a modem was hung ... already received messages would continue to get processed.

I think I'd want to see a debug log to understand what is going on with your system.

To enable the debug log, manually edit SMSGW.INI, and under the [SMSGW] section header, add Debug=Yes. Then restart the gateway service. E-mail the SMSDEBUG.LOG file to nowsms@now.co.uk along with a reminder of the problems that you are experiencing. (If you are using an SMSC connection other than a GSM modem, also include the xxxxDEBUG.LOG for the SMSC type.)

-bn
Hadi
Unregistered guest
Posted on Wednesday, November 26, 2003 - 09:26 am:   

Hi Bryce,

Thanks for the quick reply, you guys are doing a great job.
For the issues, I looked everywhere in the settings and I could not find a 'keep-alive' setting anywhere. The connection I am using is an smpp system type v3.4 with 'Allow Send Address Override', 'Recieve SMS messages', and 'support any outband message traffic' checked.
And NowSMS is configured to run as a service.
The issue is resolved when I restart the service actually.
For the second issue, sometime ago, the script got hung. I have read somewhere that in this situation, NowSMS will store all unprocessed messages in the SMS-IN queue. I have tried everthing to make NowSMS to process those left messages. Is there anyway to force NowSMS to process these left messages? or am I missing something?
As for the debug logs, im preparing them for you.
Will email them the moment the problem happens again.

Hadi
Hadi
Unregistered guest
Posted on Wednesday, November 26, 2003 - 10:28 am:   

Hi Bryce,

Just a quick update about the second issue of processing the sms queue, ok, my mistake, it does process the messages stored in the queue but they are not deleted.
for example, I have a file called 3FC07880.in in the sms-in folder. I checked the debug log and I got this:
12:03:04:390 [3] ThreadProcessInboundSMS: Processing 3FC07880.in...
12:03:04:437 [3] ThreadProcessInboundSMS: Executing
http://localhost/SMSService/processSms.aspx?phone=%2Bxxxxxxx&cmd=xxxxxxx&cont=&m sg=xxxxxxxxx
12:03:04:437 [3] RetrieveURL: Retrieving http://localhost/SMSService/processSms.aspx?phone=%2Bxxxxxxxxxx&cmd=xxxxxx&cont= &msg=xxxxxxxxx
12:03:04:437 [3] RetrieveURL: Looking up localhost
12:03:04:437 [3] RetrieveURL: Retrieving SMSService/processSms.aspx?phone=%2Bxxxxxxxx&cmd=xxxxxx&cont=&msg=xxxxxxxx
12:03:04:437 [3] RetrieveURL: GET /SMSService/processSms.aspx?phone=%2Bxxxxxxxxxx&cmd=xxxxxx&cont=&msg=xxxxxxxxx
HTTP/1.0
User-Agent: Now SMS/MMS Gateway v5.0 (b20031006)
Accept: */*
Connection: Close
Host: localhost


12:03:04:921 [3] RetrieveURL: got redirection response
12:03:04:921 [3] RetrieveURL: HTTP/1.1 302 Found
Server: Microsoft-IIS/5.0
Date: Wed, 26 Nov 2003 10:03:04 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location: http://127.0.0.1:8800/Send%20Text%20Message.htm?PhoneNumber=%2bxxxxxxx&Text=xxxx xxxxxxx
Set-Cookie: ASP.NET_SessionId=i2rrnwm4dpzurg55ixrf3qi1; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='http://127.0.0.1:8800/Send%20Text%20Message.htm?PhoneNumber=%2bxxxxxxxxxxxxx&amp;Text=xxxxxxx'>here</a>.</h2>
</body></html>

I hope this will help.

Hadi
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1247
Registered: 10-2002
Posted on Wednesday, November 26, 2003 - 10:40 pm:   

Hadi,

Let me take the "keep alive" issue first. In the UCP and CIMD2 configuration dialogs, there is a setting ... but for SMPP, it is hidden.

By default, in the SMPP environment, NowSMS sends an enquire link approximately every 60 seconds, which is more than frequently enough for most providers.

However, if you do have a need to send this command more frequently, we do have a setting available in v5.0 that can send this command more frequently (we recently encountered a service provider who required this every 10 seconds ... which seems a bit excessive). To do this, you need to manually edit the SMSGW.INI file. Find the section of the file that pertains to the SMPP connection (e.g., [SMPP - x.x.x.x:yy]), and under that header, add KeepAlive=###, where ### is a value in number of seconds.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1248
Registered: 10-2002
Posted on Wednesday, November 26, 2003 - 10:47 pm:   

Hadi,

I see that you're sending a redirection response back to NowSMS ...

Is the activity in the log continuing to process that redirect, or does it just seem to stop at some point?
Hadi
Unregistered guest
Posted on Thursday, November 27, 2003 - 12:12 pm:   

Yes actually, it keeps trying to process the message and the rest of the queue.
If you noticed the log I posted previously, the response was 'Object moved', I managed to solve this problem by changing the binding IP of IIS and NowSMS. No more 'Object moved'.

We contacted the service provider to enquire about KeepAlive period they use. Unfortunately, the administrator is not available as this time:-(
This left me with the option of trying the solution with some arbitrary period. I will keep you posted of the changes.

Hopefully, everything we be resolved sooner than I think.

Thank you very much for your time and your help.

Hadi.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1252
Registered: 10-2002
Posted on Thursday, November 27, 2003 - 02:41 pm:   

Hadi,

Glad to hear that the first issue was an IP address binding issue.

For the keep alive, it's generally not a problem setting the value too low, it just generates excess traffic on the IP network. Try 10 and see if that makes a difference (this is far too frequently in my opinion, but it's not a problem).