DLR sql select problem with message id containing space

"Alex Kinch" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <003301c3c97c$d9a34730$0501a8c0@alex>
Hi,

Just hooked up another SMPP connection, and they use rather large message ids. For example:

00047274 20031223170148.364 

Kannel is inserting this whole value (including characters after the space) into the ts field on the dlr table. However, when it comes to receiving the delivery report, it's truncating the message id after the first space, so it does:

 DLR[mysql]: Looking for DLR smsc=XXXX, ts=00047274, dst=44xxxxxxxxxx, type=1

Which of course it won't find, as it's lost the rest of the message id.

My C coding skills aren't up to much, but I would imagine it requires something that tests the first character after the space to see if it's numeric.

Alex
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.