Hi,

Please do not truncate or otherwise tamper logs, otherwise it is difficult to follow. It seems that you got an MO while sending the MT. The MT correctly received and processed the DLR, and the MO activated the sms-service. These are 2 completely different messages. Behaviour is normal.

BR,
Nikos
----- Original Message ----- From: "Sindu R" <riss.regis...@yahoo.com>
To: <users@kannel.org>
Sent: Tuesday, January 05, 2010 12:50 PM
Subject: Re: Question regarding working of smsbox and sendsms


Hi Nikos,

Thanks for responding.
Since yesterday, I made a slight change to the smsc configuration.

Changes made are:
transceiver-mode = 1
Therefore, receive-port commented out.

The behaviour still persists. The relevant sections of the logs are copied below after truncating some of the 'data' sections in the octet dump:

bearerbox log
--------------------
2010-01-05 14:48:50 [5976] [5] INFO: Client connected from <127.0.0.1>
2010-01-05 14:48:50 [5976] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 5976. 2010-01-05 14:48:50 [5976] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2010-01-05 14:48:50 [5976] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2010-01-05 14:48:50 [5976] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 5976.
2010-01-05 14:49:30 [5976] [8] DEBUG: boxc_receiver: sms received
2010-01-05 14:49:30 [5976] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP[testsmsc]: Sending PDU:
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU 0x85f7f0 dump:
2010-01-05 14:49:30 [5976] [6] DEBUG:  type_name: submit_sm
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_id: 4 = 0x00000004
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  service_type: "test"
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr_ton: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr_npi: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr: "12345"
2010-01-05 14:49:30 [5976] [6] DEBUG:  dest_addr_ton: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  dest_addr_npi: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG:  destination_addr: "54321"
2010-01-05 14:49:30 [5976] [6] DEBUG:  esm_class: 3 = 0x00000003
2010-01-05 14:49:30 [5976] [6] DEBUG:  protocol_id: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  priority_flag: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  schedule_delivery_time: NULL
2010-01-05 14:49:30 [5976] [6] DEBUG:  validity_period: NULL
2010-01-05 14:49:30 [5976] [6] DEBUG:  registered_delivery: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  data_coding: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sm_default_msg_id: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sm_length: 9 = 0x00000009
2010-01-05 14:49:30 [5976] [6] DEBUG:  short_message: "hello1449"
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP[testsmsc]: Got PDU:
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU 0x85f7f0 dump:
2010-01-05 14:49:30 [5976] [6] DEBUG:  type_name: submit_sm_resp
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_id: 2147483652 = 0x80000004
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  message_id: "0"
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:30 [5976] [6] DEBUG: DLR[internal]:
Adding DLR smsc=testsmsc, ts=0, src=12345, dst=54321, mask=31, boxc=
2010-01-05 14:49:30 [5976] [6] DEBUG: SMSC[testsmsc]: creating DLR message
2010-01-05 14:49:30 [5976] [6] DEBUG: SMSC[testsmsc]: DLR =
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP[testsmsc]: Got PDU:
2010-01-05 14:49:30 [5976] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU 0x861708 dump:
2010-01-05 14:49:30 [5976] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2010-01-05 14:49:30 [5976] [6] DEBUG:  type_name: deliver_sm
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_id: 5 = 0x00000005
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  service_type: "test"
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr_ton: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr_npi: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG:  source_addr: "12345"
2010-01-05 14:49:30 [5976] [6] DEBUG:  dest_addr_ton: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [6] DEBUG:  dest_addr_npi: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG:  destination_addr: "54321"
2010-01-05 14:49:30 [5976] [6] DEBUG:  esm_class: 3 = 0x00000003
2010-01-05 14:49:30 [5976] [6] DEBUG:  protocol_id: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [8] DEBUG: boxc_receiver: got ack
2010-01-05 14:49:30 [5976] [6] DEBUG:  priority_flag: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  schedule_delivery_time: NULL
2010-01-05 14:49:30 [5976] [6] DEBUG:  validity_period: NULL
2010-01-05 14:49:30 [5976] [6] DEBUG:  registered_delivery: 1 = 0x00000001
2010-01-05 14:49:30 [5976] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  data_coding: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sm_default_msg_id: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sm_length: 9 = 0x00000009
2010-01-05 14:49:30 [5976] [6] DEBUG:  short_message: "hello1449"
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP[testsmsc]: Sending PDU:
2010-01-05 14:49:30 [5976] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU 0x861548 dump:
2010-01-05 14:49:30 [5976] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2010-01-05 14:49:30 [5976] [6] DEBUG:  type_name: deliver_sm_resp
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_id: 2147483653 = 0x80000005
2010-01-05 14:49:30 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:30 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:30 [5976] [8] DEBUG: boxc_receiver: got ack
2010-01-05 14:49:30 [5976] [6] DEBUG:  message_id: NULL
2010-01-05 14:49:30 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP[testsmsc]: Got PDU:
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP PDU 0x8618a8 dump:
2010-01-05 14:49:35 [5976] [6] DEBUG:  type_name: deliver_sm
2010-01-05 14:49:35 [5976] [6] DEBUG:  command_id: 5 = 0x00000005
2010-01-05 14:49:35 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:35 [5976] [6] DEBUG:  service_type: "test"
2010-01-05 14:49:35 [5976] [6] DEBUG:  source_addr_ton: 2 = 0x00000002
2010-01-05 14:49:35 [5976] [6] DEBUG:  source_addr_npi: 1 = 0x00000001
2010-01-05 14:49:35 [5976] [6] DEBUG:  source_addr: "54321"
2010-01-05 14:49:35 [5976] [6] DEBUG:  dest_addr_ton: 2 = 0x00000002
2010-01-05 14:49:35 [5976] [6] DEBUG:  dest_addr_npi: 1 = 0x00000001
2010-01-05 14:49:35 [5976] [6] DEBUG:  destination_addr: "12345"
2010-01-05 14:49:35 [5976] [6] DEBUG:  esm_class: 4 = 0x00000004
2010-01-05 14:49:35 [5976] [6] DEBUG:  protocol_id: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  priority_flag: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  schedule_delivery_time: NULL
2010-01-05 14:49:35 [5976] [6] DEBUG:  validity_period: NULL
2010-01-05 14:49:35 [5976] [6] DEBUG:  registered_delivery: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  data_coding: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  sm_default_msg_id: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  sm_length: 102 = 0x00000066
2010-01-05 14:49:35 [5976] [6] DEBUG:  short_message:
2010-01-05 14:49:35 [5976] [6] DEBUG:    Octet string at 0x8619d0:
2010-01-05 14:49:35 [5976] [6] DEBUG:      len:  102
2010-01-05 14:49:35 [5976] [6] DEBUG:      size: 103
2010-01-05 14:49:35 [5976] [6] DEBUG:      immutable: 0
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: id:0 sub:001 dlv
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: submit da
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: te:1001051449 do
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: date:10010514
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: stat:DELIVRD
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: err:000 Text:hel
2010-01-05 14:49:35 [5976] [6] DEBUG:      data: lo1449
2010-01-05 14:49:35 [5976] [6] DEBUG:    Octet string dump ends.
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP[testsmsc] handle_pdu, got DLR
2010-01-05 14:49:35 [5976] [6] DEBUG: DLR[internal]:
Looking for DLR smsc=testsmsc, ts=0, dst=54321, type=1
2010-01-05 14:49:35 [5976] [6] DEBUG: DLR[internal]:
created DLR message for URL <>
2010-01-05 14:49:35 [5976] [9] DEBUG: send_msg: sending msg to box: <127.0.0..1>
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP[testsmsc]: Sending PDU:
2010-01-05 14:49:35 [5976] [9] DEBUG: boxc_sender: sent message to <127.0.0..1>
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP PDU 0x861530 dump:
2010-01-05 14:49:35 [5976] [6] DEBUG:  type_name: deliver_sm_resp
2010-01-05 14:49:35 [5976] [6] DEBUG:  command_id: 2147483653 = 0x80000005
2010-01-05 14:49:35 [5976] [6] DEBUG:  command_status: 0 = 0x00000000
2010-01-05 14:49:35 [5976] [6] DEBUG:  sequence_number: 2 = 0x00000002
2010-01-05 14:49:35 [5976] [6] DEBUG:  message_id: NULL
2010-01-05 14:49:35 [5976] [6] DEBUG: SMPP PDU dump ends.
2010-01-05 14:49:35 [5976] [8] DEBUG: boxc_receiver: got ack
2010-01-05 14:49:46 [5976] [8] DEBUG: boxc_receiver:
heartbeat with load value 0 received
2010-01-05 14:49:46 [5976] [8] INFO: Connection closed by the box <127.0.0.1> 2010-01-05 14:49:46 [5976] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>

