Hi All, THANKS FOR ALL THE GOOD WORK THIS GROUP DOES! I have compiled and set up kannel+opensmppbox+sqlbox to enable users to connect to my Kannel server via SMPP. I have requested a client to connect as an SMPP client using the following parameters:
Username catel2014 Password pw14 interface-version 34 system-type box1 transceiver-mode true Destination NPI 1 Destination TON 1 Source NPI 1 Source TON 1 They are running fine, however I am getting this error when I run openSMPPBox: 2014-05-14 13:03:09 [9462] [0] DEBUG: Started thread 41 (opensmppbox.c:function) 2014-05-14 13:03:09 [9462] [41] INFO: Client connected from <196.217.236.234> 2014-05-14 13:03:09 [9462] [41] DEBUG: Connecting to <127.0.0.1> 2014-05-14 13:03:09 [9462] [41] INFO: Connected to bearerbox at 127.0.0.1 port 13001. 2014-05-14 13:03:09 [9462] [41] DEBUG: Started thread 42 (opensmppbox.c:smpp_to_bearerbox) 2014-05-14 13:03:09 [9462] [42] DEBUG: Thread 42 (opensmppbox.c:smpp_to_bearerbox) maps to pid 9462. 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP[playy]: Got PDU: 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP PDU 0x7f56d4000cd0 dump: 2014-05-14 13:03:09 [9462] [42] DEBUG: type_name: bind_transceiver 2014-05-14 13:03:09 [9462] [42] DEBUG: command_id: 9 = 0x00000009 2014-05-14 13:03:09 [9462] [42] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:03:09 [9462] [42] DEBUG: sequence_number: 41 = 0x00000029 2014-05-14 13:03:09 [9462] [42] DEBUG: system_id: "catel2014" 2014-05-14 13:03:09 [9462] [42] DEBUG: password: "pw14" 2014-05-14 13:03:09 [9462] [42] DEBUG: system_type: "box1" 2014-05-14 13:03:09 [9462] [42] DEBUG: interface_version: 52 = 0x00000034 2014-05-14 13:03:09 [9462] [42] DEBUG: addr_ton: 0 = 0x00000000 2014-05-14 13:03:09 [9462] [42] DEBUG: addr_npi: 0 = 0x00000000 2014-05-14 13:03:09 [9462] [42] DEBUG: address_range: NULL 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP PDU dump ends. 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP[catel2014]: Sending PDU: 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP PDU 0x7f56d4001aa0 dump: 2014-05-14 13:03:09 [9462] [42] DEBUG: type_name: bind_transceiver_resp 2014-05-14 13:03:09 [9462] [42] DEBUG: command_id: 2147483657 = 0x80000009 2014-05-14 13:03:09 [9462] [42] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:03:09 [9462] [42] DEBUG: sequence_number: 41 = 0x00000029 2014-05-14 13:03:09 [9462] [42] DEBUG: system_id: "playy" 2014-05-14 13:03:09 [9462] [42] DEBUG: SMPP PDU dump ends. 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP[catel2014]: Got PDU: 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP PDU 0x7f56d4000cd0 dump: 2014-05-14 13:04:09 [9462] [42] DEBUG: type_name: enquire_link 2014-05-14 13:04:09 [9462] [42] DEBUG: command_id: 21 = 0x00000015 2014-05-14 13:04:09 [9462] [42] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:04:09 [9462] [42] DEBUG: sequence_number: 42 = 0x0000002a 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP PDU dump ends. 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP[catel2014]: Sending PDU: 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP PDU 0x7f56d4001aa0 dump: 2014-05-14 13:04:09 [9462] [42] DEBUG: type_name: enquire_link_resp 2014-05-14 13:04:09 [9462] [42] DEBUG: command_id: 2147483669 = 0x80000015 2014-05-14 13:04:09 [9462] [42] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:04:09 [9462] [42] DEBUG: sequence_number: 42 = 0x0000002a 2014-05-14 13:04:09 [9462] [42] DEBUG: SMPP PDU dump ends. 2014-05-14 13:04:09 [9462] [42] ERROR: Invalid SMPP PDU received. 2014-05-14 13:04:09 [9462] [42] DEBUG: Thread 42 (opensmppbox.c:smpp_to_bearerbox) terminates. 2014-05-14 13:04:10 [9462] [41] DEBUG: Thread 41 (opensmppbox.c:function) terminates. 2014-05-14 13:05:08 [9462] [0] DEBUG: Started thread 43 (opensmppbox.c:function) 2014-05-14 13:05:08 [9462] [43] DEBUG: Thread 43 (opensmppbox.c:function) maps to pid 9462. 2014-05-14 13:05:08 [9462] [43] INFO: Client connected from <196.217.236.234> 2014-05-14 13:05:08 [9462] [43] DEBUG: Connecting to <127.0.0.1> 2014-05-14 13:05:08 [9462] [43] INFO: Connected to bearerbox at 127.0.0.1 port 13001. 2014-05-14 13:05:08 [9462] [43] DEBUG: Started thread 44 (opensmppbox.c:smpp_to_bearerbox) 2014-05-14 13:05:08 [9462] [44] DEBUG: Thread 44 (opensmppbox.c:smpp_to_bearerbox) maps to pid 9462. 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP[playy]: Got PDU: 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP PDU 0x7f56d4000cd0 dump: 2014-05-14 13:05:08 [9462] [44] DEBUG: type_name: bind_transceiver 2014-05-14 13:05:08 [9462] [44] DEBUG: command_id: 9 = 0x00000009 2014-05-14 13:05:08 [9462] [44] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:05:08 [9462] [44] DEBUG: sequence_number: 43 = 0x0000002b 2014-05-14 13:05:08 [9462] [44] DEBUG: system_id: "catel2014" 2014-05-14 13:05:08 [9462] [44] DEBUG: password: "pw14" 2014-05-14 13:05:08 [9462] [44] DEBUG: system_type: "box1" 2014-05-14 13:05:08 [9462] [44] DEBUG: interface_version: 52 = 0x00000034 2014-05-14 13:05:08 [9462] [44] DEBUG: addr_ton: 0 = 0x00000000 2014-05-14 13:05:08 [9462] [44] DEBUG: addr_npi: 0 = 0x00000000 2014-05-14 13:05:08 [9462] [44] DEBUG: address_range: NULL 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP PDU dump ends. 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP[catel2014]: Sending PDU: 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP PDU 0x7f56d4001af0 dump: 2014-05-14 13:05:08 [9462] [44] DEBUG: type_name: bind_transceiver_resp 2014-05-14 13:05:08 [9462] [44] DEBUG: command_id: 2147483657 = 0x80000009 2014-05-14 13:05:08 [9462] [44] DEBUG: command_status: 0 = 0x00000000 2014-05-14 13:05:08 [9462] [44] DEBUG: sequence_number: 43 = 0x0000002b 2014-05-14 13:05:08 [9462] [44] DEBUG: system_id: "playy" 2014-05-14 13:05:08 [9462] [44] DEBUG: SMPP PDU dump ends. Below is my configuration: #KANNEL CONF ==================== group = core admin-port = 13000 admin-password = PlayHome admin-deny-ip = "*.*.*.*" admin-allow-ip = "*.*.*.*" #wapbox-port = 13002 smsbox-port = 13001 wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "197.248.28.146;127.0.0.1" dlr-storage = pgsql #group = wapbox #bearerbox-host = localhost #log-file = "/var/log/kannel/wapbox.log" group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 smsbox-id = box1 log-file = "/var/log/kannel/smsbox.log" log-level = 0 group = sendsms-user username = password = dlr-url = " http://localhost/kannel/dlr_status.php?id=%p&mask=%d&message_id=%F" group = sms-service keyword = default get-url = " http://localhost/kannel/receivesms.php?sender=%p&text=%a&receiverph=%P&smscid=%i " accept-x-kannel-headers = true concatenation = true catch-all = true #group = wapbox #bearerbox-host = localhost #log-file = "/var/log/kannel/wapbox.log" group = smsc smsc = smpp smsc-id = congoairtel host = 217.113.71.81 port = 0 smsc-username = PLAYMUSIC smsc-password = play system-type = VMA transceiver-mode = false receive-port = 9000 interface-version = 34 #connect-allow-ip = 127.0.0.1 #msg-id-type = 0x00 group = pgsql-connection id = mydlr host = localhost port = 5432 username = postgres password = _123ntGrac0N_ database = postgres max-connections = 1 group = dlr-db id = mydlr table = tbl_dlr field-smsc = smsc field-timestamp = _timstamp field-destination = destination field-source = source field-service = _service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id #SQL BOX CONFIG ================================================== #SQL BOX CONFIG group = sqlbox id = sqlbox-db smsbox-id = sqlbox #global-sender = "" bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = "/var/log/kannel/sqlbox.log" log-level = 0 # Database connection examples. Please uncomment as needed group = pgsql-connection id = sqlbox-db host = localhost username = postgres password = _123ntGrac0N_ database = postgres #OPENSMPPBOX CONFIG ===================================================== group = core dlr-storage = pgsql group = opensmppbox opensmppbox-id = playy opensmppbox-port = 2785 bearerbox-host = 127.0.0.1 bearerbox-port = 13001 our-system-id = playy smpp-logins = /etc/kannel/smpplogins.txt use-systemid-as-smsboxid = true #route-to-smsc = smsc1 log-file = /var/log/kannel/smppbox.log group = pgsql-connection id = mydlr host = localhost port = 5432 username = postgres password = _123ntGrac0N_ database = postgres max-connections = 1 group = dlr-db id = mydlr table = tbl_dlr field-smsc = smsc field-timestamp = _timstamp field-destination = destination field-source = source field-service = _service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id #SMPPLOGINS.TXT ============================================= system-id-01 password-01 system-type-01 127.0.0.1 client-02 password-02 locahost 127.0.0.1 clickatel2014 ckTLpw14 box1 *.*.*.* Please tell me where I am going wrong so that I can rectify and get this going. Thanks MK