Hi,

Please use the list for such problems. It is not my intention to volunteer as a 
personal consultant.
Also meaningful bearerbox logs mean 10 lines before and 10 lines after the 
problem. I am not sure you have all the relevant logs.

1) core:

admin-allow-ip = "127.0.0.1;192.168.2.145"
box-allow-ip = "127.0.0.1;192.168.2.145"

Skip the 192.168.2.145. That's your smsc address. You shouldn't administer or 
connect smsbox from there. Seems your bbox + smsbox are cohosted at 
192.168.2.4. Right? Use "127.0.0.1;192.168.2.4" instead. However 127.0.0.1 
seems to be sufficient.

2) smsc: 

Uncomment the smsc-id. You need it.
Comment out the system-type or use "VMA" (default).
You seem to have smpp 3.4. Use tranceiver-mode = yes and comment out 
receive-port.
Comment out address-range.

3) If those don't help you may have to use the debugger (gdb) to find out which 
is socket 24.

break on unlocked_read

BR,
Nikos


  ----- Original Message ----- 
  From: martin jombe 
  To: [email protected] 
  Sent: Wednesday, April 22, 2009 3:01 PM
  Subject: RE: help : Error reading from fd 24 -- Queued for later delivery


  Hi,
  Thank you for help .
  below are the logs :

  kannel config file :
  group = core
  admin-port = 13000
  smsbox-port = 13001
  admin-password = bar
  #status-password = foo
  #admin-deny-ip = ""
  admin-allow-ip = "127.0.0.1;192.168.2.145"
  log-file = "/tmp/kannel.log"
  log-level = 0
  #box-deny-ip = "*.*.*.*"
  box-allow-ip = "127.0.0.1;192.168.2.145"
  #unified-prefix = "+358,00358,0;+,00"
  access-log = "/tmp/access.log"
  #store-file = "kannel.store"
  #ssl-server-cert-file = "cert.pem"
  #ssl-server-key-file = "key.pem"
  #ssl-certkey-file = "mycertandprivkeyfile.pem"


  group = smsc
  smsc = smpp
  #smsc-id=bt
  host = 192.168.2.145
  port = 1960
  receive-port =1969
  smsc-username = "martin"
  smsc-password = "jombe"
  system-type = ""
  address-range = ""

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

  group = sendsms-user
  username ="tester"
  password ="foobar"
  #user-deny-ip = ""
  user-allow-ip = "*.*.*.*"

  message url :
  
http://192.168.2.4:13013/cgi-bin/sendsms?username=tester&password=foobar&from=04556666&to=0123456&text=HelloMartinJombe

  access.log
  2009-04-22 13:38:28 send-SMS request added - sender:tester:04556666 
192.168.2.145 target:0123456 request: 'HelloMartinJombe'

  smsbox.log
  2009-04-22 13:37:59 [52744] [0] DEBUG: Kannel smsbox version 1.4.1 starting
  2009-04-22 13:37:59 [52744] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
  2009-04-22 13:37:59 [52744] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
  2009-04-22 13:37:59 [52744] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
  2009-04-22 13:37:59 [52744] [0] INFO: Connected to bearerbox at 127.0.0.1 
port 13001.
  2009-04-22 13:37:59 [52744] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
  2009-04-22 13:37:59 [52744] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps 
to pid 52744.
  2009-04-22 13:37:59 [52744] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 52744.
  2009-04-22 13:37:59 [52744] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 52744.
  2009-04-22 13:37:59 [52744] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 52744.
  2009-04-22 13:37:59 [52744] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) maps to pid 52744.
  2009-04-22 13:37:59 [52744] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) maps to pid 52744.
  2009-04-22 13:37:59 [52744] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 52744.
  2009-04-22 13:38:28 [52744] [2] DEBUG: HTTP: Creating HTTPClient for 
