Make sure kannel can read the device location. Try issuing "chmod 777 /dev/ttyS0" and restart kannel.
On 12/31/10, ABOUDOU B. Loukmane <[email protected]> wrote: > Hi everybody, > > I have some troubles to send an sms through kannel. > Here is my bearerbox.log: > > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: open failed! > ERRNO=13 > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] ERROR: AT2[/dev/ttyS0]: > at2_device_thread: open_at2_device failed. Terminating > 2010-12-31 08:44:31 [12099] [8] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [8] INFO: AT2[/dev/ttyS0]: opening device > 2010-12-31 08:44:31 [12099] [0] INFO: > ---------------------------------------- > 2010-12-31 08:44:31 [12099] [0] INFO: Kannel bearerbox II version 1.4.1 > starting > 2010-12-31 08:44:31 [12099] [0] INFO: Loading store file > `/etc/kannel/kannel.store' > 2010-12-31 08:44:31 [12099] [0] INFO: Store-file size 0, starting to unpack > 2010-12-31 08:44:31 [12099] [0] INFO: Retrieved 0 messages, > non-acknowledged messages: 0 > 2010-12-31 08:44:31 [12099] [0] ERROR: Failed to open > '/etc/kannel/kannel.store.new' for writing, cannot create store-file > 2010-12-31 08:44:31 [12099] [0] ERROR: System error 13: Permission denied > 2010-12-31 08:44:31 [12099] [0] PANIC: Cannot start with store-file failing > 2010-12-31 08:44:31 [12099] [0] PANIC: > /usr/sbin/bearerbox(gw_panic+0x101) [0x80c60f1] > 2010-12-31 08:44:31 [12099] [0] PANIC: /usr/sbin/bearerbox(main+0xc44) > [0x8053714] > 2010-12-31 08:44:31 [12099] [0] PANIC: > /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb70f8455] > 2010-12-31 08:44:31 [12099] [0] PANIC: /usr/sbin/bearerbox [0x8051d31] > > > my kannel.conf : > > > group = core > admin-port = 13000 > admin-password = bar > #status-password = foo > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1;192.168.9.*" > log-file = "/var/log/kannel/kannel.log" > log-level = 1 > access-log = "/var/log/kannel/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 = 13013 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1;192.168.9.*" > unified-prefix = "00241,00358,0" > white-list = "http://127.0.0.1/white-list.txt" > black-list = "http://127.0.0.1/black-list.txt" > store-file = "/etc/kannel/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 > device = /dev/ttyS0 > modemtype = nokia_6300 > my-number = 07002033 > speed = 115200 > #pin = 2345 > #validityperiod = 167 > include = /etc/kannel/modems.conf > > # 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 = 13014 > global-sender = 13014 > sendsms-chars = "0123456789 +-" > log-file = "/var/log/kannel/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 = nyrvan > password = 007 > #user-deny-ip = "" > user-allow-ip = "127.0.0.1;192.168.9.*" > > # 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" > > my modem.conf : > > group = modems > id = nokia_6300 > name = "Nokia" > detect-string = "Nokia" > detect-string2 = "RM-217" > need-sleep = true > enable-mms = true > speed = 115200 > no-pin = true > > Could someone help me ? > > Thank you. > > Regards > > > -- Mfawa Alfred Onen M.Sc Telecoms, B.Eng Elect/Elect, CCNA, RHCE(in view) System Administrator Department of Computer Science, Bingham University. E-Mail: [email protected] Phone1: +234 805 944 3154 Phone2: +234 803 079 6088
