Re: Is it possible to set up the esm_class for Kannel?
Alejandro Guerrieri <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Olga,
You're welcome. It's not the first time someone stumbles across this
problem, since the value of 3 ("Store and Forward") seems not to be
the default across many SMSC's around the world (In fact, at least on
my own experience the most common value seems to be 0, "SMSC
Default"). Doing my first steps with Kannel, I've spent a bunch of
time trying to figure out myself where does that setting could be
changed, since the SMSC operator asked for an ESM_CLASS of 0 (To make
things worse, it was my first SMSC connection ever).
It would be _very_ handy to be able to set the esm_class parameter
through the config file isn't it? Anyone wishing to write a patch for
that? ;)
Regards,
PS: Please reply to the list, not to my personal address, so other
people can share your experiences also.
On Thu, 6 Jan 2005 15:30:46 -0800, Olga Rudchenko
<[email protected]> wrote:
>
> Thanks so much for quick response. I will try to do this.
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Alejandro Guerrieri
> Sent: Thursday, January 06, 2005 6:19 PM
> To: [email protected]
> Subject: Re: Is it possible to set up the esm_class for Kannel?
>
> Olga,
>
> You must modify the source code and recompile. It's not on the user
> guide, that's true...
>
> On gw/smsc/smsc_smpp.c , about line 630-640 (On Kannel-1.4.0, should be
> more or less the same with 1.3.2 search for "STORE_AND_FORWARD" if you
> can't find it):
>
> /*
> * set the esm_class field
> * default is store and forward, plus udh and rpi if requested
> */
> pdu->u.submit_sm.esm_class =
> ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE;
>
> For a list of possible values, see smpp_pdu.h:
>
> #define ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE 0x00000000
> #define ESM_CLASS_SUBMIT_DATAGRAM_MODE 0x00000001
> #define ESM_CLASS_SUBMIT_FORWARD_MODE 0x00000002
> #define ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE 0x00000003
> #define ESM_CLASS_SUBMIT_DELIVERY_ACK 0x00000008
> #define ESM_CLASS_SUBMIT_USER_ACK 0x00000010
> #define ESM_CLASS_SUBMIT_UDH_INDICATOR 0x00000040
> #define ESM_CLASS_SUBMIT_RPI 0x00000080
> #define ESM_CLASS_SUBMIT_UDH_AND_RPI 0x000000C0
>
> You can put ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE (That's a 0) for example.
>
> Hope it helps.
>
> On Thu, 6 Jan 2005 13:14:07 -0800, Olga Rudchenko
> <[email protected]> wrote:
> >
> >
> > Hi All!
> >
> >
> >
> > I am just wondering if there is any way to set up the esm_class for
> Kannel.
> > I can't find anything in docs, sorry.
> >
> >
> >
> > Thanks a lot for answer.
> >
> >
> >
> >
> >
> > Olga Rudchenko
> > Developer
> >
> > Bitfone
> > Corporation (formerly MDI)
> > Office: +1.905.326.9110 x 287
> > Mobile: +1.416.909.6542
> > Email: [email protected]
> > URL: www.bitfone.com
> >
> > Find it. Fix it. Enhance it.
> >
>
> --
> Alejandro Guerrieri
> Magicom
> http://www.magicom-bcn.net/
>
>
--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/