[2022-03-11 14:00:00] [NOTICE] [PID:35531]: Connection from 127.0.0.1:46744 [] [2022-03-11 14:00:00] [NOTICE] [PID:35531]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:00:00', '2022-03-11 14:00:00', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU:RAW] :: send ["000000188000000400000000000000023131313033393500"] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110395},"sourceData":""} [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:00:00] [INFO] [PID:35531]: Client was send unbind. [] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:00:00] [DEBUG] [PID:35531]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:01:01] [NOTICE] [PID:35560]: Connection from 127.0.0.1:46746 [] [2022-03-11 14:01:01] [NOTICE] [PID:35560]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:01:01', '2022-03-11 14:01:01', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU:RAW] :: send ["000000188000000400000000000000023131313033393600"] [2022-03-11 14:01:01] [DEBUG] [PID:35560]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110396},"sourceData":""} [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333935000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313033393500"] [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:01:02] [INFO] [PID:35560]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"ACCEPTED","err":"2"} [2022-03-11 14:01:02] [INFO] [PID:35560]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"DELIVERED","err":"2"} [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c0000000200"] [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:01:02] [DEBUG] [PID:35560]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:01:02] [ERROR] [PID:35560]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:01:14] [NOTICE] [PID:35562]: Connection from 127.0.0.1:46748 [] [2022-03-11 14:01:14] [NOTICE] [PID:35562]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:01:14', '2022-03-11 14:01:14', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU:RAW] :: send ["000000188000000400000000000000023131313033393700"] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110397},"sourceData":""} [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:01:14] [INFO] [PID:35562]: Client was send unbind. [] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:01:14] [DEBUG] [PID:35562]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:01:26] [NOTICE] [PID:35564]: Connection from 127.0.0.1:46750 [] [2022-03-11 14:01:26] [NOTICE] [PID:35564]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:01:26', '2022-03-11 14:01:26', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU:RAW] :: send ["000000188000000400000000000000023131313033393800"] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110398},"sourceData":""} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333936000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313033393600"] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:01:26] [INFO] [PID:35564]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"ACCEPTED","err":"2"} [2022-03-11 14:01:26] [INFO] [PID:35564]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"DELIVERED","err":"2"} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c0000000200"] [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:01:26] [DEBUG] [PID:35564]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:01:26] [ERROR] [PID:35564]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:01:41] [NOTICE] [PID:35567]: Connection from 127.0.0.1:46752 [] [2022-03-11 14:01:41] [NOTICE] [PID:35567]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:01:41', '2022-03-11 14:01:41', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU:RAW] :: send ["000000188000000400000000000000023131313033393900"] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110399},"sourceData":""} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333937000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313033393700"] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:01:41] [INFO] [PID:35567]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"ACCEPTED","err":"2"} [2022-03-11 14:01:41] [INFO] [PID:35567]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"DELIVERED","err":"2"} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c0000000200"] [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:01:41] [DEBUG] [PID:35567]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:01:41] [ERROR] [PID:35567]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:02:38] [NOTICE] [PID:35570]: Connection from 127.0.0.1:46756 [] [2022-03-11 14:02:38] [NOTICE] [PID:35570]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:02:38', '2022-03-11 14:02:38', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303000"] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110400},"sourceData":""} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333938000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333938000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333939000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313033393900"] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:02:38] [INFO] [PID:35570]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"ACCEPTED","err":"2"} [2022-03-11 14:02:38] [INFO] [PID:35570]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"DELIVERED","err":"2"} [2022-03-11 14:02:38] [INFO] [PID:35570]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"ACCEPTED","err":"2"} [2022-03-11 14:02:38] [INFO] [PID:35570]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"DELIVERED","err":"2"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c0000000400"] [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:02:38] [DEBUG] [PID:35570]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:02:38] [ERROR] [PID:35570]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:02:50] [NOTICE] [PID:35572]: Connection from 127.0.0.1:46758 [] [2022-03-11 14:02:50] [NOTICE] [PID:35572]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:02:50', '2022-03-11 14:02:50', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303100"] [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110401},"sourceData":""} [2022-03-11 14:02:50] [DEBUG] [PID:35572]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:02:51] [DEBUG] [PID:35572]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:02:51] [DEBUG] [PID:35572]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:02:51] [INFO] [PID:35572]: Client was send unbind. [] [2022-03-11 14:02:51] [DEBUG] [PID:35572]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:02:51] [DEBUG] [PID:35572]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:02:53] [NOTICE] [PID:35574]: Connection from 127.0.0.1:46760 [] [2022-03-11 14:02:53] [NOTICE] [PID:35574]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:02:53', '2022-03-11 14:02:53', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303200"] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110402},"sourceData":""} [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:02:53] [INFO] [PID:35574]: Client was send unbind. [] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:02:53] [DEBUG] [PID:35574]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:02:58] [NOTICE] [PID:35576]: Connection from 127.0.0.1:46762 [] [2022-03-11 14:02:58] [NOTICE] [PID:35576]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:02:58', '2022-03-11 14:02:58', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303300"] [2022-03-11 14:02:58] [DEBUG] [PID:35576]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110403},"sourceData":""} [2022-03-11 14:02:59] [DEBUG] [PID:35576]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:02:59] [DEBUG] [PID:35576]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:02:59] [DEBUG] [PID:35576]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:02:59] [INFO] [PID:35576]: Client was send unbind. [] [2022-03-11 14:02:59] [DEBUG] [PID:35576]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:02:59] [DEBUG] [PID:35576]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:03:09] [NOTICE] [PID:35578]: Connection from 127.0.0.1:46764 [] [2022-03-11 14:03:09] [NOTICE] [PID:35578]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:03:09', '2022-03-11 14:03:09', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303400"] [2022-03-11 14:03:09] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110404},"sourceData":""} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333935000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333935000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343030000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303000"] [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110400"},"sourceData":""} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110400"},"sourceData":""} [2022-03-11 14:03:10] [INFO] [PID:35578]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"ACCEPTED","err":"2"} [2022-03-11 14:03:10] [INFO] [PID:35578]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"DELIVERED","err":"2"} [2022-03-11 14:03:10] [INFO] [PID:35578]: [Receipt] :: Receipt has been sent {"id":"1110400","stat":"ACCEPTED","err":"2"} [2022-03-11 14:03:10] [INFO] [PID:35578]: [Receipt] :: Receipt has been sent {"id":"1110400","stat":"DELIVERED","err":"2"} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c0000000400"] [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:03:10] [DEBUG] [PID:35578]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:03:10] [ERROR] [PID:35578]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:04:37] [NOTICE] [PID:35580]: Connection from 127.0.0.1:46766 [] [2022-03-11 14:04:37] [NOTICE] [PID:35580]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:04:37', '2022-03-11 14:04:37', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303500"] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110405},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333936000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333936000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333937000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333937000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343031000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343032000000004d000000050000000000000007000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343031000000004d000000050000000000000008000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343032000000004d000000050000000000000009000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343033000000004d00000005000000000000000a000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303300"] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110401"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110402"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":7,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110401"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":8,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110402"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":9,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110403"},"sourceData":""} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":10,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110403"},"sourceData":""} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110401","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110402","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110401","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110402","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110403","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:37] [INFO] [PID:35580]: [Receipt] :: Receipt has been sent {"id":"1110403","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c000000060000000011800000050000000c000000070000000011800000050000000c000000080000000011800000050000000c000000090000000011800000050000000c0000000a00"] [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":7,"message_id":""},"sourceData":"00000011800000050000000c0000000700"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":8,"message_id":""},"sourceData":"00000011800000050000000c0000000800"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":9,"message_id":""},"sourceData":"00000011800000050000000c0000000900"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":10,"message_id":""},"sourceData":"00000011800000050000000c0000000a00"} [2022-03-11 14:04:37] [DEBUG] [PID:35580]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:04:37] [ERROR] [PID:35580]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:04:49] [NOTICE] [PID:35582]: Connection from 127.0.0.1:46768 [] [2022-03-11 14:04:49] [NOTICE] [PID:35582]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:04:49', '2022-03-11 14:04:49', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303600"] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110406},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333938000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333938000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333939000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333939000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343034000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303400"] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110404"},"sourceData":""} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110404"},"sourceData":""} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110404","stat":"ACCEPTED","err":"2"} [2022-03-11 14:04:49] [INFO] [PID:35582]: [Receipt] :: Receipt has been sent {"id":"1110404","stat":"DELIVERED","err":"2"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c0000000600"] [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:04:49] [DEBUG] [PID:35582]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:04:49] [ERROR] [PID:35582]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:05:56] [NOTICE] [PID:35790]: Connection from 127.0.0.1:46770 [] [2022-03-11 14:05:56] [NOTICE] [PID:35790]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:05:56', '2022-03-11 14:05:56', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303700"] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110407},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333935000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333935000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343030000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343030000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343035000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343035000000004d000000050000000000000007000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343036000000004d000000050000000000000008000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303600"] [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110395"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110400"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110400"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110405"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110405"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":7,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110406"},"sourceData":""} [2022-03-11 14:05:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":8,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110406"},"sourceData":""} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"ACCEPTED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110395","stat":"DELIVERED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110400","stat":"ACCEPTED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110400","stat":"DELIVERED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110405","stat":"ACCEPTED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110405","stat":"DELIVERED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110406","stat":"ACCEPTED","err":"2"} [2022-03-11 14:05:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110406","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:06] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:16] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:16] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000004d000000050000000000000009000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343037000000004d00000005000000000000000a000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303700"] [2022-03-11 14:06:16] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":9,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110407"},"sourceData":""} [2022-03-11 14:06:16] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":10,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110407"},"sourceData":""} [2022-03-11 14:06:16] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110407","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:16] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110407","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:26] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:36] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000004d00000005000000000000000b000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333936000000004d00000005000000000000000c000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333936000000004d00000005000000000000000d000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333937000000004d00000005000000000000000e000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333937000000004d00000005000000000000000f000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343031000000004d000000050000000000000010000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343032000000004d000000050000000000000011000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343031000000004d000000050000000000000012000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343032000000004d000000050000000000000013000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343033000000004d000000050000000000000014000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303300"] [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":11,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":12,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110396"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":13,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":14,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110397"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":15,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110401"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":16,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110402"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":17,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110401"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":18,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110402"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":19,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110403"},"sourceData":""} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":20,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110403"},"sourceData":""} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110396","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110397","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110401","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110402","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110401","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110402","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110403","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:46] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110403","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:46] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000004d000000050000000000000015000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333938000000004d000000050000000000000016000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333938000000004d000000050000000000000017000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130333939000000004d000000050000000000000018000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130333939000000004d000000050000000000000019000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343034000000004d00000005000000000000001a000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303400"] [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":21,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":22,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110398"},"sourceData":""} [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":23,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":24,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110399"},"sourceData":""} [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":25,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110404"},"sourceData":""} [2022-03-11 14:06:56] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":26,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110404"},"sourceData":""} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110398","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110399","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110404","stat":"ACCEPTED","err":"2"} [2022-03-11 14:06:56] [INFO] [PID:35790]: [Receipt] :: Receipt has been sent {"id":"1110404","stat":"DELIVERED","err":"2"} [2022-03-11 14:06:57] [DEBUG] [PID:35790]: [PDU:RAW] :: send ["0000001000000015000000000000001b"] [2022-03-11 14:06:57] [DEBUG] [PID:35790]: [PDU] :: send {"pdu":{"command_id":"0x00000015","command_name":"enquire_link","command_status":"0x00000000","command_status_description":"No Error","sequence_number":27},"sourceData":""} [2022-03-11 14:07:06] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:07:16] [DEBUG] [PID:35790]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:09:39] [NOTICE] [PID:35850]: Connection from 127.0.0.1:46774 [] [2022-03-11 14:09:39] [NOTICE] [PID:35850]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:09:39', '2022-03-11 14:09:39', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303800"] [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110408},"sourceData":""} [2022-03-11 14:09:39] [DEBUG] [PID:35850]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:09:40] [DEBUG] [PID:35850]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:09:40] [DEBUG] [PID:35850]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:09:40] [INFO] [PID:35850]: Client was send unbind. [] [2022-03-11 14:09:40] [DEBUG] [PID:35850]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:09:40] [DEBUG] [PID:35850]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:09:57] [NOTICE] [PID:35853]: Connection from 127.0.0.1:46776 [] [2022-03-11 14:09:57] [NOTICE] [PID:35853]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:09:57', '2022-03-11 14:09:57', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034303900"] [2022-03-11 14:09:57] [DEBUG] [PID:35853]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110409},"sourceData":""} [2022-03-11 14:09:58] [DEBUG] [PID:35853]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:09:58] [DEBUG] [PID:35853]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:09:58] [DEBUG] [PID:35853]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:09:58] [INFO] [PID:35853]: Client was send unbind. [] [2022-03-11 14:09:58] [DEBUG] [PID:35853]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:09:58] [DEBUG] [PID:35853]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:11:33] [NOTICE] [PID:35858]: Connection from 127.0.0.1:46778 [] [2022-03-11 14:11:33] [NOTICE] [PID:35858]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:11:33', '2022-03-11 14:11:33', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313000"] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110410},"sourceData":""} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343038000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343038000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343039000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034303900"] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:11:33] [INFO] [PID:35858]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"ACCEPTED","err":"2"} [2022-03-11 14:11:33] [INFO] [PID:35858]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"DELIVERED","err":"2"} [2022-03-11 14:11:33] [INFO] [PID:35858]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"ACCEPTED","err":"2"} [2022-03-11 14:11:33] [INFO] [PID:35858]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"DELIVERED","err":"2"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c0000000400"] [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:11:33] [DEBUG] [PID:35858]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:11:33] [ERROR] [PID:35858]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:13:40] [NOTICE] [PID:35863]: Connection from 127.0.0.1:46780 [] [2022-03-11 14:13:40] [NOTICE] [PID:35863]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:13:40', '2022-03-11 14:13:40', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313100"] [2022-03-11 14:13:40] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110411},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343038000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343038000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343039000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343039000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343130000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034313000"] [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110410"},"sourceData":""} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110410"},"sourceData":""} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"ACCEPTED","err":"2"} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"DELIVERED","err":"2"} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"ACCEPTED","err":"2"} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"DELIVERED","err":"2"} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110410","stat":"ACCEPTED","err":"2"} [2022-03-11 14:13:41] [INFO] [PID:35863]: [Receipt] :: Receipt has been sent {"id":"1110410","stat":"DELIVERED","err":"2"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c0000000600"] [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:13:41] [DEBUG] [PID:35863]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:13:41] [ERROR] [PID:35863]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:13:50] [NOTICE] [PID:35866]: Connection from 127.0.0.1:46782 [] [2022-03-11 14:13:50] [NOTICE] [PID:35866]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:13:50', '2022-03-11 14:13:50', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313200"] [2022-03-11 14:13:50] [DEBUG] [PID:35866]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110412},"sourceData":""} [2022-03-11 14:13:51] [DEBUG] [PID:35866]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:13:51] [DEBUG] [PID:35866]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:13:51] [DEBUG] [PID:35866]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:13:51] [INFO] [PID:35866]: Client was send unbind. [] [2022-03-11 14:13:51] [DEBUG] [PID:35866]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:13:51] [DEBUG] [PID:35866]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:13:53] [NOTICE] [PID:35868]: Connection from 127.0.0.1:46784 [] [2022-03-11 14:13:53] [NOTICE] [PID:35868]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:13:53', '2022-03-11 14:13:53', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313300"] [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110413},"sourceData":""} [2022-03-11 14:13:53] [DEBUG] [PID:35868]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:13:54] [DEBUG] [PID:35868]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:13:54] [DEBUG] [PID:35868]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:13:54] [INFO] [PID:35868]: Client was send unbind. [] [2022-03-11 14:13:54] [DEBUG] [PID:35868]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:13:54] [DEBUG] [PID:35868]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:13:57] [NOTICE] [PID:35870]: Connection from 127.0.0.1:46786 [] [2022-03-11 14:13:57] [NOTICE] [PID:35870]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:13:57', '2022-03-11 14:13:57', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313400"] [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110414},"sourceData":""} [2022-03-11 14:13:57] [DEBUG] [PID:35870]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:13:58] [DEBUG] [PID:35870]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:13:58] [DEBUG] [PID:35870]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:13:58] [INFO] [PID:35870]: Client was send unbind. [] [2022-03-11 14:13:58] [DEBUG] [PID:35870]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:13:58] [DEBUG] [PID:35870]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:15:39] [NOTICE] [PID:36077]: Connection from 127.0.0.1:46788 [] [2022-03-11 14:15:39] [NOTICE] [PID:36077]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:15:39', '2022-03-11 14:15:39', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313500"] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110415},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343131000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343131000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343132000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343133000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343132000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343133000000004d000000050000000000000007000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343134000000004d000000050000000000000008000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034313400"] [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110411"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110411"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110412"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110413"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110412"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110413"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":7,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110414"},"sourceData":""} [2022-03-11 14:15:39] [DEBUG] [PID:36077]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":8,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110414"},"sourceData":""} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110411","stat":"ACCEPTED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110411","stat":"DELIVERED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110412","stat":"ACCEPTED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110413","stat":"ACCEPTED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110412","stat":"DELIVERED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110413","stat":"DELIVERED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110414","stat":"ACCEPTED","err":"2"} [2022-03-11 14:15:39] [INFO] [PID:36077]: [Receipt] :: Receipt has been sent {"id":"1110414","stat":"DELIVERED","err":"2"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c000000060000000011800000050000000c000000070000000011800000050000000c000000080000000010000000060000000000000003"] [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":7,"message_id":""},"sourceData":"00000011800000050000000c0000000700"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":8,"message_id":""},"sourceData":"00000011800000050000000c0000000800"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:15:40] [DEBUG] [PID:36077]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:15:40] [ERROR] [PID:36077]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:24:34] [NOTICE] [PID:36109]: Connection from 127.0.0.1:46790 [] [2022-03-11 14:24:34] [NOTICE] [PID:36109]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:24:34', '2022-03-11 14:24:34', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313600"] [2022-03-11 14:24:34] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110416},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343038000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343038000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343039000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343039000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343130000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343130000000004d000000050000000000000007000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343131000000004d000000050000000000000008000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343131000000004d000000050000000000000009000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343132000000004d00000005000000000000000a000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e00083131313034313300"] [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110408"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110409"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110410"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110410"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":7,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110411"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":8,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110411"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":9,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110412"},"sourceData":""} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":10,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110413"},"sourceData":""} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110408","stat":"DELIVERED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110409","stat":"DELIVERED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110410","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110410","stat":"DELIVERED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110411","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110411","stat":"DELIVERED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110412","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [INFO] [PID:36109]: [Receipt] :: Receipt has been sent {"id":"1110413","stat":"ACCEPTED","err":"2"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c000000060000000011800000050000000c000000070000000011800000050000000c000000080000000011800000050000000c000000090000000011800000050000000c0000000a00"] [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":7,"message_id":""},"sourceData":"00000011800000050000000c0000000700"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":8,"message_id":""},"sourceData":"00000011800000050000000c0000000800"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":9,"message_id":""},"sourceData":"00000011800000050000000c0000000900"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":10,"message_id":""},"sourceData":"00000011800000050000000c0000000a00"} [2022-03-11 14:24:35] [DEBUG] [PID:36109]: [SQL::ipfon] :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:24:35] [ERROR] [PID:36109]: [SQL::ipfon] :: ERROR: invalid input syntax for integer: "" LINE 1: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' ^ :: DELETE FROM ipfon_sms_deliv_queue WHERE msg_part_id = '' [] [2022-03-11 14:25:04] [NOTICE] [PID:36112]: Connection from 127.0.0.1:46792 [] [2022-03-11 14:25:04] [NOTICE] [PID:36112]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:04', '2022-03-11 14:25:04', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313700"] [2022-03-11 14:25:04] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110417},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU:RAW] :: send ["0000004d000000050000000000000001000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343132000000004d000000050000000000000002000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343133000000004d000000050000000000000003000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343134000000004d000000050000000000000004000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343134000000004d000000050000000000000005000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343135000000004d000000050000000000000006000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e000831313130343135000000004d000000050000000000000007000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000106001e000831313130343136000000004d000000050000000000000008000100343231393035383437393730000500616c7465726e65740004000000000000000000042300030300020427000102001e00083131313034313600"] [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110412"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110413"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110414"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":4,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110414"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":5,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110415"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":6,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110415"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":7,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":6,"receipted_message_id":"1110416"},"sourceData":""} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x00000005","command_name":"deliver_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":8,"service_type":null,"source_addr_ton":"1","source_addr_npi":"0","source_addr":"421905847970","dest_addr_ton":"5","dest_addr_npi":"0","destination_addr":"alternet","esm_class":4,"protocol_id":null,"priority_flag":null,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":0,"replace_if_present_flag":null,"data_coding":0,"sm_default_msg_id":null,"sm_length":0,"short_message":"","network_error_code":"\u0003\u0000\u0002","message_state":2,"receipted_message_id":"1110416"},"sourceData":""} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110412","stat":"DELIVERED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110413","stat":"DELIVERED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110414","stat":"ACCEPTED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110414","stat":"DELIVERED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110415","stat":"ACCEPTED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110415","stat":"DELIVERED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110416","stat":"ACCEPTED","err":"2"} [2022-03-11 14:25:05] [INFO] [PID:36112]: [Receipt] :: Receipt has been sent {"id":"1110416","stat":"DELIVERED","err":"2"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU:RAW] :: received ["00000011800000050000000c000000010000000011800000050000000c000000020000000011800000050000000c000000030000000011800000050000000c000000040000000011800000050000000c000000050000000011800000050000000c000000060000000011800000050000000c000000070000000011800000050000000c000000080000000010000000060000000000000003"] [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":1,"message_id":""},"sourceData":"00000011800000050000000c0000000100"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":2,"message_id":""},"sourceData":"00000011800000050000000c0000000200"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":3,"message_id":""},"sourceData":"00000011800000050000000c0000000300"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":4,"message_id":""},"sourceData":"00000011800000050000000c0000000400"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":5,"message_id":""},"sourceData":"00000011800000050000000c0000000500"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":6,"message_id":""},"sourceData":"00000011800000050000000c0000000600"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":7,"message_id":""},"sourceData":"00000011800000050000000c0000000700"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x80000005","command_name":"deliver_sm_resp","command_status":"0x0000000c","command_status_description":"Message ID is invalid","sequence_number":8,"message_id":""},"sourceData":"00000011800000050000000c0000000800"} [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:05] [INFO] [PID:36112]: Client was send unbind. [] [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:05] [DEBUG] [PID:36112]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:06] [NOTICE] [PID:36114]: Connection from 127.0.0.1:46794 [] [2022-03-11 14:25:06] [NOTICE] [PID:36114]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:06', '2022-03-11 14:25:06', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313800"] [2022-03-11 14:25:06] [DEBUG] [PID:36114]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110418},"sourceData":""} [2022-03-11 14:25:07] [DEBUG] [PID:36114]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:07] [DEBUG] [PID:36114]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:07] [DEBUG] [PID:36114]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:07] [INFO] [PID:36114]: Client was send unbind. [] [2022-03-11 14:25:07] [DEBUG] [PID:36114]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:07] [DEBUG] [PID:36114]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:08] [NOTICE] [PID:36116]: Connection from 127.0.0.1:46796 [] [2022-03-11 14:25:08] [NOTICE] [PID:36116]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:08', '2022-03-11 14:25:08', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034313900"] [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110419},"sourceData":""} [2022-03-11 14:25:08] [DEBUG] [PID:36116]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:09] [DEBUG] [PID:36116]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:09] [DEBUG] [PID:36116]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:09] [INFO] [PID:36116]: Client was send unbind. [] [2022-03-11 14:25:09] [DEBUG] [PID:36116]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:09] [DEBUG] [PID:36116]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:10] [NOTICE] [PID:36118]: Connection from 127.0.0.1:46798 [] [2022-03-11 14:25:10] [NOTICE] [PID:36118]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:10', '2022-03-11 14:25:10', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034323000"] [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110420},"sourceData":""} [2022-03-11 14:25:10] [DEBUG] [PID:36118]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:11] [DEBUG] [PID:36118]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:11] [DEBUG] [PID:36118]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:11] [INFO] [PID:36118]: Client was send unbind. [] [2022-03-11 14:25:11] [DEBUG] [PID:36118]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:11] [DEBUG] [PID:36118]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:12] [NOTICE] [PID:36120]: Connection from 127.0.0.1:46800 [] [2022-03-11 14:25:12] [NOTICE] [PID:36120]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:12', '2022-03-11 14:25:12', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034323100"] [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110421},"sourceData":""} [2022-03-11 14:25:12] [DEBUG] [PID:36120]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:13] [DEBUG] [PID:36120]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:13] [DEBUG] [PID:36120]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:13] [INFO] [PID:36120]: Client was send unbind. [] [2022-03-11 14:25:13] [DEBUG] [PID:36120]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:13] [DEBUG] [PID:36120]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:14] [NOTICE] [PID:36122]: Connection from 127.0.0.1:46802 [] [2022-03-11 14:25:14] [NOTICE] [PID:36122]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:14', '2022-03-11 14:25:14', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034323200"] [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110422},"sourceData":""} [2022-03-11 14:25:14] [DEBUG] [PID:36122]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:15] [DEBUG] [PID:36122]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:15] [DEBUG] [PID:36122]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:15] [INFO] [PID:36122]: Client was send unbind. [] [2022-03-11 14:25:15] [DEBUG] [PID:36122]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:15] [DEBUG] [PID:36122]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:15] [NOTICE] [PID:36124]: Connection from 127.0.0.1:46806 [] [2022-03-11 14:25:15] [NOTICE] [PID:36124]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:15] [DEBUG] [PID:36124]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:15] [DEBUG] [PID:36124]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:15] [DEBUG] [PID:36124]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:15] [DEBUG] [PID:36124]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:15] [DEBUG] [PID:36124]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:15', '2022-03-11 14:25:15', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034323300"] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110423},"sourceData":""} [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:16] [INFO] [PID:36124]: Client was send unbind. [] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:16] [DEBUG] [PID:36124]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""} [2022-03-11 14:25:17] [NOTICE] [PID:36126]: Connection from 127.0.0.1:46808 [] [2022-03-11 14:25:17] [NOTICE] [PID:36126]: The binding was successfull {"system_id":"yatesms1","system_type":"smpp","interface_version":52,"addr_ton":1,"addr_npi":0,"address_range":"","type":"transceiver","ip":"127.0.0.1","identity":{"id":"6","evid":"770411174","username":"yatesms1","activation":"2019-04-25 11:52:26.641411","deactivation":null,"acl":"127.0.0.1","chk_dst_enabled":"f","chk_dst_list":null,"chk_senderid_enabled":"f","chk_senderid_default":null,"allow_http":"t","allow_smtp":"f","allow_smpp":"t","blocked":"f","register_senderid":"1","max_connections":"0","smpp_server_config":{"useBinaryDeliveryReceipt":true,"defaultEncoding":"GSM8"},"allow_select_route":"f","allowed_routes":null,"allowed_sender_ids":[],"account_type":"sms"}} [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU:RAW] :: send ["0000001980000009000000000000000179617465736d733100"] [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU] :: send {"pdu":{"command_id":"0x80000009","command_name":"bind_transceiver_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":1,"system_id":"yatesms1"},"sourceData":""} [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU:RAW] :: received ["00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"] [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU] :: received {"pdu":{"command_id":"0x00000004","command_name":"submit_sm","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"service_type":"SMPP","source_addr_ton":5,"source_addr_npi":0,"source_addr":"alternet","dest_addr_ton":1,"dest_addr_npi":0,"destination_addr":"421905847970","esm_class":0,"protocol_id":0,"priority_flag":0,"schedule_delivery_time":null,"validity_period":null,"registered_delivery":1,"replace_if_present_flag":0,"data_coding":0,"sm_default_msg_id":0,"sm_length":12,"short_message":"Obsah spravy"},"sourceData":"00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679"} [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [SQL::ipfon] :: INSERT INTO ipfon_sms_out_queue ("evid", "from_ip", "time_queued", "time_send", "src", "src_gw", "dst", "flash", "payload", "src_ton", "src_npi", "dst_ton", "dst_npi", "esm_class", "priority", "refno", "parts", "partno", "src_proto", "src_account_id", "src_account_type", "allowed_dst_gw", "delivreq", "bits", "content", "character_encoding", "type", "local_id") VALUES ('770411174', '127.0.0.1', '2022-03-11 14:25:17', '2022-03-11 14:25:17', 'alternet', 'yatesms1', '421905847970', FALSE, '00000045000000040000000000000002534d5050000500616c7465726e6574000100343231393035383437393730000000000000010000000c4f6273616820737072617679', 5, 0, 1, 0, 0, NULL, NULL, 1, 0, 'smpp', '6', 'sms', NULL, TRUE, 7, 'Obsah spravy', 'GSM8', 'SMS', nextval('ipfon_sms_local_id_seq')) RETURNING local_id [] [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [SQL::ipfon] :: NOTIFY notify_router; [] [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU:RAW] :: send ["000000188000000400000000000000023131313034323400"] [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [PDU] :: send {"pdu":{"command_id":"0x80000004","command_name":"submit_sm_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":2,"message_id":1110424},"sourceData":""} [2022-03-11 14:25:17] [DEBUG] [PID:36126]: [SQL::ipfon] :: UPDATE ipfon_sms_deliv_queue SET time_processed = NOW(), retries = ipfon_sms_deliv_queue.retries + 1 FROM ( SELECT ipfon_sms_deliv_queue.id, ipfon_sms_deliv_queue.msg_part_id FROM ipfon_sms_deliv_queue RIGHT JOIN ipfon_sms_out_log ON (ipfon_sms_deliv_queue.msg_part_id = ipfon_sms_out_log.local_id AND ipfon_sms_deliv_queue.partno = ipfon_sms_out_log.partno) WHERE ipfon_sms_deliv_queue.src_account_id = '6' AND ipfon_sms_deliv_queue.src_account_type = 'sms' AND ipfon_sms_deliv_queue.src_proto = 'smpp' AND ipfon_sms_deliv_queue.retries < 5 AND (ipfon_sms_deliv_queue.time_processed IS NULL OR ipfon_sms_deliv_queue.time_processed < (now() - '2 minute'::interval)) ORDER BY ipfon_sms_deliv_queue.id ASC LIMIT 10) ismdq RIGHT JOIN ipfon_sms_out_log ON ipfon_sms_out_log.local_id = ismdq.msg_part_id WHERE ipfon_sms_deliv_queue.id = ismdq.id RETURNING ipfon_sms_deliv_queue.*, ipfon_sms_out_log.id AS remote_msg_id, ipfon_sms_out_log.dst_ton, ipfon_sms_out_log.dst_npi, ipfon_sms_out_log.dst, ipfon_sms_out_log.src_ton, ipfon_sms_out_log.src_npi, ipfon_sms_out_log.src, ipfon_sms_out_log.priority, ipfon_sms_out_log.time_sent AS submit_date, ipfon_sms_out_log.content::varchar(20) AS text [] [2022-03-11 14:25:18] [DEBUG] [PID:36126]: [PDU:RAW] :: received ["00000010000000060000000000000003"] [2022-03-11 14:25:18] [DEBUG] [PID:36126]: [PDU] :: received {"pdu":{"command_id":"0x00000006","command_name":"unbind","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":"00000010000000060000000000000003"} [2022-03-11 14:25:18] [INFO] [PID:36126]: Client was send unbind. [] [2022-03-11 14:25:18] [DEBUG] [PID:36126]: [PDU:RAW] :: send ["00000010800000060000000000000003"] [2022-03-11 14:25:18] [DEBUG] [PID:36126]: [PDU] :: send {"pdu":{"command_id":"0x80000006","command_name":"unbind_resp","command_status":"0x00000000","command_status_description":"No Error","sequence_number":3},"sourceData":""}