Roman, Well, I see the esm_class is 0x43:
esm_class: 67 = 0x00000043 That's the sum of: #define ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE 0x00000003 + #define ESM_CLASS_SUBMIT_UDH_INDICATOR 0x00000040 And that's just fine: Concatenated messages need to set the UDH, so they should add 0x40 to the esm_class. I'm not sure, but I'd check with the operator if they expect a 0x03 for store_and_forward or if you should set ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE (0x00) instead. If that's the case, you should edit line 638 on gw/smsc/smsc_smpp.c and set ...DEFAULT_SMSC_MODE instead of ...STORE_AND_FORWARD_MODE and then recompile and reinstall. Ask your operator, they usually know what's going on on their SMSCs (or at least they should ;) ). Maybe they expect 0x40 instead of 0x43 (or maybe the problem is elsewere...) but your SMSC operator should be able to help you, since messages seems to be ok. Hope it helps, On Wed, 19 Jan 2005 14:16:09 +0300, Roman <[EMAIL PROTECTED]> wrote: > Hi, Alejandro! > > First of all, thank You for quick and so developed answer. > > AG> Yes, it does work. > Ok, it's good for me. > > AG> At first sight your settings seems to be ok, but maybe there's some > AG> problem regarding the SMSC connection with your operator or something > AG> else. > > AG> Concatenated SMS are in fact binary messages. They carry an UDH (User > AG> Data Header) among other differences with a regular plain text > AG> message. The phone on the other side uses that UDH to reassemble the > AG> message parts again. > > AG> What you should check: > > AG> 1. Make sure that your phone AND your network operator REALLY supports > AG> concatenation. Try sending a long message from another phone and see > AG> if it arrives ok. > > I've checked it and it works. Operator's SMSC supports concatenation. > > AG> 2. I'd check with your SMSC operator if the connection parameters are > AG> ok. What works with regular messages might need some adjustments to > AG> work with binary. > > group = smsc > smsc = smpp > smsc-id = SMSC1 > denied-smsc-id = "SMSC2" > transceiver-mode = 1 > host = XXX.XXX.XXX.XXX > port = PPPP > our-host = XXX.XXX.XXX.XXX > smsc-username = USERNAME > smsc-password = PASSWORD > system-type = "VMA" > source-addr-ton = 0 > source-addr-npi = 1 > dest-addr-ton = 1 > dest-addr-npi = 1 > > AG> 3. A note to point 1: In some places, binary messages are not > AG> supported at all, so you should check with your operator (AFAIK, > AG> CDMA/TDMA networks cannot concatenate for example, or at least I was > AG> unlucky because none of the SMSCs I've worked with using C/TDMA were > AG> capable of concatenation). > > I see, but I'm working with GSM operator. > > AG> 4. Did you check the log files? Is there any error there? Send some > AG> excerpts to the list, maybe there's some clues there. > Here are logs. > > 2005-01-19 11:19:18 [24593] [7] DEBUG: Optional parameter tag (0x0424) > 2005-01-19 11:19:18 [24593] [7] DEBUG: Optional parameter length read as 0 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Got PDU: > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU 0x8148400 dump: > 2005-01-19 11:19:18 [24593] [7] DEBUG: type_name: deliver_sm > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_id: 5 = 0x00000005 > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sequence_number: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: service_type: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_ton: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr: "MY NUMBER" > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_ton: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: destination_addr: "SERVICE NUM" > 2005-01-19 11:19:18 [24593] [7] DEBUG: esm_class: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: protocol_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: priority_flag: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: schedule_delivery_time: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: validity_period: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: registered_delivery: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: data_coding: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_length: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: short_message: "" > 2005-01-19 11:19:18 [24593] [7] DEBUG: message_payload: "" > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU dump ends. > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Sending PDU: > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU 0x8148500 dump: > 2005-01-19 11:19:18 [24593] [7] DEBUG: type_name: deliver_sm_resp > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_id: 2147483653 = 0x80000005 > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sequence_number: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: message_id: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU dump ends. > 2005-01-19 11:19:18 [24593] [12] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2005-01-19 11:19:18 [24593] [12] DEBUG: boxc_sender: sent message to > <127.0.0.1> > 2005-01-19 11:19:18 [24593] [11] DEBUG: boxc_receiver: sms received > 2005-01-19 11:19:18 [24593] [11] DEBUG: new split_parts created 0x83ea060 > 2005-01-19 11:19:18 [24593] [11] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2005-01-19 11:19:18 [24593] [11] DEBUG: boxc_receiver: got ack > 2005-01-19 11:19:18 [24593] [1] DEBUG: Dumping 1 messages and 0 acks to store > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Manually forced source > addr ton = 0, source add npi = 1 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Manually forced dest addr > ton = 1, dest add npi = 1 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Sending PDU: > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU 0x8148400 dump: > 2005-01-19 11:19:18 [24593] [7] DEBUG: type_name: submit_sm > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_id: 4 = 0x00000004 > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sequence_number: 12 = 0x0000000c > 2005-01-19 11:19:18 [24593] [7] DEBUG: service_type: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_ton: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr: "SERVICE NUM" > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: destination_addr: "MY NUMBER" > 2005-01-19 11:19:18 [24593] [7] DEBUG: esm_class: 67 = 0x00000043 > 2005-01-19 11:19:18 [24593] [7] DEBUG: protocol_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: priority_flag: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: schedule_delivery_time: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: validity_period: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: registered_delivery: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: data_coding: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_length: 159 = 0x0000009f > 2005-01-19 11:19:18 [24593] [7] DEBUG: short_message: > 2005-01-19 11:19:18 [24593] [7] DEBUG: Octet string at 0x8221d60: > 2005-01-19 11:19:18 [24593] [7] DEBUG: len: 159 > 2005-01-19 11:19:18 [24593] [7] DEBUG: size: 1024 > 2005-01-19 11:19:18 [24593] [7] DEBUG: immutable: 0 > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 05 00 03 01 02 01 20 31 2f > 32 3a 6c 65 76 20 6e ...... 1/2:lev n > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 61 20 31 39 2e 30 31 20 28 > 6f 62 73 63 68 69 6a a 19.01 (obschij > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 29 3a 20 4e 61 69 62 6f 6c > 27 73 68 65 65 20 6e ): Naibol'shee n > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 65 75 64 6f 62 73 74 76 6f > 20 6f 62 79 63 68 6e eudobstvo obychn > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 6f 20 70 72 6f 69 73 74 65 > 6b 61 65 74 20 6f 74 o proistekaet ot > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 20 75 70 6f 72 6e 6f 67 6f > 20 6e 65 7a 68 65 6c upornogo nezhel > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 61 6e 69 79 61 20 63 68 74 > 6f 2d 6c 69 62 6f 20 aniya chto-libo > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 6d 65 6e 79 61 74 27 2e 20 > 56 79 20 6e 61 76 65 menyat'. Vy nave > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 72 6e 79 61 6b 61 20 72 65 > 67 75 6c 79 61 72 6e rnyaka regulyarn > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 6f 20 73 65 74 75 65 74 65 > 20 6e 61 20 6b 6f o setuete na ko > 2005-01-19 11:19:18 [24593] [7] DEBUG: Octet string dump ends. > 2005-01-19 11:19:18 [24593] [7] DEBUG: more_messages_to_send: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU dump ends. > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Manually forced source > addr ton = 0, source add npi = 1 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Manually forced dest addr > ton = 1, dest add npi = 1 > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Sending PDU: > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU 0x8148400 dump: > 2005-01-19 11:19:18 [24593] [7] DEBUG: type_name: submit_sm > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_id: 4 = 0x00000004 > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sequence_number: 13 = 0x0000000d > 2005-01-19 11:19:18 [24593] [7] DEBUG: service_type: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_ton: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: source_addr: "SERVICE NUM" > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2005-01-19 11:19:18 [24593] [7] DEBUG: destination_addr: "MY NUMBER" > 2005-01-19 11:19:18 [24593] [7] DEBUG: esm_class: 67 = 0x00000043 > 2005-01-19 11:19:18 [24593] [7] DEBUG: protocol_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: priority_flag: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: schedule_delivery_time: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: validity_period: NULL > 2005-01-19 11:19:18 [24593] [7] DEBUG: registered_delivery: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: data_coding: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sm_length: 79 = 0x0000004f > 2005-01-19 11:19:18 [24593] [7] DEBUG: short_message: > 2005-01-19 11:19:18 [24593] [7] DEBUG: Octet string at 0x8221d60: > 2005-01-19 11:19:18 [24593] [7] DEBUG: len: 79 > 2005-01-19 11:19:18 [24593] [7] DEBUG: size: 1024 > 2005-01-19 11:19:18 [24593] [7] DEBUG: immutable: 0 > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 05 00 03 01 02 02 67 6f 2d > 74 6f 20 32 2f 32 3a ......go-to 2/2: > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 70 6f 20 65 27 74 6f 6d 75 > 20 70 6f 76 6f 64 75 po e'tomu povodu > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 2c 20 6e 6f 20 70 6f 64 75 > 6d 61 6a 74 65 2c 20 , no podumajte, > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 6e 65 20 73 74 72 61 64 61 > 65 74 65 20 6c 69 20 ne stradaete li > 2005-01-19 11:19:18 [24593] [7] DEBUG: data: 76 79 20 65 27 74 69 6d 20 > 73 61 6d 69 3f 0a vy e'tim sami?. > 2005-01-19 11:19:18 [24593] [7] DEBUG: Octet string dump ends. > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU dump ends. > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP[SMSC1]: Got PDU: > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU 0x8148400 dump: > 2005-01-19 11:19:18 [24593] [7] DEBUG: type_name: submit_sm_resp > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_id: 2147483652 = 0x80000004 > 2005-01-19 11:19:18 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:18 [24593] [7] DEBUG: sequence_number: 12 = 0x0000000c > 2005-01-19 11:19:18 [24593] [7] DEBUG: message_id: "295121209" > 2005-01-19 11:19:18 [24593] [7] DEBUG: SMPP PDU dump ends. > 2005-01-19 11:19:19 [24593] [7] DEBUG: SMPP[SMSC1]: Got PDU: > 2005-01-19 11:19:19 [24593] [7] DEBUG: SMPP PDU 0x8148400 dump: > 2005-01-19 11:19:19 [24593] [7] DEBUG: type_name: submit_sm_resp > 2005-01-19 11:19:19 [24593] [7] DEBUG: command_id: 2147483652 = 0x80000004 > 2005-01-19 11:19:19 [24593] [7] DEBUG: command_status: 0 = 0x00000000 > 2005-01-19 11:19:19 [24593] [7] DEBUG: sequence_number: 13 = 0x0000000d > 2005-01-19 11:19:19 [24593] [7] DEBUG: message_id: "295121210" > 2005-01-19 11:19:19 [24593] [7] DEBUG: SMPP PDU dump ends. > > > AG> On Wed, 19 Jan 2005 11:21:31 +0300, Roman <[EMAIL PROTECTED]> wrote: > >> Hi! > >> > >> I'm trying to send concatenated SMSes from kannel 1.4 stable to my t610 or > >> other > >> phones( which support long messages ). However on my t610 i see 2 empty > >> messages. Does concatenation work in kannel? What i do wrong? > >> > >> Service config: > >> group = sms-service > >> keyword = default > >> name = "test" > >> max-messages = 10 > >> concatenation = true > >> allowed-receiver-prefix = pppp > >> accepted-smsc = SMSC1 > >> omit-empty = true > >> file = /tmp/test > >> > >> Thank You beforehand. > >> Best regards, Roman Lysenko > >> > >> > > > Best, regards Roman Lysenko. > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/
