Am 28.09.2011 19:28, schrieb Mpeirwe Benjamin:
Hello Good People, I have a challenge connecting to a new smpp connection, I bind to the connection so that when I send SMS, they are Accepted for delivery. Challenge is they are not delivered because at the SMSC side the response given is: SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm. as shown in the kannel.log file where I picked: 2011-09-28 20:13:10 [4362] [11] DEBUG: boxc_receiver: sms received 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Sending PDU: 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcda60 dump: 2011-09-28 20:13:10 [4362] [6] DEBUG: type_name: submit_sm 2011-09-28 20:13:10 [4362] [6] DEBUG: command_id: 4 = 0x00000004 2011-09-28 20:13:10 [4362] [6] DEBUG: command_status: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: sequence_number: 12 = 0x0000000c 2011-09-28 20:13:10 [4362] [6] DEBUG: service_type: "" 2011-09-28 20:13:10 [4362] [6] DEBUG: source_addr_ton: 5 = 0x00000005 2011-09-28 20:13:10 [4362] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: source_addr: "abcde" 2011-09-28 20:13:10 [4362] [6] DEBUG: dest_addr_ton: 2 = 0x00000002 2011-09-28 20:13:10 [4362] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 2011-09-28 20:13:10 [4362] [6] DEBUG: destination_addr: "1546785921" 2011-09-28 20:13:10 [4362] [6] DEBUG: esm_class: 3 = 0x00000003 2011-09-28 20:13:10 [4362] [6] DEBUG: protocol_id: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: priority_flag: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: schedule_delivery_time: NULL 2011-09-28 20:13:10 [4362] [6] DEBUG: validity_period: NULL 2011-09-28 20:13:10 [4362] [6] DEBUG: registered_delivery: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: data_coding: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2011-09-28 20:13:10 [4362] [6] DEBUG: sm_length: 47 = 0x0000002f 2011-09-28 20:13:10 [4362] [6] DEBUG: short_message: 2011-09-28 20:13:10 [4362] [6] DEBUG: Octet string at 0x9fce680: 2011-09-28 20:13:10 [4362] [6] DEBUG: len: 47 2011-09-28 20:13:10 [4362] [6] DEBUG: size: 48 2011-09-28 20:13:10 [4362] [6] DEBUG: immutable: 0 2011-09-28 20:13:10 [4362] [6] DEBUG: data: 57 65 64 20 53 65 70 20 32 38 20 32 30 3a 31 33 Wed Sep 28 20:13 2011-09-28 20:13:10 [4362] [6] DEBUG: data: 3a 31 30 20 45 41 54 20 32 30 31 31 20 74 65 73 :10 EAT 2011 tes 2011-09-28 20:13:10 [4362] [6] DEBUG: data: 74 69 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e ting connection 2011-09-28 20:13:10 [4362] [6] DEBUG: Octet string dump ends. 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends. 2011-09-28 20:13:10 [4362] [11] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU: 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump: 2011-09-28 20:13:10 [4362] [6] DEBUG: type_name: submit_sm_resp 2011-09-28 20:13:10 [4362] [6] DEBUG: command_id: 2147483652 = 0x80000004 2011-09-28 20:13:10 [4362] [6] DEBUG: command_status: 258 = 0x00000102 2011-09-28 20:13:10 [4362] [6] DEBUG: sequence_number: 12 = 0x0000000c 2011-09-28 20:13:10 [4362] [6] DEBUG: message_id: 2011-09-28 20:13:10 [4362] [6] DEBUG: Octet string at 0x9fcedb0: 2011-09-28 20:13:10 [4362] [6] DEBUG: len: 30 2011-09-28 20:13:10 [4362] [6] DEBUG: size: 31 2011-09-28 20:13:10 [4362] [6] DEBUG: immutable: 0 2011-09-28 20:13:10 [4362] [6] DEBUG: data: 50 30 31 2e 31 33 31 37 32 32 39 30 37 35 30 38 P01.131722907508 2011-09-28 20:13:10 [4362] [6] DEBUG: data: 36 36 33 35 30 30 30 2e 34 34 30 30 32 35 6635000.440025 2011-09-28 20:13:10 [4362] [6] DEBUG: Octet string dump ends. 2011-09-28 20:13:10 [4362] [6] DEBUG: SMPP PDU dump ends. 2011-09-28 20:13:10 [4362] [6] ERROR: SMPP[VMA1]: SMSC returned error code 0x00000102 (Specified service_type is unavailable) in response to submit_sm.
formally this submit_sm_resp PDU breaks the SMPP v3.4 spec.Reason: a message_id values SHOULD be only returned for command_status = 0x00 results. ;)
2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP[VMA1]: Sending enquire link: 2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump: 2011-09-28 20:13:17 [4362] [6] DEBUG: type_name: enquire_link 2011-09-28 20:13:17 [4362] [6] DEBUG: command_id: 21 = 0x00000015 2011-09-28 20:13:17 [4362] [6] DEBUG: command_status: 0 = 0x00000000 2011-09-28 20:13:17 [4362] [6] DEBUG: sequence_number: 13 = 0x0000000d 2011-09-28 20:13:17 [4362] [6] DEBUG: SMPP PDU dump ends. 2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP[VMA1]: Got PDU: 2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP PDU 0x9fcd870 dump: 2011-09-28 20:13:18 [4362] [6] DEBUG: type_name: enquire_link_resp 2011-09-28 20:13:18 [4362] [6] DEBUG: command_id: 2147483669 = 0x80000015 2011-09-28 20:13:18 [4362] [6] DEBUG: command_status: 0 = 0x00000000 2011-09-28 20:13:18 [4362] [6] DEBUG: sequence_number: 13 = 0x0000000d 2011-09-28 20:13:18 [4362] [6] DEBUG: SMPP PDU dump ends. This seems to point to a required service-type setting in kannel.conf . when I contacted the operator, they told me that this value should be set to null which I did as shown below: # smsc connection group = smsc smsc = smpp smsc-id = VMA1 host = 192.168.2.14 port = 9122 smsc-username = bge smsc-password = hgt system-type = "" service-type = "" I have tried all in vain and your help will be very much appreciated
just remove 'system-type' and 'service-type' from the 'group = smsc' context group and you SHOULD be fine.
Stipe -- ------------------------------------------------------------------- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org -------------------------------------------------------------------
smime.p7s
Description: S/MIME Cryptographic Signature