Hi,

These may be the sample files, but are not used as such, since everything is 
commented out, and have therefore become nonfunctional. There are some 
excellent working configurations in the User's Guide. Please read it and try to 
customize your setup. If you have specific questions about the things in the 
guide, please address the list.

BR,
Nikos
  ----- Original Message ----- 
  From: heni karaa 
  To: Nikos Balkanas 
  Cc: [email protected] 
  Sent: Friday, October 09, 2009 10:08 PM
  Subject: Re: No clients with requests, quitting/PANIC: Couldn't connect to 
the bearerbox.


  Hi,


  I'm using the config files of the samples:


  Kannel.conf:


  # THIS IS A SAMPLE CONFIGURATION FOR KANNEL
  #
  # For any modifications to this file, see Kannel User Guide
  # If that does not help, send email to [email protected]
  #
  group = core
  admin-port = 13000
  admin-password = bar
  #status-password = foo
  #admin-deny-ip = ""
  #admin-allow-ip = ""
  #log-file = "/tmp/kannel.log"
  #log-level = 0
  #access-log = "access.log"
  #http-proxy-host = "127.0.0.1"
  #http-proxy-port = 8080
  #http-proxy-exceptions = "127.0.0.1"
  #http-proxy-username = "user"
  #http-proxy-password = "password"
  #ssl-certkey-file = "mycertandprivkeyfile.pem"


  # Smsbox related
  #smsbox-port = 13001
  #box-deny-ip = "*.*.*.*"
  #box-allow-ip = "127.0.0.1"
  #unified-prefix = "00358,0"
  #white-list = "http://127.0.0.1/white-list.txt";
  #black-list = "http://127.0.0.1/black-list.txt";
  #store-file = "kannel.store"


  # Wapbox related
  #wapbox-port = 13002
  #udp-deny-ip = "*.*.*.*"
  #udp-allow-ip = "127.0.0.1"
  #wdp-interface-name = "*"


  # SMSC CONNECTIONS - GLOBAL FIELDS
  #group = smsc
  #smsc =
  #smsc-id = ID
  #denied-smsc-id = "X;Y"
  #allowed-smsc-id = "Z"
  #preferred-smsc-id = "W"
  #allowed-prefix = "040;050"
  #denied-prefix = "060;070"
  #alt-charset =


  # SMSC Nokia CIMD2
  #group = smsc
  #smsc = cimd2
  #host =
  #port =
  #smsc-username =
  #smsc-password =
  #keepalive =
  #sender-prefix =


  # SMSC EMI
  #group = smsc
  #smsc = emi2
  #smsc = emi_ip to use the old implementation
  #host =
  #port =
  #smsc-username =
  #smsc-password =
  #device = /dev/
  #phone =
  #our-port =
  #receive-port =
  #connect-allow-ip =
  #keepalive =
  #flow-control =


  # SMSC SMPP
  #group = smsc
  #smsc = smpp
  #host =
  #port =
  #receive-port =
  #smsc-username =
  #smsc-password =
  #system-type =
  #address-range =


  # SMSC SEMA
  #group = smsc
  #smsc = sema
  #device = /dev/tty0
  #smsc_nua = (X121 smsc address)
  #home_nua = (x121 radio pad address)
  #wait_report = 0/1 (0 means false, 1 means true)


  # SMSC OIS
  #group = smsc
  #smsc = ois
  #host = 103.102.101.100
  #port = 10000
  #receive-port = 10000
  #ois-debug-level = 0


  # SMSC GSM
  #group = smsc
  #smsc = at
  #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | 
