How to skip CMS ERROR: 500

How to skip CMS ERROR: 500 SearchSearch
Author Message
Noway
New member
Username: Noway

Post Number: 6
Registered: 04-2012
Posted on Tuesday, May 01, 2012 - 08:50 pm:   

Hello,

How to configure NowSMS to skip error CMS ERROR: 500 after the first attempt and to consider that SMS as failed.

Thanks.

BR,
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3943
Registered: 08-2008
Posted on Wednesday, May 02, 2012 - 08:32 pm:   

Hi,

I would not recommend doing that. CMS ERROR: 500 means "unknown error", and with many modems, it is very common to see this error sporadically.

That said, by default, NowSMS will retry up to 20 times, which is excessive for most scenarios.

To adjust retry behaviour for any error (not just CMS ERROR: 500), see http://www.nowsms.com/sms-retry-error-handling-with-ucpemi-and-cimd

If you still want to immediately reject any messages that return CMS ERROR: 500, this is only possible in recent updates of NowSMS, such as version 2012.05.01, which can be downloaded at http://www.nowsms.com/download/nowsms20120501.zip.

The specific setting to control this is described in the changes file for the release:


quote:

* GSM Modem Handling: Add configuration settings that can be used to define modem error responses that should be considered a permanent error, so that NowSMS will not retry submitting the message. To specify error codes that should be considered as a permanent error, edit SMSGW.INI, and under the [SMSGW] header (or a [Modem - xxx] specific header if the setting should apply to a single modem only), add "ModemRejectErrorCodes=x,y,z". This value can contain a comma delimited list of error codes. Values should be specified as text strings, e.g., "ModemRejectErrorCodes=28,30,CMS ERROR: 42". NowSMS looks for any of the text strings included in the ModemRejectErrorCodes list to appear in the modem response, and if a match is found, the error is considered permanent, so that the message is not retried.




In your case, add ModemRejectErrorCodes=500 under the [Modem - driver name] section header of SMSGW.INI.

--
Des
NowSMS Support
Noway
New member
Username: Noway

Post Number: 7
Registered: 04-2012
Posted on Thursday, May 03, 2012 - 10:52 pm:   

Hello,

Thanks for your reply.

I have downloaded it, and I have added:

ModemRejectErrorCodes=CMS ERROR: 500

But it's not working! It keeps retrying...

Thanks.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3951
Registered: 08-2008
Posted on Monday, May 07, 2012 - 04:42 pm:   

Hi,

Please re-read my previous message.

I suggested that you "add ModemRejectErrorCodes=500 under the [Modem - driver name] section header of SMSGW.INI."


"ModemRejectErrorCodes=CMS ERROR: 500" would probably work, but the matching is requires an exact substring match. So if the modem inserts an extra space, such as "CMS ERROR: 500", it would not match.

Also, make sure that this setting is in the section of the SMSGW.INI file that is specific for your modem. (example: [Modem - driver name here])

If you believe you have followed these instructions correctly, please enable the SMSDEBUG.LOG. Repeat the sending attempt that generates this error. Reply to this post with SMSGW.INI and SMSDEBUG.LOG so that I can check the configuration and verify the exact modem response.

--
Des
NowSMS Support