Hi, You need to specify sender in your deliver-sm PDU, otherwise smsbox doesn't know where to send the response:
2010-04-27 03:52:55 [6560] [4] ERROR: smsbox_req_thread: no sender/receiver, dump follows: BR, Nikos ----- Original Message ----- From: Akintayo A. Olusegun To: [email protected] Sent: Tuesday, April 27, 2010 5:58 PM Subject: get-url problems I want get-url to call a url not on localhost but on another box that is on the same local network. Typing the url on the browser(or lynx) works fine and data is inserted to the database(which is what the url should do) but whenever I sent a message to kannel from my smsc(notice the smsc is a simulated one, hosted on the same box as the get-url script) it recieves the message based on the logs, but the get-url is not called. Here is my kannel.conf # CORE group = core admin-port = 13000 admin-password = cyberdeen status-password = cyberdeen_status log-file = "/var/log/kannel/kannel.log" log-level = 0 access-log = "/var/log/kannel/access.log" wapbox-port = 13002 smsbox-port = 13001 store-file = "/var/log/kannel/kannel.store" # SMSC Fake group = smsc smsc = smpp smsc-id = HannahMontana host = 192.168.0.104 port = 16272 receive-port = 16272 smsc-username = pavel smsc-password = wpsd system-type = 'VMA' service-type = 'test' interface-version = 34 address-range = '' msg-id-type = 0 group = sms-service keyword = default catch-all = true concatenation = true get-url = http://192.168.0.104/tss/get_kannel_message.php?phone=%p&text=%a #test user group = sendsms-user username = peter password = ford concatenation = true default-smsc = HannahMontana # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13014 sendsms-chars = "0123456789+" global-sender = "+358401234567" log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/access.log" # Wapbox related group = wapbox bearerbox-host = localhost log-file = "/tmp/wapbox.log" log-level = 0 access-log = "/tmp/wapaccess.log" syslog-level = none map-url = "http://127.0.0.1/* http://127.0.0.1:8080/*" http-interface-name = localhost #wapbox-port = 13002 #udp-deny-ip = "*.*.*.*" #udp-allow-ip = "127.0.0.1" #wdp-interface-name = "*" #--- mysql connection #group = mysql-connection #id = mydlr #host = localhost #username = root #password = ,ysql #database = kannel #max-connections = 1 #---- DLR table structure #group = dlr-db #id = mydlr #table = kannel_dlr #field-smsc = smsc #field-timestamp = timestamp #field-destination = destination #field-source = source #field-service = service #field-url = url #field-mask = mask #field-status = status #field-boxc-id = boxc_id here is kannel.log 2010-04-27 03:52:37 [6547] [7] DEBUG: SMPP[HannahMontana]: Got PDU: 2010-04-27 03:52:37 [6547] [7] DEBUG: SMPP PDU 0x8cb1930 dump: 2010-04-27 03:52:37 [6547] [7] DEBUG: type_name: bind_receiver_resp 2010-04-27 03:52:37 [6547] [7] DEBUG: command_id: 2147483649 = 0x80000001 2010-04-27 03:52:37 [6547] [7] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:52:37 [6547] [7] DEBUG: sequence_number: 2 = 0x00000002 2010-04-27 03:52:37 [6547] [7] DEBUG: system_id: "Smsc Simulator" 2010-04-27 03:52:37 [6547] [7] DEBUG: SMPP PDU dump ends. 2010-04-27 03:52:42 [6547] [5] INFO: Client connected from <127.0.0.1> 2010-04-27 03:52:42 [6547] [13] DEBUG: Thread 13 (gw/bb_boxc.c:function) maps to pid 6547. 2010-04-27 03:52:42 [6547] [5] DEBUG: Started thread 13 (gw/bb_boxc.c:function) 2010-04-27 03:52:42 [6547] [14] DEBUG: Thread 14 (gw/bb_boxc.c:boxc_sender) maps to pid 6547. 2010-04-27 03:52:42 [6547] [13] DEBUG: Started thread 14 (gw/bb_boxc.c:boxc_sender) 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP[HannahMontana]: Got PDU: 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP PDU 0x8cb1a78 dump: 2010-04-27 03:52:55 [6547] [6] DEBUG: type_name: deliver_sm 2010-04-27 03:52:55 [6547] [6] DEBUG: command_id: 5 = 0x00000005 2010-04-27 03:52:55 [6547] [6] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: sequence_number: 3 = 0x00000003 2010-04-27 03:52:55 [6547] [6] DEBUG: service_type: NULL 2010-04-27 03:52:55 [6547] [6] DEBUG: source_addr_ton: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: source_addr: NULL 2010-04-27 03:52:55 [6547] [6] DEBUG: dest_addr_ton: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: dest_addr_npi: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: destination_addr: "08089370313" 2010-04-27 03:52:55 [6547] [6] DEBUG: esm_class: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: protocol_id: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: priority_flag: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: schedule_delivery_time: NULL 2010-04-27 03:52:55 [6547] [6] DEBUG: validity_period: NULL 2010-04-27 03:52:55 [6547] [6] DEBUG: registered_delivery: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: data_coding: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: sm_length: 11 = 0x0000000b 2010-04-27 03:52:55 [6547] [6] DEBUG: short_message: "hello world" 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP PDU dump ends. 2010-04-27 03:52:55 [6547] [14] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2010-04-27 03:52:55 [6547] [14] DEBUG: boxc_sender: sent message to <127.0.0.1> 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP[HannahMontana]: Sending PDU: 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP PDU 0x8cb1b80 dump: 2010-04-27 03:52:55 [6547] [6] DEBUG: type_name: deliver_sm_resp 2010-04-27 03:52:55 [6547] [6] DEBUG: command_id: 2147483653 = 0x80000005 2010-04-27 03:52:55 [6547] [6] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:52:55 [6547] [6] DEBUG: sequence_number: 3 = 0x00000003 2010-04-27 03:52:55 [6547] [6] DEBUG: message_id: NULL 2010-04-27 03:52:55 [6547] [6] DEBUG: SMPP PDU dump ends. 2010-04-27 03:52:55 [6547] [13] DEBUG: boxc_receiver: got ack 2010-04-27 03:53:03 [6547] [13] DEBUG: boxc_receiver: heartbeat with load value 0 received 2010-04-27 03:53:03 [6547] [13] INFO: Connection closed by the box <127.0.0.1> 2010-04-27 03:53:03 [6547] [14] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2010-04-27 03:53:03 [6547] [14] DEBUG: Thread 14 (gw/bb_boxc.c:boxc_sender) terminates. 2010-04-27 03:53:03 [6547] [13] DEBUG: Thread 13 (gw/bb_boxc.c:function) terminates. 2010-04-27 03:53:06 [6547] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2010-04-27 03:53:06 [6547] [0] DEBUG: Shutting down Kannel... 2010-04-27 03:53:06 [6547] [0] DEBUG: shutting down smsc 2010-04-27 03:53:06 [6547] [0] DEBUG: Shutting down SMSCConn SMPP:192.168.0.104:16272/16272:pavel:'VMA' (slow) 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP[HannahMontana]: Sending unbind: 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP PDU 0x8caf1c0 dump: 2010-04-27 03:53:06 [6547] [6] DEBUG: type_name: unbind 2010-04-27 03:53:06 [6547] [6] DEBUG: command_id: 6 = 0x00000006 2010-04-27 03:53:06 [6547] [6] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:53:06 [6547] [6] DEBUG: sequence_number: 3 = 0x00000003 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP PDU dump ends. 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP[HannahMontana]: Got PDU: 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP PDU 0x8cac198 dump: 2010-04-27 03:53:06 [6547] [6] DEBUG: type_name: unbind_resp 2010-04-27 03:53:06 [6547] [6] DEBUG: command_id: 2147483654 = 0x80000006 2010-04-27 03:53:06 [6547] [6] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:53:06 [6547] [6] DEBUG: sequence_number: 3 = 0x00000003 2010-04-27 03:53:06 [6547] [6] DEBUG: SMPP PDU dump ends. 2010-04-27 03:53:06 [6547] [11] DEBUG: Thread 11 (gw/bearerbox.c:wdp_router) terminates. 2010-04-27 03:53:06 [6547] [10] DEBUG: Thread 10 (gw/bb_boxc.c:wapboxc_run) terminates. 2010-04-27 03:53:07 [6547] [6] DEBUG: SMPP[HannahMontana]: io_thread: break and shutting down 2010-04-27 03:53:07 [6547] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) terminates. 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP[HannahMontana]: Sending unbind: 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP PDU 0x8cac198 dump: 2010-04-27 03:53:07 [6547] [7] DEBUG: type_name: unbind 2010-04-27 03:53:07 [6547] [7] DEBUG: command_id: 6 = 0x00000006 2010-04-27 03:53:07 [6547] [7] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:53:07 [6547] [7] DEBUG: sequence_number: 4 = 0x00000004 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP PDU dump ends. 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP[HannahMontana]: Got PDU: 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP PDU 0x8cb1930 dump: 2010-04-27 03:53:07 [6547] [7] DEBUG: type_name: unbind_resp 2010-04-27 03:53:07 [6547] [7] DEBUG: command_id: 2147483654 = 0x80000006 2010-04-27 03:53:07 [6547] [7] DEBUG: command_status: 0 = 0x00000000 2010-04-27 03:53:07 [6547] [7] DEBUG: sequence_number: 4 = 0x00000004 2010-04-27 03:53:07 [6547] [7] DEBUG: SMPP PDU dump ends. 2010-04-27 03:53:07 [6547] [12] DEBUG: Dumping 0 messages to store 2010-04-27 03:53:08 [6547] [7] DEBUG: SMPP[HannahMontana]: io_thread: break and shutting down 2010-04-27 03:53:08 [6547] [7] DEBUG: Thread 7 (gw/smsc/smsc_smpp.c:io_thread) terminates. 2010-04-27 03:53:08 [6547] [0] DEBUG: SMSCConn SMPP:192.168.0.104:16272/16272:pavel:'VMA' shut down. 2010-04-27 03:53:08 [6547] [0] DEBUG: shutting down udp 2010-04-27 03:53:08 [6547] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates. 2010-04-27 03:53:08 [6547] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) terminates. 2010-04-27 03:53:08 [6547] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates. 2010-04-27 03:53:08 [6547] [0] INFO: All flow threads have died, killing core 2010-04-27 03:53:08 [6547] [3] DEBUG: HTTP: No clients with requests, quitting. 2010-04-27 03:53:08 [6547] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates. 2010-04-27 03:53:08 [6547] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2010-04-27 03:53:08 [6547] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2010-04-27 03:53:08 [6547] [0] DEBUG: final clean-up for SMSCConn 2010-04-27 03:53:08 [6547] [0] DEBUG: smsbox MO concatenated message handling cleaned up 2010-04-27 03:53:08 [6547] [12] DEBUG: Dumping 0 messages to store 2010-04-27 03:53:08 [6547] [12] DEBUG: Thread 12 (gw/bb_store_file.c:store_dumper) terminates. 2010-04-27 03:53:08 [6547] [0] INFO: Total WDP messages: received 0, sent 0 2010-04-27 03:53:08 [6547] [0] INFO: Total SMS messages: received 1, sent 0 2010-04-27 03:53:08 [6547] [0] DEBUG: Immutable octet strings: 232. smsbox.log 010-04-27 03:52:42 [6560] [0] DEBUG: Kannel smsbox version 1.4.3 starting 2010-04-27 03:52:42 [6560] [0] DEBUG: dumping group (sendsms-user): 2010-04-27 03:52:42 [6560] [0] DEBUG: <group> = <sendsms-user> 2010-04-27 03:52:42 [6560] [0] DEBUG: <default-smsc> = <HannahMontana> 2010-04-27 03:52:42 [6560] [0] DEBUG: <username> = <peter> 2010-04-27 03:52:42 [6560] [0] DEBUG: <concatenation> = <true> 2010-04-27 03:52:42 [6560] [0] DEBUG: <password> = <ford> 2010-04-27 03:52:42 [6560] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2010-04-27 03:52:42 [6560] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 6560. 2010-04-27 03:52:42 [6560] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2010-04-27 03:52:42 [6560] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 6560. 2010-04-27 03:52:42 [6560] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 6560. 2010-04-27 03:52:42 [6560] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2010-04-27 03:52:42 [6560] [0] INFO: Connected to bearerbox at localhost port 13001. 2010-04-27 03:52:42 [6560] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 6560. 2010-04-27 03:52:42 [6560] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2010-04-27 03:52:55 [6560] [4] ERROR: smsbox_req_thread: no sender/receiver, dump follows: 2010-04-27 03:52:55 [6560] [4] DEBUG: Msg object at 0x9c3a470: 2010-04-27 03:52:55 [6560] [4] DEBUG: type: sms 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.sender: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.receiver: 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string at 0x9c3a538: 2010-04-27 03:52:55 [6560] [4] DEBUG: len: 11 2010-04-27 03:52:55 [6560] [4] DEBUG: size: 12 2010-04-27 03:52:55 [6560] [4] DEBUG: immutable: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: data: 30 38 30 38 39 33 37 30 33 31 33 08089370313 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string dump ends. 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.udhdata: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.msgdata: 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string at 0x9c3a550: 2010-04-27 03:52:55 [6560] [4] DEBUG: len: 11 2010-04-27 03:52:55 [6560] [4] DEBUG: size: 12 2010-04-27 03:52:55 [6560] [4] DEBUG: immutable: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: data: 68 65 6c 6c 6f 20 77 6f 72 6c 64 hello world 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string dump ends. 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.time: 1272354775 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.smsc_id: 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string at 0x9c3a578: 2010-04-27 03:52:55 [6560] [4] DEBUG: len: 13 2010-04-27 03:52:55 [6560] [4] DEBUG: size: 14 2010-04-27 03:52:55 [6560] [4] DEBUG: immutable: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: data: 48 61 6e 6e 61 68 4d 6f 6e 74 61 6e 61 HannahMontana 2010-04-27 03:52:55 [6560] [4] DEBUG: Octet string dump ends. 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.smsc_number: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.foreign_id: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.service: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.account: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.id: f15cfa20-e6b8-426d-9c2a-b49fd0b74f8d 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.sms_type: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.mclass: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.mwi: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.coding: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.compress: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.validity: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.deferred: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.dlr_mask: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.dlr_url: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.pid: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.alt_dcs: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.rpi: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.charset: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.boxc_id: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.binfo: 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.msg_left: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.split_parts: (nil) 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.priority: 0 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.resend_try: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: sms.resend_time: -1 2010-04-27 03:52:55 [6560] [4] DEBUG: Msg object ends. 2010-04-27 03:53:03 [6560] [0] ERROR: SIGINT received, aborting program... 2010-04-27 03:53:03 [6560] [0] INFO: Received (and handled?) 1 requests in 8 seconds (0.12 per second) 2010-04-27 03:53:03 [6560] [0] INFO: Kannel smsbox terminating. 2010-04-27 03:53:03 [6560] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates. 2010-04-27 03:53:03 [6560] [3] DEBUG: HTTP: No clients with requests, quitting. 2010-04-27 03:53:03 [6560] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2010-04-27 03:53:03 [6560] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates. 2010-04-27 03:53:03 [6560] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2010-04-27 03:53:03 [6560] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2010-04-27 03:53:03 [6560] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates. 2010-04-27 03:53:03 [6560] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates. 2010-04-27 03:53:03 [6560] [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate 2010-04-27 03:53:03 [6560] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates. 2010-04-27 03:53:03 [6560] [0] DEBUG: Immutable octet strings: 231. Akintayo A. Olusegun unless otherwise stated