`192.168.2.145'.
  2009-04-22 13:38:28 [52744] [2] DEBUG: HTTP: Created HTTPClient area 
0x80e9800.
  2009-04-22 13:38:28 [52744] [3] INFO: smsbox: Got HTTP request 
</cgi-bin/sendsms> from <192.168.2.145>
  2009-04-22 13:38:28 [52744] [3] INFO: sendsms used by <tester>
  2009-04-22 13:38:28 [52744] [3] INFO: sendsms sender:<tester:04556666> 
(192.168.2.145) to:<0123456> msg:<HelloMartinJombe>
  2009-04-22 13:38:28 [52744] [3] DEBUG: Stored UUID 
5981bc0c-adf5-4a24-9fce-375f5e78bdb1
  2009-04-22 13:38:28 [52744] [3] DEBUG: message length 16, sending 1 messages
  2009-04-22 13:38:28 [52744] [3] DEBUG: Status: 202 Answer: <Sent.>
  2009-04-22 13:38:28 [52744] [3] DEBUG: Delayed reply - wait for bearerbox
  2009-04-22 13:38:28 [52744] [0] DEBUG: Got ACK (3) of 
5981bc0c-adf5-4a24-9fce-375f5e78bdb1
  2009-04-22 13:38:28 [52744] [0] DEBUG: HTTP: Resetting HTTPClient for 
`192.168.2.145'.
  2009-04-22 13:38:28 [52744] [1] ERROR: Error reading from fd 24:
  2009-04-22 13:38:28 [52744] [1] ERROR: System error 54: Connection reset by 
peer
  2009-04-22 13:38:28 [52744] [1] DEBUG: HTTP: Destroying HTTPClient area 
0x80e9800.
  2009-04-22 13:38:28 [52744] [1] DEBUG: HTTP: Destroying HTTPClient for 
