Config:
#--------------------------------------------- # 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 = "/var/kannel/kannel.log" log-level = 1 box-deny-ip = "*.*.*.*" #box-allow-ip = "*.*.*.*" box-allow-ip = "127.0.0.1,203.116.95.200,192.168.1.111,66.7.206.190" #unified-prefix = "+358,00358,0;+,00" access-log = "/var/kannel/beareraccess.log" store-file = "/var/kannel/kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" #---------------------------------------------- # Peter added this line for external store DLR #dlr-storage = internal #dlr-storage = mysql #--------------------------------------------- # External Delivery Report (DLR) Storage # Added by Peter on 2 July 2007 # group = mysql-connection id = mydlr host = localhost username = "XXXX" password = "XXXX" database = "SMSC" # max count of connections that will be opened for dbpool # default is 1 max-connections = 1 group = dlr-db id = mydlr table = DLR field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc #--------------------------------------------- # 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 # 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 = 11000 #connect-allow-ip = 127.0.0.1 # # Peter Added this on 25 June 2007 # group = smsc smsc = at smsc-id="HSSMSC1" modemtype = auto device=/demy-number = DOMOBILE #my-number = 6592739141 connect-allow-ip = 127.0.0.1 log-level = 3 sim-buffering = true #--------------------------------------------- # 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 = "/var/kannel/smsbox.log" log-level = 3 access-log = "/var/kannel/access.log" mo-recode = true #--------------------------------------------- # 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 = peterlum password = H89BdsaTmf2dgJdbGX0Z0qTTxV concatenation= true max-messages=10 dlr-url = "http://www.smsservice.com" faked-sender="DoMobile" #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. # # Peter added this part on 25 June 2007 # group = sms-service keyword = keyword-regex = .* catch-all = yes max-messages = 0 get-url = "http://www.sms.com/smsredirect/keyword_receive_redirect.php?phone=%p&keywor d=%k&text=%a&identifier=%f&time=%t&SMSID=%I&SDRV=%d" 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" include = "/etc/kannel//modems.conf" What did I do wrong here? HELP!! Peter _____ From: Benaiad [mailto:[email protected]] Sent: Tuesday, 8 September, 2009 7:19 PM To: [email protected] Cc: [email protected] Subject: Re: Kannel broken after upgrade I prefer to use the cvs version, because it contains many fixes and changes. you can download it from http://kannel.org/download/kannel-snapshot.tar.gz and the logs says that you have an error in your configuration, can we see it? Benaiad On Tue, Sep 8, 2009 at 1:12 PM, Peter Lum <[email protected]> wrote: Hi Need help urgently!! I upgraded Kannel from 1.4.1 to 1.4.3 and it doesn't run anymore: My smsbox.log shows: 2009-09-08 19:09:50 [10925] [0] ERROR: Group 'sms-service' may inlcude either 'keyword' or 'keyword-regex'. 2009-09-08 19:09:50 [10925] [0] ERROR: Couldn't create a URLTranslation. 2009-09-08 19:09:50 [10925] [0] PANIC: urltrans_add_cfg failed 2009-09-08 19:09:50 [10925] [0] PANIC: /usr/local/kannel/sbin/smsbox(gw_panic+0x9e) [0x8080c9a] 2009-09-08 19:09:50 [10925] [0] PANIC: /usr/local/kannel/sbin/smsbox(main+0x12af) [0x805807f] 2009-09-08 19:09:50 [10925] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x148df3] 2009-09-08 19:09:50 [10925] [0] PANIC: /usr/local/kannel/sbin/smsbox [0x8052855] tart_main+0xd3) [0x148df3] 2009-09-08 19:09:50 [10925] [0] PANIC: /usr/local/kannel/sbin/smsbox [0x8052855] What is happening? HELP!!! Peter No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.83/2353 - Release Date: 09/08/09 06:48:00