nokiaphone
  | ericsson
  #device = /dev/ttyS0
  #pin = 2345
  #validityperiod = 167


  # SMSC Fake
  #group = smsc
  #smsc = fake
  #host =
  #port =
  #connect-allow-ip =


  # SMSC HTTP
  #group = smsc
  #smsc = http
  #system-type = kannel
  #send-url =
  #port =
  #connect-allow-ip =
  #username =
  #password =


  # SMSBOX SETUP
  group = smsbox
  bearerbox-host = localhost
  sendsms-port = 13013
  #sendsms-chars = "0123456789 +-"
  #global-sender = 12345
  #log-file = "/tmp/smsbox.log"
  #log-level = 0
  #access-log = "access.log"
  #white-list =
  #black-list =
  #reply-couldnotfetch =
  #reply-couldnotrepresent =
  #reply-requestfailed =
  #reply-emptymessage =


  # SEND-SMS USERS
  group = sendsms-user
  username = tester
  password = foobar
  #user-deny-ip = ""
  #user-allow-ip = ""


  # this sender is for Kannel relay testing (http_smsc)
  group = sendsms-user
  username = kannel
  password = rL4y
  user-deny-ip = "*.*.*.*"
  user-allow-ip = "127.0.0.1"
  #name = service_kannel
  #forced-smsc = ID
  #default-smsc = ID
  #faked-sended =
  #max-messages = 1
  #concatenation = 1
  #split-chars =
  #split-suffix =
  #omit-empty =
  #header =
  #footer =
  #allowed-prefix =
  #denied-prefix =
  #white-list =
  #black-list =


  # SMS SERVICES
  #group = sms-service
  #name = nothing
  #keyword = nop
  #aliases = "noppy;niente"
  #text = "You asked nothing and I did it!"
  #get-url = "http://";
  #post-url = "http://";
  #file = "/tmp/"
  #accepted-smsc = ID
  #allowed-prefix =
  #denied-prefix =
  #catch-all = false
  #send-sender = false
  #strip-keyword = false
  #faked-sender =
  #max-messages = 1
  #accept-x-kannel-headers = false
  #assume-plain-text = false
  #concatenation = false
  #split-chars =
  #split-suffix = "+"
  #omit-empty = true
  #header =
  #footer =
  #prefix =
  #suffix =
  #white-list =
  #black-list =


  # SMS SERVICE GET-URL EXAMPLE
  #group = sms-service
  #keyword = relay
  #get-url = 
"http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t


  # SMS SERVICE black-list
  #group = sms-service
  #keyword = black-list
  #text = "You are not alowed to use this service, Go away!"


  # SMS SERVICE Default
  # there should be default always
  group = sms-service
  keyword = default
  text = "No service specified"


  Regards,
  Heni


  2009/10/9 Nikos Balkanas <[email protected]>

    Hi,
    Β 
    Please post configuration file(s)
    Β 
    BR,
    Nikos
      ----- Original Message ----- 
      From: heni karaa 
      To: [email protected] 
      Sent: Friday, October 09, 2009 9:18 PM
      Subject: HTTP: No clients with requests, quitting/PANIC: Couldn't connect 
to the bearerbox.


      Dear all,


      After typing the following command:


      $ /home/src/gateway-1.4.3/gw/bearerbox.exe /etc/kannel-1.4.3/kannel.conf
      No sms is indicated as sent, bellow the result:


      2009-10-09 19:05:53 [1476] [0] INFO: Debug_lvl = -1, log_file = <none>, 
log_lvl= 0
      2009-10-09 19:05:53 [1476] [0] WARNING: DLR: using default 'internal' for 
storage type.
      2009-10-09 19:05:53 [1476] [0] INFO: DLR using storage type: internal
      2009-10-09 19:05:53 [1476] [0] DEBUG: Kannel bearerbox version `1.4.3'.
      Build `Oct Β 8 2009 08:58:17', compiler `3.4.4 (cygming special, gdc 
0.12, usingΒ dmd 0.125)'.
      System CYGWIN_NT-5.1, release 1.5.25(0.156/4/2), version 2008-06-12 
19:34, machine i686.
      HostnameΒ 
      Libxml version 2.7.3.
      Using OpenSSL 0.9.8k 25 Mar 2009.
      Using native malloc.
      2009-10-09 19:05:53 [1476] [0] INFO: HTTP: Opening server at port 13000.
      2009-10-09 19:05:53 [1476] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
      2009-10-09 19:05:53 [1476] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 1476.
      2009-10-09 19:05:53 [1476] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
      2009-10-09 19:05:53 [1476] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) mapsΒ to pid 1476.
      2009-10-09 19:05:53 [1476] [3] DEBUG: Thread 3 
(gw/bb_http.c:httpadmin_run) mapsΒ to pid 1476.
      2009-10-09 19:05:53 [1476] [0] DEBUG: Started thread 3 
