Please copy users mailing list. Next time I won't reply to individual supports anymore.
Change AT+CMEE=1 and send logs. Also, change init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" to "" and later add the options again, as you go. Probably it is a matter of +FCLASS=0, but not sure. == Rene From: Hitesh Sofat [mailto:sofathit...@gmail.com] Sent: vrijdag 7 juni 2013 15:22 To: Rene Kluwen Subject: Re: Kannel 1.5 DLR - segmentation fault please check this #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 = 13058 admin-password = sofat #admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" dlr-storage = mysql smsbox-port = 13059 #wdp-interface-name = "*" #log-file = "/var/log/kannel/bearerbox.log" #access-log = "/var/log/kannel/access.log" #box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" log-level = 0 #group = wapbox #bearerbox-host = localhost #log-file = "/var/log/kannel/wapbox.log" group = smsc smsc-id = samsung smsc = at modemtype = samsung device= /dev/ttyACM2 my-number = +919779173996 connect-allow-ip = 127.0.0.1 sim-buffering = false log-level = 0 # DLR with MySQL support configuration group = mysql-connection id = mydlr host = localhost username = root password = sofat database = kannel group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-source=source field-destination = destination field-service = servce field-url = url field-mask = mask field-status = status field-boxc-id = boxc group = modems id = samsung name = "samsung" detect-string = "samsung" init-string = "ATZ" init-string = "AT+CMEE=0" init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" init-string = "AT+CNMI=0,1" #message-storage = SM #message-start = 0 speed = 460800 #message-start = 0 group = smsbox smsbox-id = mysmsc bearerbox-host = localhost bearerbox-port = 13059 #18 port is for sms-servicce that is to start the smsbox sendsms-port = 13060 global-sender = +919815051914 #access-log = "/var/log/kannel/smsbox-access.log" #log-file = "/var/log/kannel/smsbox.log" log-level = 0 mo-recode = true group = smsbox-route smsbox-id = mysmsbox smsc-id = samsung group = sendsms-user username = sofat password = sofat concatenation= true max-messages = 10000 group = sms-service keyword-regex = .* text = "Thanks for sending SMS" catch-all = yes accepted-smsc = samsung max-messages = 99 get-url = "http://localhost/sms.php?phone=%p <http://localhost/sms.php?phone=%25p&text=%25a> &text=%a" On Fri, Jun 7, 2013 at 6:10 PM, Rene Kluwen <rene.klu...@chimit.nl> wrote: 1. Check your init string. There might be some option that isn't compatible with your modem. 2. Set your sms-center in your group = smsc. == Rene From: users [mailto:users-boun...@kannel.org] On Behalf Of spameden Sent: vrijdag 7 juni 2013 13:51 To: Hitesh Sofat; users@kannel.org Subject: Re: Kannel 1.5 DLR - segmentation fault To get best support, always include users list in your e-mail. 2013/6/7 Hitesh Sofat <sofathit...@gmail.com> hello sir i use kannel with my android phone but they gave error sofat@sofat-K55A:~$ sudo bearerbox -v 1 /home/sofat/gateway/debian/kannel.conf 2013-06-07 17:16:29 [3171] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl = 0 2013-06-07 17:16:29 [3171] [0] INFO: MYSQL: Connected to server at localhost. 2013-06-07 17:16:29 [3171] [0] INFO: MYSQL: server version 5.5.31-0ubuntu0.12.04.2, client version 5.5.31. 2013-06-07 17:16:29 [3171] [0] INFO: DLR using storage type: mysql 2013-06-07 17:16:29 [3171] [0] INFO: SSL not supported, no SSL initialization done. 2013-06-07 17:16:29 [3171] [0] INFO: HTTP: Opening server at port 13029. 2013-06-07 17:16:29 [3171] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2013-06-07 17:16:29 [3171] [0] INFO: Set SMS resend frequency to 60 seconds. 2013-06-07 17:16:29 [3171] [0] INFO: SMS resend retry set to unlimited. 2013-06-07 17:16:29 [3171] [0] INFO: DLR rerouting for smsc id <Manufacturer: SAMSUNG ELECTRONICS CORPORATION> disabled. 2013-06-07 17:16:29 [3171] [0] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: configuration shows modemtype <samsung> 2013-06-07 17:16:29 [3171] [0] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: read modem definition for <samsung> 2013-06-07 17:16:29 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: trying to use speed <460800> from modem definition 2013-06-07 17:16:29 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: opening device 2013-06-07 17:16:29 [3171] [0] INFO: ---------------------------------------- 2013-06-07 17:16:29 [3171] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2013-06-07 17:16:29 [3171] [0] INFO: MAIN: Start-up done, entering mainloop 2013-06-07 17:16:29 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: speed set to 460800 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: Closing device 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: speed is 460800 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: opening device 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: Logging in 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: init device 2013-06-07 17:16:31 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: speed set to 460800 2013-06-07 17:16:32 [3171] [6] INFO: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: AT SMSC successfully opened. 2013-06-07 17:16:40 [3171] [5] INFO: Client connected from <127.0.0.1> 2013-06-07 17:16:50 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: +CMS ERROR: 330 2013-06-07 17:16:50 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: SMSC address unknown (330) 2013-06-07 17:17:52 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: +CMS ERROR: 330 2013-06-07 17:17:52 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: SMSC address unknown (330) 2013-06-07 17:18:54 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: +CMS ERROR: 330 2013-06-07 17:18:54 [3171] [6] ERROR: AT2[Manufacturer: SAMSUNG ELECTRONICS CORPORATION]: CMS ERROR: SMSC address unknown (330) On Thu, May 16, 2013 at 9:12 PM, spameden <spame...@gmail.com> wrote: 1. Did you modify kannel source? 2. What's the revision from SVN are you using? Is it latest? 2013/5/16 Andreas Fink <af...@list.fink.org> there's two issues to solve here: a) why are you getting a DLR for a message you have sent but don't remember. b) why is it bailing out at this time because this should simply ignore the DLR in that case. for b) we need a backtrace, a PANIC log or something like that to find out what is creating the segfault (PANIC does it on purpose but the panic output is what we must be able to see). You should compile kannel with symbols on or run it in gdb and do a backtrace there. for a) this could be a config issue of all kinds or simply a bug but I guess it's the first. So how this is configured exactly has to be analyzed. Maybe you can share an example of the exact URL's as passed out and back into kannel. On 16.05.2013, at 13:04, Adam Pinter <adam.pin...@dream.hu> wrote: > Hello everyone, > > I have a problem with the DLR on kannel 1.5 > The remote SMSC sending DLRs which are not found in our DLR table as you can see in attached logs. > This causes segmentation fault end kills kannel. > > I've found a patch to solve this problem which trying to find the DLR in table for X times, but after X attempts the problem is same: DLR not found braerbox stops and segmentation fault > > Anyone can help me with it? > Thanks > Adam > > Logs: > > smsbox.log > ---- > 2013-05-16 11:03:34 [14915] [0] ERROR: connect to <127.0.0.1> failed > 2013-05-16 11:03:34 [14915] [0] ERROR: System error 111: Connection refused > 2013-05-16 11:03:34 [14915] [0] DEBUG: Connecting to <127.0.0.1> > 2013-05-16 11:03:34 [14915] [0] ERROR: connect to <127.0.0.1> failed > 2013-05-16 11:03:34 [14915] [0] ERROR: System error 111: Connection refused > 2013-05-16 11:03:34 [14915] [0] ERROR: error connecting to server `localhost' at port `29005' > 2013-05-16 11:03:34 [14915] [0] PANIC: Couldn't connect to the bearerbox. > 2013-05-16 11:03:34 [14915] [0] PANIC: /usr/local/kannel15/sbin/smsbox(gw_backtrace+0xad) [0x808b44d] > 2013-05-16 11:03:34 [14915] [0] PANIC: /usr/local/kannel15/sbin/smsbox(gw_panic+0xe8) [0x808b548] > 2013-05-16 11:03:34 [14915] [0] PANIC: /usr/local/kannel15/sbin/smsbox(main+0x1040) [0x8055dd0] > 2013-05-16 11:03:34 [14915] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7112450] > 2013-05-16 11:03:34 [14915] [0] PANIC: /usr/local/kannel15/sbin/smsbox [0x8054531] > > kannel.log > ----- > 2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received > 2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> > 2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received > 2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> > 2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received > 2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> > 2013-05-16 11:03:23 [14504] [6] PANIC: /usr/local/kannel15/sbin/bearerbox [0x80fc18d] > 2013-05-16 11:03:23 [14504] [6] PANIC: [0xb77c5440] > 2013-05-16 11:03:23 [14504] [6] PANIC: /usr/local/kannel15/sbin/bearerbox [0x80a338f] > 2013-05-16 11:03:23 [14504] [6] PANIC: /usr/local/kannel15/sbin/bearerbox [0x80a4156] > 2013-05-16 11:03:23 [14504] [6] PANIC: /usr/local/kannel15/sbin/bearerbox [0x80a523d] > 2013-05-16 11:03:23 [14504] [6] PANIC: /usr/local/kannel15/sbin/bearerbox [0x80e5edc] > 2013-05-16 11:03:23 [14504] [6] PANIC: /lib/tls/i686/cmov/libpthread.so.0 [0xb752a4fb] > > Smsc.log > ------ > 2013-05-16 11:03:23 [14504] [6] DEBUG: DLR from SMSC<remotesmsc> for DST<06301234567>. Attempt 19 of 20. > 2013-05-16 11:03:23 [14504] [6] DEBUG: Sleeping for 1.000 seconds > 2013-05-16 11:03:23 [14504] [6] DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`, `boxc` FROM `dlrtablename` WHERE `smsc`=? AND `ts`=? AND `destination` LIKE CONCAT('%', ?) LIMIT 1 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=mask buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=service buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=url buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=source buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=destination buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: column=boxc buffer_type=252 max_length=0 length=65535 > 2013-05-16 11:03:23 [14504] [6] DEBUG: DLR from SMSC<remotesmsc> for DST<06301234567>. Attempt 20 of 20. > 2013-05-16 11:03:23 [14504] [6] WARNING: DLR[mysql]: DLR from SMSC<remotesmsc> for DST<06301234567> not found after 20 attempts. > 2013-05-16 11:03:44 [15036] [6] INFO: EMI2[remotesmsc]: connecting to Primary SMSC