Support forum
10:17 am
Thank you for the quick response 🙂
I have checked the Advanced properties of some of the GSM Modems and I can't see a property called 'PermanentErrorList'. The closest I can find is 'PermitModemCommandMessages'?
We are running version 4.0.0.0, do we need to update?
Hello Mark,
CMS Error 21 means 'Short message transfer rejected'. It indicates that the mobile service does not accept the message but it does not give the exact reason why. It could be an invalid number, insufficient SMS credits or a number of other reasons. Diafaan SMS Server has no way of knowing if the message also will be rejected by another mobile service before trying it. The reason that the other modem may give a different error code for the same message is that the error is generated by the mobile operator and each operator has its own error handling procedures and might generate a different error code for the same underlying error.
Diafaan SMS Server is designed to route the messages through all designated gateways before giving up because it is also used for alarm applications where it is important that the message is sent even if there is a good chance that the message will be rejected by the next gateway as well. But you can change that behavior by adding a (list of) permanent error code(s) in the 'PermanentErrorList' property in the advanced settings of the GSM Modem Gateway. This makes sure that Diafaan SMS Server does not make further send attempts when this error is returned by the modem.
Regards, Henk
5:09 pm
Good afternoon,
I was wondering if you could clarify something for me?
We have quite a complicated setup, so I'm going to massively simplify things to home in on the specific point.
You have two sim's, and each simm is for a different provider. Each simm is setup as a GSM Modem.
You have a scripting gateway that calls PostDispatch like so (the first 5 values are obviously variables, the last two values are hard coded)
PostDispatchMessage(recordId, toAddress, fromAddress, strMessage, messageType, "GSM1", "GSM2")
If when sending the message Diafaan recieves a CMS Error 21 (rejected) message from the network it fails over and tries to send the message via the backup gateway.
We have found that in a high percentage of cases the attempt on the backup gateway also fails (albeit with a slightly different error code).
Is this behaviour by design? Should Diafaan be trying to failover to the second gateway when confronted with a CMS 21 error?
Is there any way to change this behaviour?
If there isn't then it would be great if you could define a list of codes that will always fail over, and a list of codes that will never fail over.
Look forward to your response, hope that makes sense!
Mark
Most Users Ever Online: 529
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 680
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1156
Posts: 3946
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1511