startup script seems ok. Have u checked all ur config details with ur SMPP provider ? try a tcpdump to ur smpp server address and see, any connections going from kannel to that IP address. and also netstat can help...

but binding details should be pumped to kannel.log. (smsc connection time out..reconnecting message) .
does kannel listing on those ports ? try a netstat and see..


anyway this is my config. some parameters are different from provider to provider

# SMSC SMPP
group = smsc
smsc-id = 3333
smsc = smpp

host = x.x.x.x
port = xxxx
denied-smsc-id = 3333
#msg-id-type = 0x01
smsc-username = user
smsc-password = passwd
interface-version = 0x34
source-addr-ton = 1
address-range = myvirtual mobile no
#address-range = ""
source-addr-npi= 1
dest-addr-ton = 1
dest-addr-npi=1
system-type = SMPP
transceiver-mode=1
alt-addr-charset=GSM
validityperiod=5760

hope this helps

Tharanga Abeyseela



Tharanga wrote:
How u start kannel ? can  u  send ur startup script

Tony wrote:
Hi
Kannel is running as the kannel user. I changed the log level to 0 and restarted kannel but still don't see any mention of it trying to connect to the smsc.
Here is the contents of kannel.log:
2009-04-17 10:54:08 [14654] [0] INFO: Added logfile `/var/log/kannel/kannel.log' with level `0'. 2009-04-17 10:54:08 [14654] [0] INFO: Started access logfile `/var/log/kannel/access'. 2009-04-17 10:54:08 [14654] [0] WARNING: 'store-file' option deprecated, please use 'store-location' and 'store-type' instead.
2009-04-17 10:54:08 [14654] [0] INFO: HTTP: Opening server at port 13000.
2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2009-04-17 10:54:08 [14654] [0] DEBUG: starting smsbox connection module
2009-04-17 10:54:08 [14654] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2009-04-17 10:54:08 [14654] [0] INFO: Set SMS resend frequency to 60 seconds.
2009-04-17 10:54:08 [14654] [0] INFO: SMS resend retry set to unlimited.
2009-04-17 10:54:08 [14654] [0] DEBUG: smsbox MO concatenated message handling enabled 2009-04-17 10:54:08 [14654] [0] INFO: DLR rerouting for smsc id <link0> disabled. 2009-04-17 10:54:08 [14654] [0] INFO: Added logfile `/var/log/kannel/o2.log' with level `0'. 2009-04-17 10:54:08 [14654] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 14654. 2009-04-17 10:54:08 [14654] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 14654. 2009-04-17 10:54:08 [14654] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 14654. 2009-04-17 10:54:08 [14654] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 14654. 2009-04-17 10:54:08 [14654] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 14654. 2009-04-17 10:54:08 [14654] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 14654. 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2009-04-17 10:54:08 [14654] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/o2.log' with level `0'. 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2009-04-17 10:54:08 [14654] [0] INFO: ---------------------------------------- 2009-04-17 10:54:08 [14654] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2009-04-17 10:54:08 [14654] [0] INFO: Loading store file `/var/log/kannel/kannel.store' 2009-04-17 10:54:08 [14654] [0] INFO: Store-file size 206, starting to unpack 2009-04-17 10:54:08 [14654] [0] INFO: Retrieved 1 messages, non-acknowledged messages: 1 2009-04-17 10:54:08 [14654] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper) 2009-04-17 10:54:08 [14654] [0] INFO: MAIN: Start-up done, entering mainloop 2009-04-17 10:54:08 [14654] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 14654. 2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40) 2009-04-17 10:54:08 [14654] [8] DEBUG: Thread 8 (gw/bb_store_file.c:store_dumper) maps to pid 14654.
2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: gwlist_len = 1
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:54:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:08 [14654] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2009-04-17 10:54:11 [14654] [5] INFO: Client connected from <127.0.0.1>
2009-04-17 10:54:11 [14654] [5] DEBUG: Started thread 9 (gw/bb_boxc.c:function) 2009-04-17 10:54:11 [14654] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps to pid 14654. 2009-04-17 10:54:11 [14654] [9] DEBUG: Started thread 10 (gw/bb_boxc.c:boxc_sender) 2009-04-17 10:54:11 [14654] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) maps to pid 14654.
2009-04-17 10:54:28 [14654] [8] DEBUG: Dumping 1 messages to store
2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: gwlist_len = 1
2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:54:38 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:54:38 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:54:38 [14654] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: gwlist_len = 1
2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:55:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:55:08 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:55:08 [14654] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: gwlist_len = 1
2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:55:38 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: handling message (0x9153a40 vs 0x9153a40)
2009-04-17 10:55:38 [14654] [7] DEBUG: Routing failed, re-queued.
2009-04-17 10:55:38 [14654] [7] DEBUG: sms_router: time to sleep 30.00 secs. Thanks
Tony
----- Original Message -----

    *From:* Tharanga <mailto:thara...@roomsnet.com>
    *To:* Tharanga <mailto:thara...@roomsnet.com>
    *Cc:* Tony <mailto:t...@eurisp.co.uk> ; us...@vm1.kannel.org
    <mailto:us...@vm1.kannel.org>
    *Sent:* Friday, April 17, 2009 10:39 AM
    *Subject:* Re: Kannel not connecting to smsc

    change the log level to 0 and try....sorry i didnt see that.


    Tharanga Abeyseela


    Tharanga wrote:
    Are u running kannel under  root permission ?  may be a
    permission problem ?


    Tharanga Abeyseela




    Tony wrote:

    I have kannel installed and running fine and I'm able to submit
    messages to the server using HTTP.

    However I can't see any activity in the log files suggesting
    kannel is trying to connect to my smsc and send the messages.

    Even on startup I can't find any mention in the log files of it
    trying to bind to my smsc.

    Am I doing something wrong?

    Here is my kannel.conf file below.

    Thanks In Advance.

    Tony

    # CORE

    group = core

    admin-port = 13000

    smsbox-port = 13001

    admin-password = k...@nn3l

    status-password = k...@nn3l

    log-file = "/var/log/kannel/kannel.log"

    log-level = 4

    box-allow-ip = "*.*.*.*"

    access-log = "/var/log/kannel/access"

    store-file = "/var/log/kannel/kannel.store"

    #---------------------------------------------

    # SMSC CONNECTIONS

    group = smsc

    smsc = smpp

    host = <ip address removed>

    port = 8100

    smsc-username = username

    smsc-password = password

    smsc-id = link0

    source-addr-ton= "NULL"

    source-addr-npi= "NULL"

    dest-addr-ton= "NULL"

    dest-addr-npi= "NULL"

    #preferred-smsc-id = link0

    #allowed-smsc-id = link0;link1

    keepalive = 25

    interface-version=34

    system-type= "NULL"

    address-range = "NULL"

    group = smsbox

    bearerbox-host = localhost

    sendsms-port = 13131

    sendsms-chars = "0123456789"

    global-sender = 123456

    access-log = "/var/log/kannel/access"

    log-file = "/var/log/kannel/smsbox.log"

    log-level = 4





Reply via email to