Hi All,

I am attempting to recieve SMS using Kannel however I am running into issues. I intermittently get the response 'Could not fetch content, sorry.' but not all of the time. When I do get messages through, they appear in my core log, as follows:

sudo tail -n 1000 /var/log/kannel/recv/acc_core.log
2012-07-09 21:40:29 Log begins
2012-07-09 21:41:16 Receive SMS [SMSC:recv_hsl] [SVC:] [ACT:8888888343] [BINF:]  0:request getprofile?12&auth=dev] [udh:0:]
2012-07-09 21:44:43 Receive SMS [SMSC:recv_hsl] [SVC:] [ACT:8888888343] [BINF:]  0:request getprofile?12&auth=dev] [udh:0:]
2012-07-09 21:45:24 Receive SMS [SMSC:recv_hsl] [SVC:] [ACT:8888888343] [BINF:]  3:request getprofile?34&auth=jaqtpw] [udh:0:]


However, the smsbox log is completely blank (is this normal?)

sudo tail /var/log/kannel/recv/log_smsbox.log -n 1000
2012-07-09 21:40:39 [15353] [0] INFO: Added logfile `/var/log/kannel/recv/log_smsbox.log' with level `0'.
2012-07-09 21:40:39 [15353] [0] INFO: Service global sender set as '44779788****'
2012-07-09 21:40:39 [15353] [0] INFO: Logging accesses to '/var/log/kannel/recv/acc_smsbox.log'.
2012-07-09 21:40:39 [15353] [0] INFO: Started access logfile `/var/log/kannel/recv/acc_smsbox.log'.
2012-07-09 21:40:39 [15353] [0] INFO: HTTP: Opening server at port 13013.
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2012-07-09 21:40:39 [15353] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 15353.
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2012-07-09 21:40:39 [15353] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 15353.
2012-07-09 21:40:39 [15353] [2] DEBUG: HTTP: Including port 13013, fd 10 for polling in server thread
2012-07-09 21:40:39 [15353] [0] INFO: Set up send sms service at port 13013
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2012-07-09 21:40:39 [15353] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 15353.
2012-07-09 21:40:39 [15353] [0] DEBUG: ----------------------------------------------
2012-07-09 21:40:39 [15353] [0] DEBUG: Kannel smsbox version svn-r4979 starting
2012-07-09 21:40:39 [15353] [0] DEBUG:   dumping group (sendsms-user):
2012-07-09 21:40:39 [15353] [0] DEBUG:     <group> = <sendsms-user>
2012-07-09 21:40:39 [15353] [0] DEBUG:     <username> = <foo>
2012-07-09 21:40:39 [15353] [0] DEBUG:     <password> = <bar>
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2012-07-09 21:40:39 [15353] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 15353.
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2012-07-09 21:40:39 [15353] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 15353.
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2012-07-09 21:40:39 [15353] [0] DEBUG: Connecting to <127.0.0.1>
2012-07-09 21:40:39 [15353] [0] INFO: Connected to bearerbox at localhost port 13005.
2012-07-09 21:40:39 [15353] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2012-07-09 21:40:39 [15353] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 15353.
2012-07-09 21:40:39 [15353] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 15353.


However, the PDU data can be found in the bearerbox (core) log:

2012-07-09 21:45:16 [15323] [4] WARNING: smsbox_list empty!
2012-07-09 21:45:16 [15323] [4] WARNING: smsbox_list empty!
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP[recv_hsl]: throughput (0.00,0.00)
2012-07-09 21:45:24 [15323] [6] DEBUG: Optional parameter tag (0x1406)
2012-07-09 21:45:24 [15323] [6] DEBUG: Optional parameter length read as 7
2012-07-09 21:45:24 [15323] [6] WARNING: SMPP: Unknown TLV(0x1406,0x0007,21709012547140) for PDU type (deliver_sm) received!
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP[recv_hsl]: Got PDU:
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP PDU 0x99f97e0 dump:
2012-07-09 21:45:24 [15323] [6] DEBUG:   type_name: deliver_sm
2012-07-09 21:45:24 [15323] [6] DEBUG:   command_id: 5 = 0x00000005
2012-07-09 21:45:24 [15323] [6] DEBUG:   command_status: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   sequence_number: 3 = 0x00000003
2012-07-09 21:45:24 [15323] [6] DEBUG:   service_type: NULL
2012-07-09 21:45:24 [15323] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
2012-07-09 21:45:24 [15323] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2012-07-09 21:45:24 [15323] [6] DEBUG:   source_addr: "447590571833"
2012-07-09 21:45:24 [15323] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
2012-07-09 21:45:24 [15323] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001
2012-07-09 21:45:24 [15323] [6] DEBUG:   destination_addr: "447797882105"
2012-07-09 21:45:24 [15323] [6] DEBUG:   esm_class: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   protocol_id: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   priority_flag: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   schedule_delivery_time: NULL
2012-07-09 21:45:24 [15323] [6] DEBUG:   validity_period: NULL
2012-07-09 21:45:24 [15323] [6] DEBUG:   registered_delivery: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   data_coding: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   sm_length: 33 = 0x00000021
2012-07-09 21:45:24 [15323] [6] DEBUG:   short_message:
2012-07-09 21:45:24 [15323] [6] DEBUG:    Octet string at 0x99f9628:
2012-07-09 21:45:24 [15323] [6] DEBUG:      len:  33
2012-07-09 21:45:24 [15323] [6] DEBUG:      size: 34
2012-07-09 21:45:24 [15323] [6] DEBUG:      immutable: 0
2012-07-09 21:45:24 [15323] [6] DEBUG:      data: 72 65 71 75 65 73 74 20 67 65 74 70 72 6f 66 69   request getprofi
2012-07-09 21:45:24 [15323] [6] DEBUG:      data: 6c 65 3f 33 34 26 61 75 74 68 3d 6a 61 71 74 70   le?34&auth=jaqtp
2012-07-09 21:45:24 [15323] [6] DEBUG:      data: 77                                                w
2012-07-09 21:45:24 [15323] [6] DEBUG:    Octet string dump ends.
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP PDU dump ends.
2012-07-09 21:45:24 [15323] [6] WARNING: smsbox_list empty!
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP[recv_hsl]: Sending PDU:
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP PDU 0x99f96d8 dump:
2012-07-09 21:45:24 [15323] [6] DEBUG:   type_name: deliver_sm_resp
2012-07-09 21:45:24 [15323] [6] DEBUG:   command_id: 2147483653 = 0x80000005
2012-07-09 21:45:24 [15323] [6] DEBUG:   command_status: 0 = 0x00000000
2012-07-09 21:45:24 [15323] [6] DEBUG:   sequence_number: 3 = 0x00000003
2012-07-09 21:45:24 [15323] [6] DEBUG:   message_id: NULL
2012-07-09 21:45:24 [15323] [6] DEBUG: SMPP PDU dump ends.


The biggest concern seems to be: [6] WARNING: smsbox_list empty! however I am unsure what this means.

My configuration file for sms-service is as follows:

group                           = sms-service
keyword-regex                   = request
catch-all                       = true
get-url                         = "http://192.168.2.50/sms.php?key_word=%s&next_word=%S&url_word=%r&all_word=%a&binary_form=%b&time_formatted=%t&time_epoch=%T&sender=%p&receiver=%P&sender_formatted=%q&receiver_formatted=%Q&smsc_id=%i&sms_id=%I&dlr_value=%d&smsc_reply=%A&sendsms_user=%n&msg_encoding=%c&message_charset=%C&udh=%u&billing=%B&account_aggregator=%o"
accept-x-kannel-headers         = true
concatenation                   = true
max-messages                    = 0

group                           = sms-service
keyword                         = nop
text                            = "You asked nothing and I did it!"
catch-all                       = true

group                           = sms-service
keyword                         = default
text                            = "No service specified"


When I send SMS I use a dlr-url and dlr-mask and I have confirmed that the php script I have written to parse the arguments above works; however it is not called when I send an SMS to the Kannel MSISDN.

The SMS content is: request getprofile?12&auth=dev

Any help or pointers would be hugely appreciated!

Kind Regards,

Christopher

--
Christopher Burke
Software Engineer / Smart Card Developer
Mobile: +44 7590 571 833
Skype:krslynx

Reply via email to