Here's the required patch to support a new smsc configuration directive "default-sender" It is similar in concept to the smsbox directive "global-sender", but works in a lower level, on a sms-c basis.
smsbox "global-sender" takes precedence over any smsc "default-sender", so for this to work you must not set "global-sender". The side effects of this: if neither smsbox "global-sender" nor smsc "default-sender" are set, one could trigger a smssend request without sender, and this request goes its way to bearerbox and sms-c drivers, a thing that couldn't happen before, because smsbox would block empty senders. I do not know if there are any drivers that would have problems with empty sender (it goes as an empty string, not as a null). Anyway, this can be avoided setting "global-sender" or "default-sender". Could any of the main developers have a review on this, please. I hope it makes to the CVS. Angel Fradejas. -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Angel Fradejas Enviado el: miércoles 9 de enero de 2002 13:57 Para: [EMAIL PROTECTED] Asunto: RE: global-sender on a smsc basis ? Forgot to say.... I could implement this and send a patch, if there's interest. Angel Fradejas. -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Angel Fradejas Enviado el: miércoles 9 de enero de 2002 12:35 Para: [EMAIL PROTECTED] Asunto: global-sender on a smsc basis ? Hi, We use kannel as a sms gateway, with several SMS-C links, one for each mobile operator in our country. The problem is that each link require a diferent sender. Some of the SMS-C allow a bad sender (lets say 1234) but others complain about that, so we have to put the right sender on the smssend request. I think it's a good thing to keep the calling applications from knowing about sender numbers, smsc's an so on (that's work for kannel), so I think it would be interesting to have a default-sender (or global-sender) directive for each smsc (smsbox global-sender directive is not enough for this case). That way, calling applications could just let the sender field empty, and kannel would select the right one, after the routing to the proper smsc is done. What do you think about this? Angel Fradejas.
patch.diff
Description: Binary data