problem sending smpp-tlv
Alexander Bukharin <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
hello! I use cvs meta-data branch of kannel and defined TLV in kannel.conf like this: group = smpp-tlv name = its-session-info tag = 0x1383 type = octetstring length = 2 When I send for example TLV value 0x0101 it looks OK: 2008-11-17 18:31:10 [950] [8] DEBUG: new group created `smpp' 2008-11-17 18:31:10 [950] [8] DEBUG: group=`smpp' key=`its-session-info' value=`' 2008-11-17 18:31:10 [950] [8] DEBUG: SMPP[ussd]: Sending PDU: .... 2008-11-17 18:31:10 [950] [8] DEBUG: its-session-info: 2008-11-17 18:31:10 [950] [8] DEBUG: Octet string at 0x93185c0: 2008-11-17 18:31:10 [950] [8] DEBUG: len: 2 2008-11-17 18:31:10 [950] [8] DEBUG: size: 3 2008-11-17 18:31:10 [950] [8] DEBUG: immutable: 0 2008-11-17 18:31:10 [950] [8] DEBUG: data: 01 01 .. 2008-11-17 18:31:10 [950] [8] DEBUG: Octet string dump ends. 2008-11-17 18:31:10 [950] [8] DEBUG: SMPP PDU dump ends. But when I try to send value 0x0001 it seems that TLV ignored because there is leading zero character: 2008-11-17 18:45:11 [950] [8] DEBUG: group=`smpp' key=`its-session-info' value=`' 2008-11-17 18:45:11 [950] [8] DEBUG: SMPP[ussd]: Sending PDU: 2008-11-17 18:45:11 [950] [8] DEBUG: SMPP PDU 0x9339428 dump: .... 2008-11-17 18:45:11 [950] [8] DEBUG: its-session-info: "" 2008-11-17 18:45:11 [950] [8] DEBUG: SMPP PDU dump ends. this is part of my GET-request: &meta-data=%3Fsmpp%3Fits-session-info%3D%00%01 How should I send this two-byte hex value (0x0001)? And if I try to send 0x010002: 2008-11-17 18:51:04 [950] [8] DEBUG: its-session-info: 2008-11-17 18:51:04 [950] [8] DEBUG: Octet string at 0x93104e0: 2008-11-17 18:51:04 [950] [8] DEBUG: len: 1 2008-11-17 18:51:04 [950] [8] DEBUG: size: 2 2008-11-17 18:51:04 [950] [8] DEBUG: immutable: 0 2008-11-17 18:51:04 [950] [8] DEBUG: data: 01 . 2008-11-17 18:51:04 [950] [8] DEBUG: Octet string dump ends. thanks.