here is my configuration file: # # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # This basic version is used for system testing. It expects 'fakesmsc' to # send messages which are replied with simple fixed text message. # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # Note that you can run them in different machines but have to # add certain command line argument and configuration variables then # # # For any modifications to this file, see Kannel User Guide # If that does not help, see Kannel web page (http://www.kannel.org) and # various online help and mailing list archives # # Notes on those who base their configuration on this: # 1) check security issues! (allowed IPs, passwords and ports) # 2) groups cannot have empty rows inside them! # 3) read the user guide # # Kalle Marjola for Kannel project 2001, 2004
#--------------------------------------------- # CORE # # There is only one core group and it sets all basic settings # of the bearerbox (and system). You should take extra notes on # configuration variables like 'store-file' (or 'store-dir'), # 'admin-allow-ip' and 'access.log' group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #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" #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" #--------------------------------------------- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs group = smsc smsc = smpp host = 121.241.242.103 #smpp2.routesms.com port = 2345 smsc-username = "username" smsc-password = "password" system-type = "smpp" enquire-link-interval=180 source-addr-npi=1 source-addr-ton=0 dest-addr-npi=1 dest-addr-ton=1 # This is a fake smsc connection, _only_ used to test the system and services. # It really cannot relay messages to actual handsets! group = smsc smsc = fake smsc-id = FAKE port = 10000 connect-allow-ip = 127.0.0.1 #--------------------------------------------- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery 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" #--------------------------------------------- # 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=tester&password=foobar... group = sendsms-user username = goo password = boo #user-deny-ip = "" #user-allow-ip = "" #--------------------------------------------- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. group = sms-service keyword = nop text = "You asked nothing and I did it!" # There should be always a 'default' service. This service is used when no # other 'sms-service' is applied. group = sms-service keyword = default text = "No service specified" > Date: Tue, 27 Jan 2009 13:42:05 -0500 > Subject: Re: Kannel error ? > From: [email protected] > To: [email protected] > CC: [email protected]; [email protected] > > Seems your SMPP config isn't correct or you have connectivity issues > with your smpp provider. Check with them or post ypur config file. > > inside gateway directory (where you have kannel bins) just run: > > #sudo make bindir=/path install or just > > #sudo make install to install gateway on default dir (/usr/local/sbin) > > > > > |-----------------------------------------------------------------------------------------------------------------| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via > SMS y GPRS online > Visitenos en www.perusms.NET www.smsglobal.com.mx y > www.pravcom.com > > > > On Tue, Jan 27, 2009 at 1:27 PM, my google <[email protected]> wrote: > > Thank you all for your replay > > > > Sorry I don't understand this step of installation > > > > Installing the gateway > > After you have compiled Kannel, you need to install certain programs in a > > suitable place. This is most > > easily done by using make again: > > make bindir=/path/to/directory install > > Replace /path/to/directory with the pathname of the actual directory where > > the programs should > > be installed. The programs that are installed are (as filenames from the > > root of the source directory): > > gw/bearerbox > > gw/smsbox > > gw/wapbox > > > > > > what shall I do here? see what is the error below: > > [~/gateway-1.4.2/gw]# mkdir bin > > [~/gateway-1.4.2]# make gw/bearerbox=gw/bin/ install > > /usr/bin/install -c -d /usr/local/bin > > /usr/bin/install: cannot create directory `/usr/local': Permission denied > > make: *** [install] Error 1 > > > > > > Am I right? > > > > by other hand I have tried to start bearerbox first but I got this errors: > > > > 2009-01-27 11:25:50 [27681] [0] INFO: > > ---------------------------------------- > > 2009-01-27 11:25:50 [27681] [0] INFO: Kannel bearerbox II version 1.4.2 > > starting > > 2009-01-27 11:25:50 [27681] [0] INFO: MAIN: Start-up done, entering mainloop > > 2009-01-27 11:25:50 [27681] [0] DEBUG: smsc_fake: start called > > 2009-01-27 11:26:36 [27681] [6] ERROR: connect failed > > 2009-01-27 11:26:36 [27681] [6] ERROR: System error 110: Connection timed > > out > > 2009-01-27 11:26:36 [27681] [6] ERROR: error connecting to server > > `smpp2.routesms.com' at port `2345' > > 2009-01-27 11:26:36 [27681] [6] ERROR: > > SMPP[SMPP:smpp2.routesms.com:2345/2345:abseng:smpp]: Couldn't connect to > > server. > > 2009-01-27 11:26:36 [27681] [6] ERROR: > > SMPP[SMPP:smpp2.routesms.com:2345/2345:abseng:smpp]: Couldn't connect to SMS > > center (retrying in 10 seconds). > > > > can you help brothers? > > > > ________________________________ > > From: [email protected] > > To: [email protected]; [email protected] > > Subject: Re: Kannel error ? > > Date: Tue, 27 Jan 2009 16:28:44 +0200 > > > > Hi, > > > > You need to start bearerbox before smsbox. See comments in configuration > > file. > > > > BR, > > Nikos > > > > ----- Original Message ----- > > From: my google > > To: [email protected] > > Sent: Tuesday, January 27, 2009 3:19 PM > > Subject: Kannel error ? > > Dears, > > > > > > I have smpp account with sms company and I am trying to setup sms gateway > > ..I did the following: > > I have download gateway-1.4.2.tar.gz > > > > [~/gateway-1.4.2/gw]# tar xzvf gateway-1.4.2.tar.gz > > [~/gateway-1.4.2/gw]# cd gateway-1.4.2 > > [~/gateway-1.4.2/gw]# ./configure > > [~/gateway-1.4.2/gw]# make > > and I added the follwing configration for my smpp account with the company I > > bought from them: > > > > group = smsc > > smsc = smpp > > host = smpp2.routesms.com > > port = 2345 > > smsc-username = "user" > > smsc-password = "pass" > > system-type = "smpp" > > enquire-link-interval=180 > > source-addr-npi=1 > > source-addr-ton=0 > > dest-addr-npi=1 > > dest-addr-ton=1 > > > > but after I test I get the following errors: > > [~/gateway-1.4.2/gw]# ./smsbox -v 1 smskannel.conf > > 2009-01-27 06:18:54 [22628] [0] INFO: Debug_lvl = 1, log_file = <none>, > > log_lvl = 0 > > 2009-01-27 06:18:54 [22628] [0] INFO: Service global sender set as '13013' > > 2009-01-27 06:18:54 [22628] [0] INFO: HTTP: Opening server at port 13013. > > 2009-01-27 06:18:54 [22628] [0] INFO: Set up send sms service at port 13013 > > 2009-01-27 06:18:54 [22628] [0] ERROR: connect failed > > 2009-01-27 06:18:54 [22628] [0] ERROR: System error 111: Connection refused > > 2009-01-27 06:18:54 [22628] [0] ERROR: error connecting to server > > `127.0.0.1' at port `13001' > > 2009-01-27 06:18:54 [22628] [0] PANIC: Couldn't connect to the bearerbox. > > 2009-01-27 06:18:54 [22628] [0] PANIC: ./smsbox(gw_panic+0x10d) [0x43d3fd] > > 2009-01-27 06:18:54 [22628] [0] PANIC: ./smsbox(main+0xc3a) [0x41240a] > > 2009-01-27 06:18:54 [22628] [0] PANIC: > > /lib64/tls/libc.so.6(__libc_start_main+0xdb) [0x335401c40b] > > 2009-01-27 06:18:54 [22628] [0] PANIC: ./smsbox [0x40d26a] > > > > > > What shall I do? > > > > Thanx in advanced > > > > Bw, > > > > > > > > ________________________________ > > Windows Live™ Hotmail(R):…more than just e-mail. Check it out. > > > > ________________________________ > > Windows Live™: E-mail. Chat. Share. Get more ways to connect. Check it out. _________________________________________________________________ Windows Live™ Hotmail®:…more than just e-mail. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_explore_012009
