[PATCH] handling of non-latin GSM subset in opensmppbox

Nikos Balkanas nbalkanas at gmail.com
Mon May 9 10:40:40 CEST 2011


Opensmppbox could provide a different default alphabet for each connection,
for more flexibility. Imagine that you have clients connecting to the same
opensmppbox, some from Greece, others from Egypt. They will both need a
different default alphabet. Granted, you could run a different opensmppbox
instance for each one, but it would be more manageable to have a single one.


What happens now if he same client (aggregator) decides to send both Greek
and Arabic SMSs, using the default alphabet?
Let's hope it is not very often, since the SMPP spec doesn't differentiate
between them.

@Rene: Better name it default-charset or default-alphabet according to the
SMPP spec, not to confuse it with alt-charset used by bearerbox, which is
something else.

BR,
Nikos

 On Mon, May 9, 2011 at 10:56 AM, James Caradoc-Davies (Strike Media) <
james at strikemedia.co.za> wrote:

> Hi Rene,
>
> The SMPP spec itself provides a clue : 'SMSC Default Alphabet' -
> this is a per-SMSC setting, not a per-ESME setting.
>
> This implies that the ESME is responsible for matching the charset with the
> SMSC.
>
> Which in this case is OpenSMPPBox. So if there is a config property, it
> should be
> on the group = opensmppbox.
>
> James.
>
>
> -----Original Message-----
> From: devel-bounces at kannel.org [mailto:devel-bounces at kannel.org] On Behalf
> Of Rene Kluwen
> Sent: 09 May 2011 01:09
> To: 'Nikos Balkanas'; 'Nii Ako Ampa-Sowa'; devel at vm1.kannel.org
> Subject: RE: [PATCH] handling of non-latin GSM subset in opensmppbox
>
> It's what I meant: to make it configurable, so you can "expect" an
> arbitrary
> charset and convert it to UTF-8, which bearerbox expects.
> By this, I mean a separate configuration item for opensmppbox which should
> not to be confused with the alt-charset configuration item (with the same
> name) of group = smsc in bearerbox.
>
> About your group = client. That might be an option, in combination with the
> PAM authentication that is already there.
> That way, also different route-to-smsc values can also be supported. Will
> look into that!
>
> == Rene
>
> -----Original Message-----
> From: Nikos Balkanas [mailto:nbalkanas at gmail.com]
> Sent: Monday, 09 May, 2011 00:59
> To: Rene Kluwen; 'Nii Ako Ampa-Sowa'; devel at vm1.kannel.org
> Subject: Re: [PATCH] handling of non-latin GSM subset in opensmppbox
>
> Hi Rene,
>
> In my previous comment I said that making alt_charset is not necessary
> since
>
> by using a full iso and decoding with the same one, it would yield the
> original without errors, although it would be preferable to make it
> configurable.
>
> It turns out that not doing so, it would contradict kannel architecture. In
> such a content bearerbox, doesn't try simply to recover original charset,
> rather with alt_charset it tries to convert it to a new charset compatible
> with the smsc. therefore it is necessary to make it configurable.
>
> Since the list of features/client connection should be epandable, I would
> recommend skipping the text file alltogether and instead create a new
> configuration group, ie:
>
> group = client
> ...
>
> PS: Charset code was lift off gw/smsc/smsc_smpp.c. It needs to be converted
> to UTF-8 as well.
>
> BR,
> Nikos
> ----- Original Message -----
> From: Rene Kluwen
> To: 'Nii Ako Ampa-Sowa' ; devel at kannel.org
> Sent: Monday, May 09, 2011 1:39 AM
> Subject: RE: [PATCH] handling of non-latin GSM subset in opensmppbox
>
>
> Patch committed. Current revision of opensmppbox is 61.
>
> Still todo: Make a configuration entry for alt-charset. Even though it is
> not really necessary at the moment.
>
> Log line:
>
> 2011-05-09 Rene Kluwen <rene.kluwen at chimit.nl>
>    * gw/opensmppbox.c: Default GSM character set is converted to UTF-8
> (Kannel's internal
>    way of exchanging messages). The facilitates foreign (e.g. greek)
> characters.
>    Thanks to Nii Ako Ampa-Sowa (ampasowa at gmail.com) for the patch.
>
> == Rene
>
>
> From: devel-bounces at kannel.org [mailto:devel-bounces at kannel.org] On Behalf
> Of Nii Ako Ampa-Sowa
> Sent: Friday, 06 May, 2011 23:04
> To: devel at kannel.org
> Subject: [PATCH] handling of non-latin GSM subset in opensmppbox
>
> Hi,
>
> opensmppbox doesn't seem to handle the non-Latin subset of the GSM
> character
>
> set very well. This affects the Euro sign as well as Greek characters.
> Attached is a patch that switches from using the Latin1 conversion routine
> to the UTF-8 version.
>
> Nii
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.kannel.org/pipermail/devel/attachments/20110509/fc4dc8e3/attachment.html>


More information about the devel mailing list