Are u running kannel as root ? may be kannel cant bind to mysql may be permission error (mysql connection error u need grant permission ) OR . try 127.0.0.1 instead of localhost in ur kannel (mysql config part)
--Tharanga-- ----- Original Message ----- From: "ghislain08" <[EMAIL PROTECTED]> To: <users@kannel.org> Sent: Friday, August 01, 2008 2:48 PM Subject: Re: error connection kannel SMS gateway > > Good morning, > I declared bearerbox-port in smsbox group but I have the same error. > I even verified that the port was not occupied with netstat-an | grep 13026 > and nothing (and therefore ok). > In fact when I start bearbox it connects very well with mysql but when I run > it puts smsbox connection failure. > once I put a comment dlr-storage = mysql to use the internal storage, smsbox > and bearerbox operate without problem. > > thanks!! > > > > Otandeka Simon Peter wrote: > > > > > > You are missing the bearerbox-port in smsbox group. I think that is > > why it is refusing. > > > > Also did you bind successfully? > > > > On Aug 1, 2008, at 3:03 AM, ghislain08 wrote: > > > >> > >> excuse me. > >> this is my complete configuration file > >> # Fichier de config pour Modem GSM connecte sur le port USB > >> > >> group = core > >> admin-port = 13010 > >> smsbox-port = 13012 > >> admin-password = khuma > >> admin-deny-ip = "*.*.*.*" > >> admin-allow-ip = "192.168.1.96;127.0.0.1" > >> box-deny-ip = "*.*.*.*" > >> box-allow-ip = "192.168.1.96;127.0.0.1" > >> log-file = "/var/log/kannel/bearerbox.log" > >> log-level = 0 > >> access-log = "/var/log/kannel/bearerbox-access.log" > >> store-file = "/var/log/kannel/bearerbox-store.log" > >> dlr-storage = mysql > >> > >> include = "/usr/local/kannel/modems.conf" > >> > >> ######CONFIGURATION DE LA BASE DE DONNEES > >> group = mysql-connection > >> id = banquehki > >> host = 192.168.1.96 > >> username = root > >> password = dinero > >> database = hki-syspay > >> max-connections = 10 > >> > >> group = dlr-db > >> id = banquehki > >> table = hkidatapay > >> 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 > >> > >> # CONFIGURATION SMSC > >> > >> group = smsc > >> smsc = at > >> smsc-id = smsc-hki > >> modemtype = Siemens MC55 > >> device= /dev/ttyUSB0 > >> pin = 0000 > >> my-number = 0033676112246 > >> sms-center = 0033689004000 > >> #my-number = 0033615254019 > >> #sms-center = 0033609001390 > >> validityperiod = 167 > >> log-file = "/var/log/kannel/smsc.log" > >> log-level = 1 > >> > >> # SMSBOX SETUP > >> > >> group = smsbox > >> smsbox-id = boxhki > >> bearerbox-host = localhost > >> sendsms-port = 13131 > >> global-sender = 13131 > >> sendsms-chars = "0123456789 +-" > >> log-file = "/var/log/kannel/smsbox.log" > >> log-level = 0 > >> access-log = "/var/log/kannel/smsbox-access.log" > >> > >> # SEND-SMS USERS > >> > >> group = sendsms-user > >> username = guy > >> password = neige > >> #user-deny-ip = "" > >> #user-allow-ip = "" > >> > >> # CONFIGURATION SMS ENTRANTS > >> > >> group = smsbox-route > >> smsbox-id = boxhki > >> smsc-ids = smsc-hki > >> > >> # CONFIGURATION DES SERVICES > >> > >> group = sms-service > >> name = envoi-de-sms > >> keyword = > >> keyword-regex = .* > >> catch-all = yes > >> max-messages = 0 > >> get-url = > >> "http://localhost:13012/sms?expediteur=%n&time=%t&phone-exp=%p&from= > >> %i&ack=%d\ > >> &to=%P&sur=%I&text=%a" > >> #get-url = "http://localhost:13012/sms?phone=%p&text=%a" > >> > >> # Services par defaut > >> group = sms-service > >> keyword = default > >> text = "Pas de service defini" > >> > >> > >> ghislain08 wrote: > >>> > >>> hello all > >>> I am new in kannel and I really need help.I must mount an SMS > >>> gateway with > >>> kannel (only sms) > >>> kannel work well when I did not declare the external storage but > >>> once I > >>> declore dlr-storage = mysql, I have a connection failure. > >>> Here is the mistake that I have in my file smsbox.log: > >>> 2008-07-28 16:42:32 [7897] [0] INFO: Added logfile > >>> `/var/log/kannel/smsbox.log' with level `0'. > >>> 2008-07-28 16:42:32 [7897] [0] INFO: Service global sender set as > >>> '13131' > >>> 2008-07-28 16:42:32 [7897] [0] INFO: Logging accesses to > >>> '/var/log/kannel/smsbox-access.log'. > >>> 2008-07-28 16:42:32 [7897] [0] INFO: Started access logfile > >>> `/var/log/kannel/smsbox-access.log'. > >>> 2008-07-28 16:42:32 [7897] [0] INFO: HTTP: Opening server at port > >>> 13131. > >>> 2008-07-28 16:42:32 [7897] [1] DEBUG: Thread 1 (gwlib/ > >>> fdset.c:poller) maps > >>> to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 1 > >>> (gwlib/fdset.c:poller) > >>> 2008-07-28 16:42:32 [7897] [2] DEBUG: Thread 2 > >>> (gwlib/http.c:server_thread) maps to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 2 > >>> (gwlib/http.c:server_thread) > >>> 2008-07-28 16:42:32 [7897] [0] INFO: Set up send sms service at > >>> port 13131 > >>> 2008-07-28 16:42:32 [7897] [3] DEBUG: Thread 3 > >>> (gw/smsbox.c:sendsms_thread) maps to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 3 > >>> (gw/smsbox.c:sendsms_thread) > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: > >>> ---------------------------------------------- > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Kannel smsbox version 1.4.1 > >>> starting > >>> 2008-07-28 16:42:32 [7897] [4] DEBUG: Thread 4 > >>> (gw/smsbox.c:obey_request_thread) maps to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 4 > >>> (gw/smsbox.c:obey_request_thread) > >>> 2008-07-28 16:42:32 [7897] [5] DEBUG: Thread 5 > >>> (gw/smsbox.c:url_result_thread) maps to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 5 > >>> (gw/smsbox.c:url_result_thread) > >>> 2008-07-28 16:42:32 [7897] [6] DEBUG: Thread 6 > >>> (gw/smsbox.c:http_queue_thread) maps to pid 7897. > >>> 2008-07-28 16:42:32 [7897] [0] DEBUG: Started thread 6 > >>> (gw/smsbox.c:http_queue_thread) > >>> 2008-07-28 16:42:32 [7897] [0] ERROR: connect failed > >>> 2008-07-28 16:42:32 [7897] [0] ERROR: System error 111: Connection > >>> refused > >>> 2008-07-28 16:42:32 [7897] [0] ERROR: error connecting to server > >>> `localhost' at port `13012' > >>> 2008-07-28 16:42:32 [7897] [0] PANIC: Couldn't connect to the > >>> bearerbox. > >>> 2008-07-28 16:42:32 [7897] [0] PANIC: sbin/smsbox(gw_panic+0xe6) > >>> [0x8085916] > >>> 2008-07-28 16:42:32 [7897] [0] PANIC: sbin/smsbox(main+0xf0a) > >>> [0x805391a] > >>> 2008-07-28 16:42:32 [7897] [0] PANIC: > >>> /lib/libc.so.6(__libc_start_main+0xe0) [0xb3d390] > >>> 2008-07-28 16:42:32 [7897] [0] PANIC: sbin/smsbox [0x8052261] > >>> > >>> my configuration file is: > >>> > >>> # Fichier de config pour Modem GSM connecte sur le port USB > >>> > >>> group = core > >>> admin-port = 13010 > >>> smsbox-port = 13012 > >>> admin-password = puma > >>> admin-deny-ip = "*.*.*.*" > >>> admin-allow-ip = "192.168.1.96;127.0.0.1" > >>> box-deny-ip = "*.*.*.*" > >>> box-allow-ip = "192.168.1.96;127.0.0.1" > >>> log-file = "/var/log/kannel/bearerbox.log" > >>> log-level = 0 > >>> access-log = "/var/log/kannel/bearerbox-access.log" > >>> store-file = "/var/log/kannel/bearerbox-store.log" > >>> dlr-storage = mysql > >>> > >>> include = "/usr/local/kannel/modems.conf" > >>> > >>> ######CONFIGURATION DE LA BASE DE DONNEES > >>> group = mysql-connection > >>> id = banki > >>> host = 192.168.1.96 > >>> username = root > >>> password = russe > >>> database = kipy > >>> max-connections = 10 > >>> > >>> group = dlr-db > >>> id = banki > >>> table = kipy > >>> 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 > >>> > >>> # CONFIGURATION SMSC > >>> > >>> group = smsc > >>> smsc = at > >>> smsc-id = smsc-hki > >>> modemtype = Siemens MC55 > >>> device= /dev/ttyUSB0 > >>> pin = 0000 > >>> my-number = **************** > >>> sms-center = **************** > >>> > >>> > >>> > >>> > >>> Gupteshwar Joshi wrote: > >>>> > >>>> Hello All, > >>>> I am new with Kannel and trying for SMS gateway with my UBUNTU box. > >>>> I have gone through documentation and already done something > >>>> > >>>> Please , help me in this regard to sort out the problem > >>>> What I am getting is as follows. > >>>> > >>>> My kannel.conf is as follows ; > >>>> > >>>> # > >>>> # Sample configuration file for Kannel bearerbox on Debian. > >>>> # See the documentation for explanations of fields. > >>>> # > >>>> > >>>> # HTTP administration is disabled by default. Make sure you set the > >>>> # password if you enable it. > >>>> > >>>> group = core > >>>> admin-port = 13000 > >>>> admin-password = bar > >>>> admin-deny-ip = "*.*.*.*" > >>>> admin-allow-ip = "127.0.0.1" > >>>> smsbox-port = 13009 > >>>> wapbox-port = 13004 > >>>> box-deny-ip = "*.*.*.*" > >>>> box-allow-ip = "127.0.0.1;192.168.10.*" > >>>> wdp-interface-name = "*" > >>>> log-file = "/var/log/kannel/bearerbox.log" > >>>> log-level = 1 > >>>> > >>>> group = smsbox > >>>> bearerbox-host = localhost > >>>> sendsms-port = 13131 > >>>> global-sender = 123456 > >>>> sendsms-chars = "0123456789 +-" > >>>> access-log = "/var/log/kannel/kannel.access" > >>>> log-file = "/var/log/kannel/smsbox.log" > >>>> log-level = 0 > >>>> > >>>> group = wapbox > >>>> bearerbox-host = localhost > >>>> > >>>> > >>>> group = sms-service > >>>> keyword = nop > >>>> text = "You asked nothing and I did it!" > >>>> > >>>> group = sendsms-user > >>>> username = tester > >>>> password = foobar > >>>> #user-deny-ip = "" > >>>> #user-allow-ip = "" > >>>> > >>>> group = smsc > >>>> smsc = cimd2 > >>>> smsc-id = "indictrans" > >>>> host = localhost > >>>> port = 13006 > >>>> smsc-username = '' > >>>> smsc-password = '' > >>>> keepalive = 5 > >>>> my-number = "9970059664" > >>>> > >>>> > >>>> #group = smsc > >>>> #smsc = at > >>>> #modemtype=auto > >>>> #device= /dev/ttyUSB0 > >>>> #speed=115200 > >>>> #smsc-id = "indictrans" > >>>> #validityperiod=567 > >>>> #keepalive=60 > >>>> #my-number=9970059664 > >>>> #sim-buffering=false > >>>> > >>>> > >>>> #group = smsc > >>>> #smsc = at > >>>> #modemtype = auto > >>>> #device=/dev/ttyUSB0 > >>>> #my-number = "+919970508102" > >>>> #connect-allow-ip = 127.0.0.1 > >>>> #log-level = 0 > >>>> > >>>> My log file is as follows > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: CIMD2[indictrans] login > >>>> failed. > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: CIMD2[indictrans]: Couldn't > >>>> connect > >>>> to > >>>> SMSC (retrying in 10 seconds). > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: connect failed > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: System error 111: Connection > >>>> refused > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: error connecting to server > >>>> `localhost' > >>>> at port `13006' > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: CIMD2[indictrans] login > >>>> failed. > >>>> 2007-06-14 23:52:19 [2133] [6] ERROR: CIMD2[indictrans]: Couldn't > >>>> connect > >>>> to > >>>> SMSC (retrying in 10 seconds). > >>>> 2007-06-14 23:52:19 [2019] [0] INFO: Total WDP messages: received > >>>> 0, sent > >>>> 0 > >>>> 2007-06-14 23:52:19 [2019] [0] INFO: Total SMS messages: received > >>>> 0, sent > >>>> 0 > >>>> 2007-06-14 23:52:20 [2133] [15] INFO: Client connected from > >>>> <127.0.0.1> > >>>> > >>>> 2007-06-14 23:51:48 [2019] [6] ERROR: connect failed > >>>> 2007-06-14 23:51:48 [2019] [6] ERROR: System error 111: Connection > >>>> refused > >>>> 2007-06-14 23:51:48 [2019] [6] ERROR: error connecting to server > >>>> `localhost' > >>>> at port `13006' > >>>> 2007-06-14 23:51:48 [2019] [6] ERROR: CIMD2[indictrans] login > >>>> failed. > >>>> 2007-06-14 23:51:48 [2019] [6] ERROR: CIMD2[indictrans]: Couldn't > >>>> connect > >>>> to > >>>> SMSC (retrying in 10 seconds). > >>>> > >>>> Following is the Kannel status : > >>>> > >>>> Kannel bearerbox version `1.4.0'. Build `Jul 3 2006 11:30:50', > >>>> compiler > >>>> `4.1.2 20060613 (prerelease) (Ubuntu 4.1.1-2ubuntu5)'. System Linux, > >>>> release > >>>> 2.6.17-10-generic, version #2 SMP Fri Oct 13 18:45:35 UTC 2006, > >>>> machine > >>>> i686. Hostname localhost, IP 127.0.0.1. Libxml version 2.6.26. Using > >>>> OpenSSL > >>>> 0.9.8b 04 May 2006. Compiled with MySQL 5.0.21, using MySQL 5.0.24a. > >>>> Using > >>>> native malloc. > >>>> > >>>> Status: running, uptime 0d 0h 0m 49s > >>>> > >>>> WDP: received 0 (0 queued), sent 0 (0 queued) > >>>> > >>>> SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 > >>>> > >>>> SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec > >>>> > >>>> DLR: 0 queued, using internal storage > >>>> > >>>> Box connections: > >>>> wapbox, IP 127.0.0.1 (on-line 0d 0h 0m 48s) > >>>> > >>>> SMSC connections: > >>>> *indictrans* CIMD2:localhost:13006:'' (re-connecting, rcvd > >>>> 0, sent > >>>> 0, > >>>> failed 0, queued 0 msgs) > >>>> > >>>> [EMAIL PROTECTED]:~$ ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid` > >>>> cat: /var/run/kannel/kannel_smsbox.pid: No such file or directory > >>>> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME > >>>> COMMAND > >>>> ignu 26252 0.0 0.3 5580 3180 pts/1 Ss 21:08 0:00 > >>>> bash > >>>> ignu 26820 0.0 0.3 5576 3172 pts/2 Ss+ 21:19 0:00 > >>>> bash > >>>> ignu 27411 0.0 0.3 5580 3152 pts/3 Ss+ 21:31 0:00 - > >>>> bash > >>>> ignu 29350 0.0 0.3 5576 3160 pts/4 Ss 22:05 0:00 > >>>> bash > >>>> ignu 754 0.0 0.1 4940 2012 pts/4 S+ 23:20 0:00 ssh > >>>> 192.168.10.6 > >>>> ignu 1599 0.0 0.3 5576 3136 pts/0 Ss+ 23:42 0:00 > >>>> bash > >>>> ignu 2219 0.0 0.0 2476 984 pts/1 R+ 23:54 0:00 > >>>> ps uw > >>>> > >>>> > >>>> Regards.. > >>>> > >>>> -- > >>>> (((()))) > >>>> (@ @) > >>>> (_) > >>>> +----oOO------------Ooo----------+ > >>>> | Gupteshwar D Joshi | > >>>> | | > >>>> +------------------------------------+ > >>>> |___|___| > >>>> | | | | > >>>> ooO Ooo > >>>> > >>>> > >>> > >>> > >> http://www.nabble.com/file/p18689694/Message001.eml Message001.eml > >> http://www.nabble.com/file/p18689694/Message001.eml Message001.eml > >> -- > >> View this message in context: > >> http://www.nabble.com/setup-kannel-as-SMS-gateway-tp11126006p18689694.html > >> Sent from the Kannel - User mailing list archive at Nabble.com. > >> > >> > > > > A year spent in Artificial Intelligence is enough to make one believe > > in God. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > View this message in context: http://www.nabble.com/setup-kannel-as-SMS-gateway-tp11126006p18770839.html > Sent from the Kannel - User mailing list archive at Nabble.com. > > >