smsbox log:
-----------------
2010-01-05 14:49:30 [5668] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-01-05 14:49:30 [5668] [2] DEBUG: HTTP: Created HTTPClient area 0x7cb5b0. 2010-01-05 14:49:30 [5668] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2010-01-05 14:49:30 [5668] [3] INFO: sendsms used by <tester>
2010-01-05 14:49:30 [5668] [3] INFO: sendsms
sender:<tester:12345> (127.0.0.1) to:<54321> msg:<hello1449>
2010-01-05 14:49:30 [5668] [3] DEBUG: Stored UUID 5471d21f-c197-4509-b2bd-6a2abf2b4431
2010-01-05 14:49:30 [5668] [3] DEBUG: message length 9, sending 1 messages
2010-01-05 14:49:30 [5668] [3] DEBUG: Status: 202 Answer: <Sent.>
2010-01-05 14:49:30 [5668] [3] DEBUG: Delayed reply - wait for bearerbox
2010-01-05 14:49:30 [5668] [0] DEBUG: Got ACK (0) of 5471d21f-c197-4509-b2bd-6a2abf2b4431 2010-01-05 14:49:30 [5668] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2010-01-05 14:49:30 [5668] [4] INFO: Starting delivery report <tester> from <12345> 2010-01-05 14:49:30 [5668] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps to pid 5668. 2010-01-05 14:49:30 [5668] [4] DEBUG: Started thread 8 (gwlib/fdset.c:poller) 2010-01-05 14:49:30 [5668] [4] DEBUG: Started thread 9 (gwlib/http.c:write_request_thread) 2010-01-05 14:49:30 [5668] [9] DEBUG: Thread 9 (gwlib/http.c:write_request_thread) maps to pid 5668.
2010-01-05 14:49:30 [5668] [9] DEBUG: Queue contains 0 pending requests.
2010-01-05 14:49:30 [5668] [9] DEBUG: Parsing URL
`http://localhost:8080/forKannel/readDlrMask.jsp?type=8&receiver=54321&reply=ACK%2F
&time=2010-01-05+09:19:30&usr=tester&message=ACK%2F':
2010-01-05 14:49:30 [5668] [9] DEBUG:  Scheme: http://
2010-01-05 14:49:30 [5668] [9] DEBUG:  Host: localhost
2010-01-05 14:49:30 [5668] [9] DEBUG:  Port: 8080
2010-01-05 14:49:30 [5668] [9] DEBUG:  Username: (null)
2010-01-05 14:49:30 [5668] [9] DEBUG:  Password: (null)
2010-01-05 14:49:30 [5668] [9] DEBUG:  Path: /forKannel/readDlrMask.jsp
2010-01-05 14:49:30 [5668] [9] DEBUG:
Query: type=8&receiver=54321&reply=ACK%2F&time=2010-01-05+09:19:30&usr=tester&message=ACK%2F
2010-01-05 14:49:30 [5668] [9] DEBUG:  Fragment: (null)
2010-01-05 14:49:30 [5668] [9] DEBUG: HTTP: Opening connection to `localhost:8080' (fd=29).
2010-01-05 14:49:30 [5668] [9] DEBUG: Socket connecting
2010-01-05 14:49:30 [5668] [8] DEBUG: Get info about connecting socket
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Sending request:
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string at 0x7cec10:
2010-01-05 14:49:30 [5668] [8] DEBUG:  len:  201
2010-01-05 14:49:30 [5668] [8] DEBUG:  size: 1024
2010-01-05 14:49:30 [5668] [8] DEBUG:  immutable: 0
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: GET /forKannel/r
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: eadDlrMask.jsp?t
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ype=8&receiver=5
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 4321&reply=ACK%2
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: F&time=2010-01-0
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 5+09:19:30&usr=t
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ester&message=AC
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: K%2F HTTP/1.1..H
2010-01-05 14:49:30 [5668] [4] INFO: Starting to service <hello1449> from <12345> to <54321>
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ost: localhost:8
2010-01-05 14:49:30 [5668] [9] DEBUG: Queue contains 0 pending requests.
2010-01-05 14:49:30 [5668] [9] DEBUG: Parsing URL
`http://localhost:8080/forKannel/hello.jsp?mobileNumber=12345&text=hello1449':
2010-01-05 14:49:30 [5668] [8] DEBUG:  data:   080..Connection:
2010-01-05 14:49:30 [5668] [9] DEBUG:  Scheme: http://
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: keep-alive..Use
2010-01-05 14:49:30 [5668] [9] DEBUG:  Host: localhost
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: r-Agent: Kannel/
2010-01-05 14:49:30 [5668] [9] DEBUG:  Port: 8080
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 1.4.3....
2010-01-05 14:49:30 [5668] [9] DEBUG:  Username: (null)
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string dump ends.
2010-01-05 14:49:30 [5668] [9] DEBUG:  Password: (null)
2010-01-05 14:49:30 [5668] [9] DEBUG:  Path: /forKannel/hello.jsp
2010-01-05 14:49:30 [5668] [9] DEBUG: Query: mobileNumber=12345&text=hello1449
2010-01-05 14:49:30 [5668] [9] DEBUG:  Fragment: (null)
2010-01-05 14:49:30 [5668] [9] DEBUG: HTTP: Opening connection to `localhost:8080' (fd=30).
2010-01-05 14:49:30 [5668] [9] DEBUG: Socket connecting
2010-01-05 14:49:30 [5668] [8] DEBUG: Get info about connecting socket
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Sending request:
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string at 0x7cdcf8:
2010-01-05 14:49:30 [5668] [8] DEBUG:  len:  143
2010-01-05 14:49:30 [5668] [8] DEBUG:  size: 1024
2010-01-05 14:49:30 [5668] [8] DEBUG:  immutable: 0
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: GET /forKannel/h
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ello.jsp?mobileN
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: umber=12345&text
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: =hello1449 HTTP/
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 1.1..Host: local
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: host:8080..Conne
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ction: keep-aliv
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: e..User-Agent: K
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: annel/1.4.3....
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string dump ends.
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Received response:
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string at 0x7d0118:
2010-01-05 14:49:30 [5668] [8] DEBUG:  len:  155
2010-01-05 14:49:30 [5668] [8] DEBUG:  size: 1024
2010-01-05 14:49:30 [5668] [8] DEBUG:  immutable: 0
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: Server: Apache-C
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: oyote/1.1..Set-C
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ookie: JSESSIONI
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: D=4BA62EF4688909
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 1017408E220C255F
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: D5; Path=/forKan
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: nel...Content-Typ
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: e: text/html..Co
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ntent-Length: 0.
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: .Date: ....
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string dump ends.
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2010-01-05 14:49:30 [5668] [8] DEBUG: HTTP: Received response:
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string at 0x7ced48:
2010-01-05 14:49:30 [5668] [8] DEBUG:  len:  186
2010-01-05 14:49:30 [5668] [8] DEBUG:  size: 1024
2010-01-05 14:49:30 [5668] [8] DEBUG:  immutable: 0
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: Server: Apache-C
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: oyote/1.1..Set-C
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ookie: JSESSIONI
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: D=630784909E1935
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: A0C2B86F8E99AE0C
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: 16; Path=/forKan
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: nel..Content-Typ
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: e: text/html..Co
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: ntent-Length: 2.
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: .Date: Tue, 05 J
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: an 2010 09:19:30
2010-01-05 14:49:30 [5668] [8] DEBUG:  data: GMT......
2010-01-05 14:49:30 [5668] [8] DEBUG: Octet string dump ends.
2010-01-05 14:49:35 [5668] [4] INFO: Starting delivery report <tester> from <12345>
2010-01-05 14:49:35 [5668] [9] DEBUG: Queue contains 0 pending requests.
2010-01-05 14:49:35 [5668] [9] DEBUG: Parsing URL
`http://localhost:8080/forKannel/readDlrMask.jsp?type=1&receiver=54321
&reply=id%3A0+sub%3A001+dlvrd%3A001+submit+date%3A1001051449+done+date%3A1001051449
+stat%3ADELIVRD+err%3A000+Text%3Ahello1449&time=2010-01-05+09:19:35
&usr=tester&message=id%3A0+sub%3A001+dlvrd%3A001+submit+date%3A1001051449
+done+date%3A1001051449+stat%3ADELIVRD+err%3A000+Text%3Ahello1449':
2010-01-05 14:49:35 [5668] [9] DEBUG:  Scheme: http://
2010-01-05 14:49:35 [5668] [9] DEBUG:  Host: localhost
2010-01-05 14:49:35 [5668] [9] DEBUG:  Port: 8080
2010-01-05 14:49:35 [5668] [9] DEBUG:  Username: (null)
2010-01-05 14:49:35 [5668] [9] DEBUG:  Password: (null)
2010-01-05 14:49:35 [5668] [9] DEBUG:  Path: /forKannel/readDlrMask.jsp
2010-01-05 14:49:35 [5668] [9] DEBUG:  Query: type=1&receiver=54321
&reply=id%3A0+sub%3A001+dlvrd%3A001+submit+date%3A1001051449
+done+date%3A1001051449+stat%3ADELIVRD+err%3A000+Text%3Ahello1449
&time=2010-01-05+09:19:35&usr=tester&message=id%3A0+sub%3A001+dlvrd%3A001
+submit+date%3A1001051449+done+date%3A1001051449+stat%3ADELIVRD+err%3A000+Text%3Ahello1449
2010-01-05 14:49:35 [5668] [9] DEBUG:  Fragment: (null)
2010-01-05 14:49:35 [5668] [9] DEBUG: HTTP: Reusing connection to `localhost:8080' (fd=29).
2010-01-05 14:49:35 [5668] [9] DEBUG: Socket connected at once
2010-01-05 14:49:35 [5668] [9] DEBUG: HTTP: Sending request:
2010-01-05 14:49:35 [5668] [9] DEBUG: Octet string at 0x7cdbf8:
2010-01-05 14:49:35 [5668] [9] DEBUG:  len:  425
2010-01-05 14:49:35 [5668] [9] DEBUG:  size: 1024
2010-01-05 14:49:35 [5668] [9] DEBUG:  immutable: 0
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: GET /forKannel/r
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: eadDlrMask.jsp?t
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: ype=1&receiver=5
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 4321&reply=id%3A
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 0+sub%3A001+dlvr
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: d%3A001+submit+d
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: ate%3A1001051449
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: +done+date%3A100
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 1051449+stat%3AD
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: ELIVRD+err%3A000
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: +Text%3Ahello144
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 9&time=2010-01-0
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 5+09:19:35&usr=t
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: ester&message=id
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: %3A0+sub%3A001+d
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: lvrd%3A001+submi
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: t+date%3A1001051
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 449+done+date%3A
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 1001051449+stat%
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 3ADELIVRD+err%3A
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 000+Text%3Ahello
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 1449 HTTP/1.1..H
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: ost: localhost:8
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 080..Connection:
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: keep-alive..Use
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: r-Agent: Kannel/
2010-01-05 14:49:35 [5668] [9] DEBUG:  data: 1.4.3....
2010-01-05 14:49:35 [5668] [9] DEBUG: Octet string dump ends.
2010-01-05 14:49:35 [5668] [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2010-01-05 14:49:35 [5668] [8] DEBUG: HTTP: Received response:
2010-01-05 14:49:35 [5668] [8] DEBUG: Octet string at 0x7cca20:
2010-01-05 14:49:35 [5668] [8] DEBUG:  len:  184
2010-01-05 14:49:35 [5668] [8] DEBUG:  size: 1024
2010-01-05 14:49:35 [5668] [8] DEBUG:  immutable: 0
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: Server: Apache-C
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: oyote/1.1..Set-C
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: ookie: JSESSIONI
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: D=5D89549EB8BBE0
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: E0F10F56DE6A7385
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: B1; Path=/forKan
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: nel..Content-Typ
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: e: text/html..Co
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: ntent-Length: 0.
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: .Date: Tue, 05 J
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: an 2010 09:19:35
2010-01-05 14:49:35 [5668] [8] DEBUG:  data: GMT....
2010-01-05 14:49:35 [5668] [8] DEBUG: Octet string dump ends.

smsbox access log
-----------------------------
2010-01-05 14:48:50 Log begins
2010-01-05 14:49:30 send-SMS request added -
sender:tester:12345 127.0.0.1 target:54321 request: 'hello1449'
2010-01-05 14:49:30 SMS HTTP-request sender:12345 request: ''
url: 'http://localhost:8080/forKannel/hello.jsp?mobileNumber=12345
&text=hello1449' reply: 200 '<< successful >>'


Is there something wrong with the configuration?

Thanks,
Sindu

--- On Mon, 4/1/10, Nikos Balkanas <n...@amdtelecom.net> wrote:

From: Nikos Balkanas <n...@amdtelecom.net>
Subject: Re: Question regarding working of smsbox and sendsms
To: "Sindu R" <riss.regis...@yahoo.com>, users@kannel.org
Date: Monday, 4 January, 2010, 6:02 PM
Hi,

It shouldn't. Can you please provide relevant logs
(bearerbox & smsbox) at maximum detail?

Thanks,
Nikos
----- Original Message ----- From: "Sindu R" <riss.regis...@yahoo.com>
To: <users@kannel.org>
Sent: Monday, January 04, 2010 2:04 PM
Subject: Question regarding working of smsbox and sendsms



Hello,
I am a kannel newbie who is trying to set up and configure
kannel.
My configuration is as follows:
- Kannel with Cygwin on Windows.
- Smsc: smpp simulator (http://www.seleniumsoftware.com/downloads.html)

The requirement was to test the setup for both MO and MT
messages.
The configuration file used is as follows:
# There is only one core group and it sets all basic
settings
# of the bearerbox (and system).
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = xxx
dlr-storage = internal
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log =3D "/tmp/access.log"

#---------------------------------------------
# SMSC CONNECTIONS
# Connection to the smpp simulato
group = smsc
smsc = smpp
smsc-id = testsmsc
host = 127.0.0.1
port = 2775
receive-port = 2775
smsc-username = xxxxxx
smsc-password = xxxxxx
system-type = 'VMA'
service-type = test
#transceiver-mode = 1
interface-version = 34
address-range = [0-9]
msg-id-type = 0

#---------------------------------------------
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 12345
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
#log-level =0
access-log = "/tmp/smsbox-access.log"

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface
is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=3Dtester&password=3Dfoobar...
group = sendsms-user
username = tester
password = foobar
default-smsc = testsmsc
dlr-url = http://localhost:8080/forKannel/readDlrMask.jsp?type=3D%d&receiver=%p&reply=%A&time=%t&usr=%n&message=%a
#user-deny-ip = ""
#user-allow-ip = ""

group = sms-service
keyword = default
#max-messages = 0
omit-empty = true
get-url=3Dhttp://localhost:8080/forKannel/hello.jsp?mobileNumber=%p&text=%a

With this configuration and using the http sendsms
interface, I was able to successfully send an sms and get an
acknowledgement. However, when sending an sms, the get-url
defined as part of the sms-service configuration was
invoked. This behavior had me confused since I assumed that
the get-url would only be invoked for MO messages. Can
somebody help explain why this happens?
Is this expected behaviour?
Is this because the sms-service has been defined as
default?

Can someone can help me understand the reason get-url gets
called for MTmessages and/or the flow for MT messages using
sendsms better?

Thanks,
Sindu




The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


Reply via email to