patch

"Kaido Karner" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
re

several things added, sorry, no documentation. consider the patch
experimental. at least some excess debug-messages have to be removed to be
clean.

changes:

* fixed a bug in error reporting in emi2 (caused segfault if could not
connect)
* added country, operator and service-group config groups
* added service-group based routing (if service-group given, route only
inside service-group)
* added %g parameter to sms-service parameters (expanded to service-group)
* added service-group parameter to sendsms interface (note 1)
* fixed some typos in comments in few places
* added tariff-class to cimd2 interface. added tc parameter to sendsms
interface (note 1) for tariffclass.
* added country/operator/service-group parameters to smsc group in config
* added unified-prefix into smsc and country config groups - if given, is
used instead of global.
* operator config group have item prefix - to indicate number prefixes for
that particular operator. in smsc config group
it's now possible to write * for preferred-prefix and/or allowed-prefix to
indicate that only it's own prefixes
are preferred/allowed
* maybe something more I have forgotten ..

note 1 - smsbox.c includes more changes (added sendservice interface for
example), but as those contradicts the
kannel architecture, I dont want them to be used and included in Kannel. as
I'm in hurry, I have no time to separate
the patches now - will do that as soon as possible.

http:/www.tradenet.ee/~kaido/kannel/diff10072002.txt

------ >8 ------------

config file example with some of new options, 2 different numbers, 3
operators:

group = core
[..]

group = smsbox
[..]

group = service-group
name = 1234
country = estonia

group = service-group
name = 5678
country = estonia

group = country
name = estonia
unified-prefix = 00372,0372,372,0,+372;+,00

group = operator
name = emt
prefix = "0037250;0037251;0037252;0037253"

group = operator
name = tele2
prefix = 0037255

group = operator
name = rle
prefix = 0037256


group = smsc
[..]
operator = emt
service-group = 1234
allowed-prefix = *

group = smsc
[..]
operator = emt
service-group = 5678
allowed-prefix = *

group = smsc
[..]
operator = rle
service-group = 1234
allowed-prefix = *

group = smsc
[..]
operator = rle
service-group = 5678
allowed-prefix = *

group = smsc
[..]
operator = tele2
service-group = 1234
allowed-prefix = *

group = smsc
[..]
operator = tele2
service-group = 5678
allowed-prefix = *

group = sms-service
keyword = default
url =
http://127.0.0.1/handler.phtml?smsc=%i&text=%a&sender=%p&target=%P&service-g
roup=%g
omit-empty      = 1
max-messages    = 0


------ >8 ------------

any comments and suggestions are very welcome!

regards,
kaido
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.