Re: Fw: Help with setting sm_length!

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi,

sorry , but I see nothing wrong here...
If you have packed your text in 7bit semi-octets then you have length of 9
(that is correct). Because sm_length in smpp pdu used for determine how long
is message body (just think that @ is 0x00 in GSM03.38). If you set sm_length
to 11 (this is length of your unpacked text) then smpp stack will report
error and drop sms ,because length is larger as text self...

Am Montag, 14. April 2003 13:09 schrieb Yury Mikhienko:
> On Mon, 14 Apr 2003 13:33:16 +0400
>
> Yury Mikhienko <[email protected]> wrote:
> > On Mon, 14 Apr 2003 10:33:03 +0200
> >
> > Andreas Fink <[email protected]> wrote:
> > > > I'm implementing  SMS packing of SMS message (if message is in 7-bit
> > > > coding), but now I need to set the sm_length field as length of
> > > > sm_message (before packing), not as length of octstr sequence.
> > >
> > > hmm. why?
> > > Kannel does all that ready to use for you. Why are you trying to
> > > re-code this at all?
> >
> > Because if I set the coding in 1 or 0 (7-bit coding) kannel send the
> > message to SMSC without SMS packing (3gpp ts 23.038 recommendation) and
> > my SMSC forvard message to mobile without SMS packing also :(( This
> > problem is critical if I use the concatination messages :((
> >
> > I'm really need help!
>
> This snip of debug for example of problem (in super-debug mode :))):
>
> 2003-04-14 15:00:37 [5] DEBUG: SMPP[SMPP_28]: Sending PDU:
> 2003-04-14 15:00:37 [5] DEBUG: SMPP PDU 0x80ea768 dump:
> 2003-04-14 15:00:37 [5] DEBUG:   type_name: submit_sm
> 2003-04-14 15:00:37 [5] DEBUG:   command_id: 4 = 0x00000004
> 2003-04-14 15:00:37 [5] DEBUG:   command_status: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   sequence_number: 3 = 0x00000003
> 2003-04-14 15:00:37 [5] DEBUG:   service_type: NULL
> 2003-04-14 15:00:37 [5] DEBUG:   source_addr_ton: 1 = 0x00000001
> 2003-04-14 15:00:37 [5] DEBUG:   source_addr_npi: 1 = 0x00000001
> 2003-04-14 15:00:37 [5] DEBUG:   source_addr: "79282000013"
> 2003-04-14 15:00:37 [5] DEBUG:   dest_addr_ton: 1 = 0x00000001
> 2003-04-14 15:00:37 [5] DEBUG:   dest_addr_npi: 1 = 0x00000001
> 2003-04-14 15:00:37 [5] DEBUG:   destination_addr: "79282010199"
> 2003-04-14 15:00:37 [5] DEBUG:   esm_class: 3 = 0x00000003
> 2003-04-14 15:00:37 [5] DEBUG:   protocol_id: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   priority_flag: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   schedule_delivery_time: NULL
> 2003-04-14 15:00:37 [5] DEBUG:   validity_period: NULL
> 2003-04-14 15:00:37 [5] DEBUG:   registered_delivery: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   replace_if_present_flag: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   data_coding: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   sm_default_msg_id: 0 = 0x00000000
> 2003-04-14 15:00:37 [5] DEBUG:   sm_length: 10 = 0x0000000a
>      <-------------- parameter sets is manually 2003-04-14 15:00:37 [5]
> DEBUG:   short_message:
> 2003-04-14 15:00:37 [5] DEBUG:    Octet string at 0x80ea800:
> 2003-04-14 15:00:37 [5] DEBUG:      len:  9
> 2003-04-14 15:00:37 [5] DEBUG:      size: 11
> 2003-04-14 15:00:37 [5] DEBUG:      immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:      data: e8 32 9b fd 46 97 d9 ec
> .2..F... 2003-04-14 15:00:37 [5] DEBUG:      data: 37
>  7 2003-04-14 15:00:37 [5] DEBUG:    Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: SMPP PDU dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: SMPP[SMPP_28] sm_length (before packing): a
> <----------- just parameter to pack into PDU 2003-04-14 15:00:37 [5] DEBUG:
> Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 04                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb378:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb378:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 03                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb380:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 01                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb380:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 01                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 01                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 01                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 03                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 00                        .
> 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
> 2003-04-14 15:00:37 [5] DEBUG: Packing INTEGER parameter
> 2003-04-14 15:00:37 [5] DEBUG: Octet string at 0x80eb368:
> 2003-04-14 15:00:37 [5] DEBUG:   len:  1
> 2003-04-14 15:00:37 [5] DEBUG:   size: 2
> 2003-04-14 15:00:37 [5] DEBUG:   immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:   data: 09                        .
>                                      <----------- WHY WHY WHY?????????
>
> :(((( 2003-04-14 15:00:37 [5] DEBUG: Octet string dump ends.
>
> 2003-04-14 15:00:37 [5] DEBUG: SMPP[SMPP_28] sm_length (after packing): 9
> <----------- WHY WHY WHY????????? :(((( 2003-04-14 15:00:37 [5] DEBUG:
> Octet string at 0x80eb350:
> 2003-04-14 15:00:37 [5] DEBUG:    len:  64
> 2003-04-14 15:00:37 [5] DEBUG:    size: 65
> 2003-04-14 15:00:37 [5] DEBUG:    immutable: 0
> 2003-04-14 15:00:37 [5] DEBUG:    data: 00 00 00 40 00 00 00 04   ...@....
> 2003-04-14 15:00:37 [5] DEBUG:    data: 00 00 00 00 00 00 00 03   ........
> 2003-04-14 15:00:37 [5] DEBUG:    data: 00 01 01 37 39 32 38 32   ...79282
> 2003-04-14 15:00:37 [5] DEBUG:    data: 30 30 30 30 31 33 00 01   000013..
> 2003-04-14 15:00:37 [5] DEBUG:    data: 01 37 39 32 38 32 30 31   .7928201
> 2003-04-14 15:00:37 [5] DEBUG:    data: 30 31 39 39 00 03 00 00   0199....
> 2003-04-14 15:00:37 [5] DEBUG:    data: 00 00 00 00 00 00 [09] e8
> ........            <----------- WHY WHY???????????
> ---------------------------------------------------------------------------
>----------^ 2003-04-14 15:00:37 [5] DEBUG:    data: 32 9b fd 46 97 d9 ec 37
>  2..F...7 2003-04-14 15:00:37 [5] DEBUG:  Octet string dump ends.
>
> Help! Help! Help!
>
> Thanks for advise!

-------------------------------------------------------



-- 
Best regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________

Centrium GmbH
Ehrenstrasse 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [email protected]
web: http://www.centrium.de
msn: [email protected]
smime.p7s (application/pkcs7-signature, 2.5 KB) - not displayed
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.