`192.168.2.145'.

  kannel.log
  2009-04-22 13:37:50 [52743] [0] INFO: Kannel bearerbox II version 1.4.1 
starting
  2009-04-22 13:37:50 [52743] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps 
to pid 52743.
  2009-04-22 13:37:50 [52743] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 52743.
  2009-04-22 13:37:50 [52743] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) 
maps to pid 52743.
  2009-04-22 13:37:50 [52743] [4] DEBUG: Thread 4 
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 52743.
  2009-04-22 13:37:50 [52743] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) 
maps to pid 52743.
  2009-04-22 13:37:50 [52743] [6] DEBUG: Thread 6 
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 52743.
  2009-04-22 13:37:50 [52743] [7] DEBUG: Thread 7 
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 52743.
  2009-04-22 13:37:50 [52743] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) 
maps to pid 52743.
  2009-04-22 13:37:50 [52743] [0] INFO: MAIN: Start-up done, entering mainloop
  2009-04-22 13:37:50 [52743] [6] DEBUG: 
SMPP[SMPP:192.168.2.145:1960/1969:martin:]: Sending PDU:
  2009-04-22 13:37:50 [52743] [7] DEBUG: 
SMPP[SMPP:192.168.2.145:1960/1969:martin:]: Sending PDU:
  2009-04-22 13:37:50 [52743] [8] DEBUG: sms_router: time to sleep 30.00 secs.
  2009-04-22 13:37:50 [52743] [6] DEBUG: SMPP PDU 0x8105e00 dump:
  2009-04-22 13:37:50 [52743] [7] DEBUG: SMPP PDU 0x8105f00 dump:
  2009-04-22 13:37:50 [52743] [8] DEBUG: sms_router: gwlist_len = 0
  2009-04-22 13:37:50 [52743] [6] DEBUG:   type_name: bind_transmitter
  2009-04-22 13:37:50 [52743] [7] DEBUG:   type_name: bind_receiver
  2009-04-22 13:37:50 [52743] [6] DEBUG:   command_id: 2 = 0x00000002
  2009-04-22 13:37:50 [52743] [7] DEBUG:   command_id: 1 = 0x00000001
  2009-04-22 13:37:50 [52743] [6] DEBUG:   command_status: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [7] DEBUG:   command_status: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [6] DEBUG:   sequence_number: 1 = 0x00000001
  2009-04-22 13:37:50 [52743] [7] DEBUG:   sequence_number: 2 = 0x00000002
  2009-04-22 13:37:50 [52743] [6] DEBUG:   system_id: "martin"
  2009-04-22 13:37:50 [52743] [7] DEBUG:   system_id: "martin"
  2009-04-22 13:37:50 [52743] [6] DEBUG:   password: "jombe"
  2009-04-22 13:37:50 [52743] [7] DEBUG:   password: "jombe"
  2009-04-22 13:37:50 [52743] [6] DEBUG:   system_type: ""
  2009-04-22 13:37:50 [52743] [7] DEBUG:   system_type: ""
  2009-04-22 13:37:50 [52743] [6] DEBUG:   interface_version: 52 = 0x00000034
  2009-04-22 13:37:50 [52743] [7] DEBUG:   interface_version: 52 = 0x00000034
  2009-04-22 13:37:50 [52743] [6] DEBUG:   addr_ton: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [7] DEBUG:   addr_ton: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [6] DEBUG:   addr_npi: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [7] DEBUG:   addr_npi: 0 = 0x00000000
  2009-04-22 13:37:50 [52743] [6] DEBUG:   address_range: ""
  2009-04-22 13:37:50 [52743] [7] DEBUG:   address_range: ""
  2009-04-22 13:37:50 [52743] [6] DEBUG: SMPP PDU dump ends.
  2009-04-22 13:37:50 [52743] [7] DEBUG: SMPP PDU dump ends.
  2009-04-22 13:37:59 [52743] [5] INFO: Client connected from <127.0.0.1> 
  2009-04-22 13:37:59 [52743] [5] DEBUG: Started thread 9 
(gw/bb_boxc.c:function)
  2009-04-22 13:37:59 [52743] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps 
to pid 52743.
  2009-04-22 13:37:59 [52743] [9] DEBUG: Started thread 10 
(gw/bb_boxc.c:boxc_sender)
  2009-04-22 13:37:59 [52743] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) 
maps to pid 52743.
  2009-04-22 13:38:20 [52743] [6] DEBUG: 
SMPP[SMPP:192.168.2.145:1960/1969:martin:]: Sending enquire link:
  2009-04-22 13:38:20 [52743] [6] DEBUG: SMPP PDU 0x8105e00 dump:
  2009-04-22 13:38:20 [52743] [6] DEBUG:   type_name: enquire_link
  2009-04-22 13:38:20 [52743] [6] DEBUG:   command_id: 21 = 0x00000015
  2009-04-22 13:38:20 [52743] [6] DEBUG:   command_status: 0 = 0x00000000
  2009-04-22 13:38:20 [52743] [6] DEBUG:   sequence_number: 3 = 0x00000003
  2009-04-22 13:38:20 [52743] [6] DEBUG: SMPP PDU dump ends.
  2009-04-22 13:38:20 [52743] [7] DEBUG: 
SMPP[SMPP:192.168.2.145:1960/1969:martin:]: Sending enquire link:
  2009-04-22 13:38:20 [52743] [7] DEBUG: SMPP PDU 0x8105e00 dump:
  2009-04-22 13:38:20 [52743] [7] DEBUG:   type_name: enquire_link
  2009-04-22 13:38:20 [52743] [7] DEBUG:   command_id: 21 = 0x00000015
  2009-04-22 13:38:20 [52743] [7] DEBUG:   command_status: 0 = 0x00000000
  2009-04-22 13:38:20 [52743] [7] DEBUG:   sequence_number: 4 = 0x00000004
  2009-04-22 13:38:20 [52743] [7] DEBUG: SMPP PDU dump ends.
  2009-04-22 13:38:28 [52743] [9] DEBUG: boxc_receiver: sms received
  2009-04-22 13:38:28 [52743] [9] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
  2009-04-22 13:38:28 [52743] [8] DEBUG: sms_router: handling message 
(0x8105f00 vs 0x8105f00)
  2009-04-22 13:38:28 [52743] [8] DEBUG: sms_router: handling message 
(0x8105f00 vs 0x8105f00)

  regards

  Martin JM





------------------------------------------------------------------------------
  From: [email protected]
  To: [email protected]; [email protected]
  Subject: Re: help : Error reading from fd 24 -- Queued for later delivery
  Date: Wed, 22 Apr 2009 01:23:44 +0300


  Hi,

  Your posted logs from smsbox indicate a problem with your bearerbox. Could 
you please post the relevant bearerbox logs at maximum verbosity (0) from 
~10:20:28?

  BR,
  nikos
    ----- Original Message ----- 
    From: martin jombe 
    To: [email protected] 
    Sent: Wednesday, April 22, 2009 12:27 AM
    Subject: help : Error reading from fd 24 -- Queued for later delivery



    Hello ,
    I am new user of kannel and i am facing this problem:
    I have installed and cofigured kannel to send message to a smpp server
    but it seems that the massage is not sent to the server

    1) this is the message sent for testing purpose
    url = 
"http://192.168.2.4:13013/cgi-bin/sendsms?username=tester&password=foobar&to=0123456&text=Hello";;

    2) this is my kannel conf

    group = core
    admin-port = 13000
    smsbox-port = 13001
    admin-password = bar
    #status-password = foo
    #admin-deny-ip = ""
    admin-allow-ip = "x.x.x.x"
    #log-file = "/tmp/kannel.log"
    #log-level = 0
    #box-deny-ip = "*.*.*.*"
    box-allow-ip = "127.0.0.1"
    #unified-prefix = "+358,00358,0;+,00"
    access-log = "/tmp/access.log"
    #store-file = "kannel.store"
    #ssl-server-cert-file = "cert.pem"
    #ssl-server-key-file = "key.pem"
    #ssl-certkey-file = "mycertandprivkeyfile.pem"


    group = smsc
    smsc = smpp
    host = 192.168.2.145
    port = 1960
    receive-port =1969
    smsc-username = "martin"
    smsc-password = "jombe"
    system-type = "VMA"
    address-range = ""


    group = smsbox
    bearerbox-host = 192.168.2.4
    sendsms-port = 13013
    global-sender = 13013
    sendsms-chars = "0123456789 +-"
    log-file = "/tmp/smsbox.log"
    log-level = 0
    access-log = "/tmp/access.log"

    group = sendsms-user
    username ="tester"
    password ="foobar"
    #user-deny-ip = ""
    user-allow-ip = "*.*.*.*"

    3) result of my http sending method :
     HTTP/1.1 202 Accepted
    3: Queued for later delivery

    4) and the output of kannel log

    Sending enquire link:
    2009-04-21 10:20:12 [27207] [7] DEBUG: SMPP PDU 0x8105e00 dump:
    2009-04-21 10:20:12 [27207] [7] DEBUG:   type_name: enquire_link
    2009-04-21 10:20:12 [27207] [7] DEBUG:   command_id: 21 = 0x00000015
    2009-04-21 10:20:12 [27207] [7] DEBUG:   command_status: 0 = 0x00000000
    2009-04-21 10:20:12 [27207] [7] DEBUG:   sequence_number: 14 = 0x0000000e
    2009-04-21 10:20:12 [27207] [7] DEBUG: SMPP PDU dump ends.

    2009-04-21 10:20:28 [27265] [2] DEBUG: HTTP: Creating HTTPClient for 
`192.168.2.145'.
    2009-04-21 10:20:28 [27265] [2] DEBUG: HTTP: Created HTTPClient area 
