Dear list, I have a Kannel setup with an SMPP 3.4 SMSC. There are no problem with receiving MOs. But for MTs I always get the following error: SMSC returned error code 0x00000045 (Submit failed) in response to submit_sm.
I am using the sendsms HTTP interface to send test SMSs like this: "http:// $domain:$port$script?$username&$password&$to&$from&$text&$smsc&$mclass&$coding" If I am not wrong this situation should mean: 1. the sms get delivered to the smsc. 2. the smsc did not like one (or more) parameter in the sms PDU. 3. and so it replies with error. could some one advice me as what might be wrong? I am not getting sufficient help from the tech guys of the smsc! Thank you notes: 1- the values of TONs and NPIs were given to us by the smsc 2- I had set esm_class to zero (hard coding and re-compiling). But still receiving the same error Transaction Log: 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP[mysmsc]: Manually forced source addr ton = 5, source add npi = 0 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP[mysmsc]: Manually forced dest addr ton = 1, dest add npi = 1 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP[mysmsc]: Sending PDU: 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP PDU 0x8f6adc0 dump: 2010-08-16 14:44:33 [28821] [6] DEBUG: type_name: submit_sm 2010-08-16 14:44:33 [28821] [6] DEBUG: command_id: 4 = 0x00000004 2010-08-16 14:44:33 [28821] [6] DEBUG: command_status: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: sequence_number: 2 = 0x00000002 2010-08-16 14:44:33 [28821] [6] DEBUG: service_type: "myservice" 2010-08-16 14:44:33 [28821] [6] DEBUG: source_addr_ton: 5 = 0x00000005 2010-08-16 14:44:33 [28821] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: source_addr: "AlphaNumGivenByTheSMSC" 2010-08-16 14:44:33 [28821] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 2010-08-16 14:44:33 [28821] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 2010-08-16 14:44:33 [28821] [6] DEBUG: destination_addr: "MyOwnMobileNo" 2010-08-16 14:44:33 [28821] [6] DEBUG: esm_class: 3 = 0x00000003 2010-08-16 14:44:33 [28821] [6] DEBUG: protocol_id: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: priority_flag: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: schedule_delivery_time: NULL 2010-08-16 14:44:33 [28821] [6] DEBUG: validity_period: NULL 2010-08-16 14:44:33 [28821] [6] DEBUG: registered_delivery: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: data_coding: 242 = 0x000000f2 2010-08-16 14:44:33 [28821] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2010-08-16 14:44:33 [28821] [6] DEBUG: sm_length: 5 = 0x00000005 2010-08-16 14:44:33 [28821] [6] DEBUG: short_message: "hello" 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP PDU dump ends. 2010-08-16 14:44:33 [28821] [6] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP[mysmsc]: Got PDU: 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP PDU 0x8f6adc0 dump: 2010-08-16 14:44:33 [28821] [6] DEBUG: type_name: submit_sm_resp 2010-08-16 14:44:33 [28821] [6] DEBUG: command_id: 2147483652 = 0x80000004 2010-08-16 14:44:33 [28821] [6] DEBUG: command_status: 69 = 0x00000045 2010-08-16 14:44:33 [28821] [6] DEBUG: sequence_number: 2 = 0x00000002 2010-08-16 14:44:33 [28821] [6] DEBUG: message_id: NULL 2010-08-16 14:44:33 [28821] [6] DEBUG: SMPP PDU dump ends. 2010-08-16 14:44:33 [28821] [6] ERROR: SMPP[mysmsc]: SMSC returned error code 0x00000045 (Submit failed) in response to submit_sm. =============================== SMSC configuration file: =============================== group = smsc smsc = smpp interface-version = 34 my-number = xxxx keepalive = 60 system-type = smpp service-type = "myservice" host = y.y.y.y port = z transceiver-mode = true smsc-username = "######" smsc-password = "$$$$$" smsc-id = mysmsc allowed-smsc-id = "mysmsc" #preferred-smsc-id = "mysmsc" denied-smsc-id = www; uuu #alt-charset = ISO-8859-6 #enquire-link-interval = 30 max-pending-submits = 15 reconnect-delay = 30 source-addr-ton = 5 source-addr-npi = 0 source-addr-autodetect = no dest-addr-ton = 1 dest-addr-npi = 1 connection-timeout = 100 =============================== senduser Configuration file: =============================== group = sendsms-user username = aaaaaa password = bbbbbb user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" default-sender = myservice default-smsc = mysmsc #max-messages = 3 concatenation = false =============================== main Configuration file: =============================== group = core admin-port = #### admin-password = xxxxxxxx status-password = yyyyyyy admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" # wapbox-port = 13002 # wdp-interface-name = "*" smsbox-port = 13004 log-file = "/var/log/kannel/bearerbox.log" log-level = 0 access-log = "/var/log/kannel/bearerbox.access" access-log-clean = false box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" udp-deny-ip = "*.*.*.*" udp-allow-ip = "127.0.0.1" # white-list = URL # black-list = URL store-type = file store-location = "/var/log/kannel/bearerbox.crash" store-dump-freq = 10 dlr-storage = internal #sms-incoming-queue-limit = -1 #sms-outgoing-queue-limit = -1 #smsbox-max-pending = -1 #### -1 = infinite #sms-resend-freq = 60 #sms-resend-retry = -1 #sms-combine-concatenated-mo = true #sms-combine-concatenated-mo-timeout = 1800 group = smsbox bearerbox-host = 127.0.0.1 bearerbox-port = 13004 sendsms-port = 13006 log-level = 0 log-file = "/var/log/kannel/smsbox.log" #smsbox-id = "mysmsbox" mo-recode = true sendsms-chars = "0123456789 +-" include = "smscenters/mysmsc.conf" #include = "wapboxes/" include = "sendsms-users/" group = sms-service keyword = catch-all = true get-url = "script of mine" concatenation = true max-messages = 10 assume-plain-text = yes accept-x-kannel-headers = yes
