Change default store and forward mode

Rolandow <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi all,

I hope a developer can help me with this one.

We need to send our messages with message mode 0, instead of message 
mode 3 which is default in Kannel. Unfortunately this setting is 
hardcoded. I thought I could easily change this, so I changed the code. 
I used the 1.4.3 stable release.

Then I changed /gw/smsc/smsc_smpp.c at line 851, it now says:

     pdu->u.submit_sm.esm_class = ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE;

I did make again, make install, and tried to start kannel again. But the 
bearerbox gives me this panic:

2010-01-15 15:16:24 [28251] [11] PANIC: gwlib/gw-rwlock.c:137: 
gw_rwlock_rdlock: Assertion `lock != NULL' failed.
2010-01-15 15:16:24 [28251] [11] PANIC: 
/home/kannel/sbin/bearerbox(gw_panic+0xbc) [0x80cfaec]
2010-01-15 15:16:24 [28251] [11] PANIC: 
/home/kannel/sbin/bearerbox(gw_rwlock_rdlock+0x6c) [0x80c4c4c]
2010-01-15 15:16:24 [28251] [11] PANIC: 
/home/kannel/sbin/bearerbox(route_incoming_to_boxc+0x5a) [0x80559ba]
2010-01-15 15:16:24 [28251] [11] PANIC: 
/home/kannel/sbin/bearerbox(bb_smscconn_receive+0xb33) [0x805c803]
2010-01-15 15:16:24 [28251] [11] PANIC: /home/kannel/sbin/bearerbox 
[0x808af0d]
2010-01-15 15:16:24 [28251] [11] PANIC: /home/kannel/sbin/bearerbox 
[0x808c1b0]
2010-01-15 15:16:24 [28251] [11] PANIC: /home/kannel/sbin/bearerbox 
[0x80c5e6d]
2010-01-15 15:16:24 [28251] [11] PANIC: /lib/i686/cmov/libpthread.so.0 
[0xb7f224c0]
2010-01-15 15:16:24 [28251] [11] PANIC: 
/lib/i686/cmov/libc.so.6(clone+0x5e) [0xb7b7d6de]

Is there something else that needs to be changed? Is there a patch 
available that changes the default esm_class?

Help would be much appreciated!

Kind regards,
Roland.
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.