0x80e9780.
    2009-04-21 10:20:28 [27265] [3] INFO: smsbox: Got HTTP request 
</cgi-bin/sendsms> from <192.168.2.145>
    2009-04-21 10:20:28 [27265] [3] INFO: sendsms used by <tester>
    2009-04-21 10:20:28 [27265] [3] INFO: sendsms sender:<tester:13013> 
(192.168.2.145) to:<0123456> msg:<Hello>
    2009-04-21 10:20:28 [27265] [3] DEBUG: Stored UUID 
200de45e-1952-47e9-8991-889de338242e
    2009-04-21 10:20:28 [27265] [3] DEBUG: message length 5, sending 1 messages
    2009-04-21 10:20:28 [27265] [3] DEBUG: Status: 202 Answer: <Sent.>
    2009-04-21 10:20:28 [27265] [3] DEBUG: Delayed reply - wait for bearerbox
    2009-04-21 10:20:28 [27207] [9] DEBUG: boxc_receiver: sms received
    2009-04-21 10:20:28 [27207] [9] DEBUG: send_msg: sending msg to box: 
<192.168.2.4>
    2009-04-21 10:20:28 [27207] [8] DEBUG: sms_router: handling message 
(0x8105f00 vs 0x8105f00)
    2009-04-21 10:20:28 [27207] [8] DEBUG: sms_router: handling message 
(0x8105f00 vs 0x8105f00)
    2009-04-21 10:20:28 [27207] [8] DEBUG: sms_router: time to sleep 30.00 secs.
    2009-04-21 10:20:28 [27265] [0] DEBUG: Got ACK (3) of 
200de45e-1952-47e9-8991-889de338242e
    2009-04-21 10:20:28 [27265] [0] DEBUG: HTTP: Resetting HTTPClient for 
`192.168.2.145'.
    2009-04-21 10:20:28 [27265] [1] ERROR: Error reading from fd 24:
    2009-04-21 10:20:28 [27265] [1] ERROR: System error 54: Connection reset by 
peer
    2009-04-21 10:20:28 [27265] [1] DEBUG: HTTP: Destroying HTTPClient area 
0x80e9780.
    2009-04-21 10:20:28 [27265] [1] DEBUG: HTTP: Destroying HTTPClient for 
`192.168.2.145'.

    any help
    regards


    Martin JM


    Martin JM




----------------------------------------------------------------------------
    Souhaitez vous  Β« ΞΊtre au bureau sans y ΞΊtre Β» ? Oui je le veux ! 


------------------------------------------------------------------------------
  Souhaitez vous  « �tre au bureau sans y �tre » ? Oui je le veux ! 

Reply via email to