(gw/bb_http.c:httpadmin_run)
      2009-10-09 19:05:53 [1476] [0] INFO: 
----------------------------------------
      2009-10-09 19:05:53 [1476] [0] INFO: Kannel bearerbox II version 1.4.3 
starting
      2009-10-09 19:05:58 [1476] [0] INFO: MAIN: Start-up done, entering 
mainloop
      2009-10-09 19:05:58 [1476] [0] DEBUG: Shutting down Kannel...
      2009-10-09 19:05:58 [1476] [0] DEBUG: shutting down smsc
      2009-10-09 19:05:58 [1476] [0] DEBUG: shutting down udp
      2009-10-09 19:05:58 [1476] [0] INFO: All flow threads have died, killing 
core
      2009-10-09 19:05:58 [1476] [0] DEBUG: Waiting for 2 
(gwlib/http.c:server_thread)Β to terminate
      2009-10-09 19:05:58 [1476] [3] DEBUG: HTTP: No clients with requests, 
quitting.
      2009-10-09 19:05:58 [1476] [3] DEBUG: Thread 3 
(gw/bb_http.c:httpadmin_run) terminates.
      2009-10-09 19:05:58 [1476] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) terminates.
      2009-10-09 19:05:58 [1476] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
terminates.
      2009-10-09 19:05:58 [1476] [0] INFO: Total WDP messages: received 0, sent 0
      2009-10-09 19:05:58 [1476] [0] INFO: Total SMS messages: received 0, sent 0
      2009-10-09 19:05:58 [1476] [0] DEBUG: Immutable octet strings: 126.


      When i type this command $ /home/src/gateway-1.4.3/gw/smsbox.exe 
/etc/kannel-1.4.3/kannel.conf i have the following responseΒ PANIC: Couldn't 
connect to the bearerbox.




      2009-10-09 19:07:36 [2840] [0] INFO: Debug_lvl = -1, log_file = <none>, 
log_lvl= 0
      2009-10-09 19:07:36 [2840] [0] DEBUG: Kannel smsbox version `1.4.3'.
      Build `Oct Β 8 2009 08:58:17', compiler `3.4.4 (cygming special, gdc 
0.12, usingΒ dmd 0.125)'.
      System CYGWIN_NT-5.1, release 1.5.25(0.156/4/2), version 2008-06-12 
19:34, machine i686.
      HostnameΒ 
      Libxml version 2.7.3.
      Using OpenSSL 0.9.8k 25 Mar 2009.
      Using native malloc.
      2009-10-09 19:07:36 [2840] [0] INFO: HTTP: Opening server at port 13013.
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
      2009-10-09 19:07:36 [2840] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 2840.
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
      2009-10-09 19:07:36 [2840] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) mapsΒ to pid 2840.
      2009-10-09 19:07:36 [2840] [0] INFO: Set up send sms service at port 13013
      2009-10-09 19:07:36 [2840] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) mapsΒ to pid 2840.
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
      2009-10-09 19:07:36 [2840] [0] DEBUG: 
----------------------------------------------
      2009-10-09 19:07:36 [2840] [0] DEBUG: Kannel smsbox version 1.4.3 starting
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  dumping group (sendsms-user):
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <group> = <sendsms-user>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <username> = <tester>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <password> = <foobar>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  dumping group (sendsms-user):
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <user-allow-ip> = <127.0.0.1>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <user-deny-ip> = <*.*.*.*>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <group> = <sendsms-user>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <username> = <kannel>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Β  Β  <password> = <rL4y>
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
      2009-10-09 19:07:36 [2840] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread)Β maps to pid 2840.
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
      2009-10-09 19:07:36 [2840] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) maps to pid 2840.
      2009-10-09 19:07:36 [2840] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
      2009-10-09 19:07:36 [2840] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) maps to pid 2840.
      2009-10-09 19:07:37 [2840] [0] ERROR: connect failed
      2009-10-09 19:07:37 [2840] [0] ERROR: System error 111: Connection refused
      2009-10-09 19:07:37 [2840] [0] ERROR: error connecting to server 
`localhost' at
      port `13001'
      2009-10-09 19:07:37 [2840] [0] PANIC: Couldn't connect to the bearerbox.


      Please advise.


      Best Regards,
      HΞΉni

Reply via email to