Re: Fw: Help with setting sm_length!

Yury Mikhienko <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Mobicom-Kavkaz
Message-ID <[email protected]>
On Tue, 15 Apr 2003 10:23:15 +0200
Andreas Fink <[email protected]> wrote:

> 
> On Dienstag, April 15, 2003, at 10:16  Uhr, Yury Mikhienko wrote:
> 
> > But my gw/smsc/smsc_smpp.c function msg_to_pdu sets the sm_length also.
> 
> It doesn't matter. To have it work properly with SMPP, it has to be set 
> to the length. Period!
> If not it would violate the SMPP protocol specs and it wouldn't work at 
> all. Its part of the SMPP specifications.
> 

I agree, but why in smpp_pdu_pack function originate the replacing sm_length field, instead of copy (if sm_length != 0)?
In this cause setting sm_field is meaningless.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"
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.