Example:

# CORE SETUP
group = core
admin-port = 13000
admin-password = xxxxxx
status-password = xxxxxx
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/kannel.log"
log-level = 2
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
wapbox-port = 13002
store-location = "/var/log/kannel/kannel.store"
store-type = file
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = internal

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13013
sendsms-chars = "0123456789+"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/access.log"

NR,
pek
> On Tue, Jan 12, 2010 at 4:23 PM, Peter <p...@locosms.gr> wrote:
> > Your SMSport at bearerbox definition is not the same as that of the
> > smsbox part
> > Therefore Smsbox does not send the message to bearerbox.
> > It remains in Smsbox which is a very nice thing to happen.
> > NR,
> > pek
> > Στις 11-01-2010, ημέρα Δευ, και ώρα 23:06 +0530, ο/η karanveer singh
> > έγραψε:
> >> 2010/1/11 Nikos Balkanas <nbalka...@gmail.com>:
> >> > No. You had it right before. Comment out the modems section and use the
> >> > include statement. Sorry Al, it seems you missed his smsc definitions 
> >> > :-(.
> >> > This happens because your modem is inactive. Please repost bb logs at
> >> > maximum detail.
> >> >
> >> > BR,
> >> > Nikos
> >> >
> >> > ----- Original Message ----- From: "karanveer singh"
> >> > <karan.korn...@gmail.com>
> >> > To: "Alvaro Cornejo" <cornejo.alv...@gmail.com>
> >> > Cc: <users@kannel.org>
> >> > Sent: Monday, January 11, 2010 7:01 PM
> >> > Subject: Re: Queued for later delivery
> >> >
> >> >
> >> > On Mon, Jan 11, 2010 at 10:01 PM, Alvaro Cornejo
> >> > <cornejo.alv...@gmail.com> wrote:
> >> >>
> >> >> kannel does not find a route to send the message to .
> >> >>
> >> >> You need at least one modem definition. Uncomment the group modems and
> >> >> adjust according to your modem
> >> >>
> >> >> Regards
> >> >>
> >> >> Alvaro
> >> >>
> >> >>
> >> >>
> >> >> |-----------------------------------------------------------------------------------------------------------------|
> >> >> 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 Mon, Jan 11, 2010 at 11:23 AM, karanveer singh
> >> >> <karan.korn...@gmail.com> wrote:
> >> >>>
> >> >>> Hey, I'm trying to use Kannel as an SMS gateway. I've been trying to
> >> >>> configure Kannel for a while and finaly got bearbox and smsbox
> >> >>> connected.
> >> >>> The following is my kannel.conf file :
> >> >>>
> >> >>> # Default kannel configuration file
> >> >>> #core group 'mandatory'
> >> >>> include = "/usr/share/doc/kannel/examples/modems.conf"
> >> >>>
> >> >>> group = core
> >> >>> admin-port = 13011
> >> >>> admin-password = soundgarden
> >> >>> status-password = soundgarden
> >> >>> admin-deny-ip = "*.*.*.*"
> >> >>> admin-allow-ip = "127.0.0.1"
> >> >>> #For SMS gateway
> >> >>> smsbox-port = 13012
> >> >>> #wapbox-port = 13002
> >> >>> box-deny-ip = "*.*.*.*"
> >> >>> box-allow-ip = "127.0.0.1"
> >> >>> wdp-interface-name = "*"
> >> >>> log-file = "/var/log/kannel/bearerbox.log"
> >> >>> log-level = 1
> >> >>> #Access log
> >> >>> #access-log = "/var/log/kannel/access.log"
> >> >>>
> >> >>> group = smsc
> >> >>> smsc = at
> >> >>> modemtype = auto
> >> >>> device = /dev/ttyUSB0
> >> >>> my-number = "9956306699"
> >> >>> #speed = 460800
> >> >>> #pin = 1234
> >> >>> #sim-buffering = true
> >> >>> log-level = 0
> >> >>>
> >> >>> group = sms-service
> >> >>> keyword = nop
> >> >>> text = "You asked nothing and I did it!"
> >> >>>
> >> >>> # MODEM DEFINITIONS
> >> >>> #group = modems
> >> >>> #id = nokia
> >> >>> #name = "Nokia N95"
> >> >>> #detect-string = "Nokia"
> >> >>> #init-string = "ATZ"
> >> >>> #init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
> >> >>> #message-storage = "EM"
> >> >>>
> >> >>> group = smsbox
> >> >>> bearerbox-host = 127.0.0.1
> >> >>> #we use sendsms-port for sending sms (http)
> >> >>> sendsms-port = 13023
> >> >>> global-sender = 13013
> >> >>> log-file = /var/log/kannel/smsbox.log
> >> >>> log-level = 0
> >> >>>
> >> >>> group = sendsms-user
> >> >>> username = kannel
> >> >>> password = hard2guess
> >> >>>
> >> >>>
> >> >>>
> >> >>> now when I type
> >> >>> sudo bearerbox -v 1 /etc/kannel/kannel.conf
> >> >>>
> >> >>> I get :
> >> >>>
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: Debug_lvl = 1, log_file = <none>,
> >> >>> log_lvl = 0
> >> >>> 2010-01-11 21:49:19 [7566] [0] WARNING: DLR: using default 'internal'
> >> >>> for storage type.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: DLR using storage type: internal
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: Added logfile
> >> >>> `/var/log/kannel/bearerbox.log' with level `1'.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: HTTP: Opening server at port 
> >> >>> 13011.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: BOXC: 'smsbox-max-pending' not
> >> >>> set, using default (100).
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: Set SMS resend frequency to 60
> >> >>> seconds.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: SMS resend retry set to unlimited.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: DLR rerouting for smsc id
> >> >>> <(null)> disabled.
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: AT2[/dev/ttyUSB0]: configuration
> >> >>> doesn't show modemtype. will autodetect
> >> >>> 2010-01-11 21:49:19 [7566] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: Adding interface *
> >> >>> 2010-01-11 21:49:19 [7566] [0] ERROR: Missing wapbox-port variable,
> >> >>> cannot start WAP
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO:
> >> >>> ----------------------------------------
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: Kannel bearerbox II version 1.4.3
> >> >>> starting
> >> >>> 2010-01-11 21:49:19 [7566] [0] INFO: MAIN: Start-up done, entering
> >> >>> mainloop
> >> >>> 2010-01-11 21:49:20 [7566] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
> >> >>> 115200
> >> >>>
> >> >>> and on typing sudo smsbox -v 1 /etc/kannel/kannel.conf
> >> >>> in another terminal window i get :
> >> >>>
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Debug_lvl = 1, log_file = <none>,
> >> >>> log_lvl = 0
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Starting to log to file
> >> >>> /var/log/kannel/smsbox.log level 0
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Added logfile
> >> >>> `/var/log/kannel/smsbox.log' with level `0'.
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Service global sender set as 
> >> >>> '13013'
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: HTTP: Opening server at port 
> >> >>> 13023.
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Set up send sms service at port
> >> >>> 13023
> >> >>> 2010-01-11 21:49:29 [7895] [0] INFO: Connected to bearerbox at
> >> >>> 127.0.0.1 port 13012.
> >> >>>
> >> >>>
> >> >>> However, now when i type :
> >> >>>
> >> >>> http://127.0.0.1:13023/cgi-bin/sendsms?username=kannel&password=hard2guess&to=9889925103&text=This+msg+is+sent+from+saga%27s+computer+with+kannel+please+reply+back+if+u+received+it
> >> >>>
> >> >>> in the browser window, it shows the following message :
> >> >>>
> >> >>> 3: Queued for later delivery
> >> >>>
> >> >>> Any ideas? What could be causing the problem?
> >> >>>
> >> >>>
> >> >>
> >> > I uncommented the modems section, and removed the included modems.conf
> >> > file, but still its showing the same message.
> >> >
> >> >
> >> I get the same output , after commenting out the modems section and
> >> including modems.conf :
> >>
> >> 2010-01-11 23:03:01 [16892] [0] INFO: Debug_lvl = 1, log_file =
> >> <none>, log_lvl = 0
> >> 2010-01-11 23:03:01 [16892] [0] WARNING: DLR: using default 'internal'
> >> for storage type.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: DLR using storage type: internal
> >> 2010-01-11 23:03:01 [16892] [0] INFO: Added logfile
> >> `/var/log/kannel/bearerbox.log' with level `1'.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: HTTP: Opening server at port 13011.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: BOXC: 'smsbox-max-pending' not
> >> set, using default (100).
> >> 2010-01-11 23:03:01 [16892] [0] INFO: Set SMS resend frequency to 60 
> >> seconds.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: SMS resend retry set to unlimited.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: DLR rerouting for smsc id
> >> <(null)> disabled.
> >> 2010-01-11 23:03:01 [16892] [0] INFO: AT2[/dev/ttyUSB0]: configuration
> >> doesn't show modemtype. will autodetect
> >> 2010-01-11 23:03:01 [16892] [0] INFO: Adding interface *
> >> 2010-01-11 23:03:01 [16892] [0] ERROR: Missing wapbox-port variable,
> >> cannot start WAP
> >> 2010-01-11 23:03:01 [16892] [0] INFO: 
> >> ----------------------------------------
> >> 2010-01-11 23:03:01 [16892] [0] INFO: Kannel bearerbox II version 1.4.3 
> >> starting
> >> 2010-01-11 23:03:01 [16892] [0] INFO: MAIN: Start-up done, entering 
> >> mainloop
> >> 2010-01-11 23:03:01 [16892] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> >> 2010-01-11 23:03:02 [16892] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 
> >> 115200
> >> 2010-01-11 23:03:10 [16892] [5] INFO: Client connected from <127.0.0.1>
> >>
> >> and the same output in the browser :
> >> 3: Queued for later delivery
> >>
> >>
> >>
> >
> >
> > Dr. Peter Kontopoulos
> > CTO locotel sa
> >
> > p...@locotel.gr
> > Parnassou 2, Athens 10561, Greece
> > Tel. +30 210 3258350
> > Fax. +30 210 3258359
> >
> > www.locotel.gr
> >
> >
> 
> When I do that, it doesn't even connect bearerbox. Here is the output
> when I set the smsbox-port and sendsms-port the same :
> 
> 2010-01-12 20:19:20 [20210] [0] INFO: Debug_lvl = 1, log_file =
> <none>, log_lvl = 0
> 2010-01-12 20:19:20 [20210] [0] WARNING: DLR: using default 'internal'
> for storage type.
> 2010-01-12 20:19:20 [20210] [0] INFO: DLR using storage type: internal
> 2010-01-12 20:19:20 [20210] [0] INFO: Added logfile
> `/var/log/kannel/bearerbox.log' with level `1'.
> 2010-01-12 20:19:20 [20210] [0] INFO: HTTP: Opening server at port 13000.
> 2010-01-12 20:19:20 [20210] [0] ERROR: bind failed
> 2010-01-12 20:19:20 [20210] [0] ERROR: System error 98: Address already in use
> 2010-01-12 20:19:20 [20210] [0] INFO: BOXC: 'smsbox-max-pending' not
> set, using default (100).
> 2010-01-12 20:19:20 [20210] [3] ERROR: bind failed
> 2010-01-12 20:19:20 [20210] [3] ERROR: System error 98: Address already in use
> 2010-01-12 20:19:20 [20210] [0] INFO: Set SMS resend frequency to 60 seconds.
> 2010-01-12 20:19:20 [20210] [3] PANIC: Could not open smsbox port 13012
> 2010-01-12 20:19:20 [20210] [0] INFO: SMS resend retry set to unlimited.
> 2010-01-12 20:19:20 [20210] [0] INFO: DLR rerouting for smsc id
> <(null)> disabled.
> 2010-01-12 20:19:20 [20210] [3] PANIC: bearerbox(gw_panic+0xd4) [0x80d4674]
> 2010-01-12 20:19:20 [20210] [3] PANIC: bearerbox [0x8059b28]
> 2010-01-12 20:19:20 [20210] [3] PANIC: bearerbox [0x80cb08d]
> 2010-01-12 20:19:20 [20210] [3] PANIC:
> /lib/tls/i686/cmov/libpthread.so.0 [0xdb880e]
> 2010-01-12 20:19:20 [20210] [3] PANIC:
> /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0x8d97ee]
> 
> Also, could you also let me know what I have to enter in global-sender
> and my-number? I've been entering my phone no in my-number and some
> port no (13013) in global-sender.
> 
> 


Dr. Peter Kontopoulos
CTO locotel sa

p...@locotel.gr
Parnassou 2, Athens 10561, Greece
Tel. +30 210 3258350
Fax. +30 210 3258359

www.locotel.gr


Reply via email to