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