Problem decoding MMS notification message

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

	I have a GSM modem and have clients who want to send MMS to me. My 
understanding was that I got a notification message telling me where the 
MMS was at which point I would then make the connection and grab it. 
Sure enough I get the notification message but then I get a seg fault.

The problems seem to start well before the seg fault when in smsc_at.c 
we decode the message. What comes out seems to be rubbish. Is the 
notification message in a completely different format or am I just being 
stupid somehow?


2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: <-- 
07914497370190374410D04F79D87D2E379B530004505002808564408C0B05040B8423F00003C20201C306356170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B13139322E3136382E3232342E31303200AF84B4818C8298516F32597463436F344D4D4141445F6141414141454141416962514141414141008D908919802B3434373937373530333038372F545950453D504C4D4E008A808E02280088
2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: Alphanumeric 
sender <OrangeMMS>
2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: User data length 
read as (140)
2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: Udh decoding 
done len=128 udhi=1 udhlen=11 udh='

                             #ð'
2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CNMA^M
2005-05-20 08:58:50 [17379] [16] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
2005-05-20 08:58:50 [17379] [16] DEBUG: boxc_sender: sent message to 
<127.0.0.1>
PuTTY2005-05-20 08:58:50 [17379] [15] DEBUG: boxc_receiver: sms received
2005-05-20 08:58:50 [17379] [15] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
2005-05-20 08:58:50 [17379] [15] DEBUG: boxc_receiver: got ack
2005-05-20 08:58:50 [17379] [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
2005-05-20 08:58:50 [17379] [6] PANIC: gwlib/octstr.c:1436: 
octstr_append_char: Assertion `ch <= UCHAR_MAX' failed.
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox(gw_panic+0x174) 
[0x80c7638]
2005-05-20 08:58:50 [17379] [6] PANIC: 
./gw/bearerbox(octstr_append_char+0x64) [0x80cb66d]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x806996d]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x8067f30]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x8067b0e]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x8067a3c]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x8065964]
2005-05-20 08:58:50 [17379] [6] PANIC: ./gw/bearerbox [0x80bce40]
2005-05-20 08:58:50 [17379] [6] PANIC: /lib/tls/libpthread.so.0 [0x1831d5]
2005-05-20 08:58:50 [17379] [6] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0xc1a2da]


Cheers,

Gareth


-- 
Gareth Reakes, Managing Director      Parthenon Computing
+44-1865-811184                  http://www.parthcomp.com
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.