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 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/