Hi,

On Tuesday 23 March 2004 08:53, Dziugas Baltrunas wrote:
> Hi list,
>
> I'm using cvs HEAD version of Kannel and I've considered with the
> following problem. Mine smsc-password is 9 characters long and here is
> what I get while launching bearerbox:
>
> 2004-03-23 09:45:34 [20054] [6] WARNING: SMPP: PDU element <password> to
> long (length is 9, should be 9)
> 2004-03-23 09:45:34 [20054] [6] WARNING: SMPP: PDU NUL terminated string
> has no NUL.
>
> What is more, afterwards it drops some more debug messages, and then
> segmentation fault occurs.

please provide us with _all_ debug messages before segfault...
yes, smpp password is max 9 octets include terminated zero, but it's really no 
reason for kannel to segfaults.

>
> Here is a snip from gateway/gw/smsc/smpp_pdu.c:
>       #define NULTERMINATED(name, max_octets) \
>         if (p->name != NULL) { \
>             if (octstr_len(p->name) >= max_octets) { \
>                 warning(0, "SMPP: PDU element <%s> to long " \
>                         "(length is %ld, should be %d)", \
>                         #name, octstr_len(p->name), max_octets); \
>                 temp = octstr_copy(p->name, 0, max_octets-1); \
>             } else \
>                 temp = octstr_duplicate(p->name); \
>             octstr_append(os, temp); \
>             octstr_destroy(temp); \
>         } \
>         octstr_append_char(os, '\0');
>
> And I still haven't got enough time to figure about something about
> max_octets. Does the (SMPP) smsc password really have some limitations?
>
> regards,
> Dziugas Baltrunas

-- 
Best regards / Mit besten Gr��en aus D�sseldorf

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Vogelsanger Weg 80
40470 D�sseldorf

Fon: +49 (0211) 74 84 51 80
Fax: +49 (0211) 277 49 109

email: [EMAIL PROTECTED]
web: www.centrium.de
msn: [EMAIL PROTECTED]
icq: 98063111
___________________________________________

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Reply via email to