Re: Queued MOs
Hi All, I kept fighting with this problem and still haven't been able to solve it, but noticed something weird, when I call the status page I see that there are always two smsbox instances: smsbox sqlbox 127.0.0.1 2128 on-line 0d 12h 30m 6s no smsbox smsbox 127.0.0.1 0 on-line 0d 12h 30m 2s no As you can see, only one of the two instances is queueing messages. My configuration is Bearerbox <-> sqlbox <> smsbox So in my init script I first start the bearerbox, next the sqlbox and then the smsbox, but the problem is that in my kannel conf I have to include the smsbox group configuration or it's going to FAIL with this error: 2012-01-11 21:13:25 [30555] [0] ERROR: No 'smsbox' group in configuration, but smsbox-port set I've also tried starting only the bearerbox and the sqlbox with no smsbox and this time the status page shows me only one instance, but this instance isn't "operational", I can't use the send-sms interface (The port isn't even opened). What can I do to solve this problem? Or at least how can I have two smsbox instances, but that all MOs are delivered to the smsbox instance defined on the smsbox conf and not the one in kannel.conf? My config files are as follow: Kannel.conf: > group = core > admin-port = 13000 > admin-password = K4nn3lus3r > status-password = K4nn3lst4ts > admin-allow-ip = "*.*.*.*" > smsbox-port = 13001 > log-file = "/var/log/kannel/bearerbox.log" > #access-log = "/var/log/kannel/bearerbox.access.log" > log-level = 0 > store-type= file > store-location = "/var/kannel/queue" > sms-resend-retry = 10 > #smsbox-max-pending = 500 > dlr-storage=mysql > > group = mysql-connection > id = sqlbox-db > host = XXX > port = 3306 > username = x > password = x > database = kannel > #max-connections =1 > > > > group = dlr-db > id = sqlbox-db > table = dlr > field-smsc = smsc > field-timestamp = ts > field-source = source > field-destination = destination > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxc > > > group = smsbox > bearerbox-host = localhost > bearerbox-port = 13003 > sendsms-port = 13013 > mo-recode = 0 > #smsbox-max-pending = 1 > log-file="/var/log/kannel/smsbox.log" > log-level=0 > #immediate-sendsms-reply = true > > group = sms-service > keyword = default > max-messages = 0 > get-url = > "http:///moprocessor.asp?phone=%p&text=%a&smscid=%i&receiver=%P&report > e=%d" > > include = "/etc/kannel/users-enabled" > include = "/etc/kannel/carriers-enabled" > Sqlbox.conf: > group = sqlbox > id = sqlbox-db > bearerbox-host = localhost > bearerbox-port = 13001 > smsbox-port = 13003 > sql-log-table = sent_sms > sql-insert-table = send_sms > log-file = "/var/log/kannel/kannel-sqlbox.log" > log-level = 0 > > group = mysql-connection > id = sqlbox-db > host = xx > port = 3306 > username = x > password = xxx > database = kannel > max-connections =10 Smsbox.conf: > include = "/etc/kannel/kannel.conf" > > group = dlr-db > id = sqlbox-db > table = dlr > field-smsc = smsc > field-timestamp = ts > field-source = source > field-destination = destination > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxc > > > group = smsbox > bearerbox-host = localhost > bearerbox-port = 13003 > sendsms-port = 13013 > mo-recode = 0 > #smsbox-max-pending = 1 > log-file="/var/log/kannel/smsbox.log" > log-level=0 > #immediate-sendsms-reply = true > > > group = sms-service > keyword = default > max-messages = 0 > get-url = > "http://x/moprocessor.asp?phone=%p&text=%a&smscid=%i&receiver=%P&r > eporte=%d" > > include = "/etc/kannel/users-enabled" > include = "/etc/kannel/carriers-enabled" > And my init script is this: > #!/bin/sh > > # Configuration file > CONF=/etc/kannel/kannel.conf > SQL_CONF=/etc/kannel/sqlbox.conf > SMSBOX_CONF=/etc/kannel/smsbox.conf > > # Kannel boxes > BEARERBOX=/usr/local/sbin/bearerbox > SMSBOX=/usr/local/sbin/smsbox > #WAPBOX=/usr/local/sbin/wapbox > SQLBOX=/usr/local/sbin/sqlbox > > # Debug level: 0..4 > DEBUGLEVEL=4 > > # Kannel user account > USER=kannel > > # Check that boxes and config are ok > [ -x $BEARERBOX ] || exit 0 > [ -x $SMSBOX ] || exit 0 > #[ -x $SQLBOX ] || exit 0 > [ -f $CONF ] || exit 0 > > case "$1" in > start) >ulimit -n 8192 >echo -n "Starting bearerbox... " >#$BEARERBOX -v $DEBUGLEVEL --daemonize --user $USER $CONF & >$BEARERBOX -v $DEBUGLEVEL --user $USER $CONF & >echo "done" >echo -n >sleep 3 > >echo -n "Starting sqlbox... " >#$SMSBOX -v $DEBUGLEVEL --daemonize --user $USER $CONF & >$SQLBOX -v $DEBUGLEVEL --user $USER $SQL_CONF & >echo "done" >echo -n >sleep 3 > >echo -n "Starting smsbox... " >#$SMSBOX -v $DEBUGLE
Re: "Authorization failed for sendsms" error when i try from browser
this is the config file... > # CORE > group = core > admin-port = 13000 > admin-password = foobar # this is the admin password > status-password = foobar #this is the admin password > #admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1;192.168.1.*" > smsbox-port = 13001 > #box-deny-ip = "*.*.*.*" > box-allow-ip = "*.*.*.*" > #box-allow-ip = "127.0.0.1;192.168.1.*" > log-file = "/var/log/kannel/kannel.log" > log-level = 0 > access-log = "/var/log/kannel/access.log" > store-location = "/var/log/kannel/kannel.store" > > #- > # SMSC CONNECTIONS FOR COSMOTE > group = smsc > smsc = at > smsc-id = cosmote_SMSC > modemtype = HUAWEI_E220 > device = /dev/ttyUSB1 > speed = 4608000 > #pin = 999638 > validityperiod = 167 > keepalive = 10 > my-number = +40785xx > sms-center = +40766000510 > sim-buffering = true > preferred-prefix = "0766;0785" > denied-prefix = "0721;0722;0723;0729;0735;0736" > allowed-smsc-id = "cosmote_SMSC" > denied-smsc-id = "vodafone_SMSC" > > #- > # SMSC CONNECTIONS FOR Vodafone > group = smsc > smsc = at > smsc-id = vodafone_SMSC > modemtype = HUAWEI_E220 > device = /dev/ttyUSB3 > speed = 4608000 > #pin = 999638 > validityperiod = 167 > keepalive = 10 > my-number = +40721xxx > sms-center = +40722006000 > sim-buffering = true > preferred-prefix = "0721;0722;0723;0729;0735;0736" > denied-prefix = "0766;0785" > allowed-smsc-id = "vodafone_SMSC" > denied-smsc-id = "cosmote_SMSC" > > include="/etc/kannel/modem.conf" > > # SMSBOX SETUP > group = smsbox > smsbox-id = acronSMS > bearerbox-host = localhost > sendsms-port = 9000 > sendsms-chars = "0123456789+" > global-sender = "+40744946000" > log-file = "/var/log/kannel/smsbox.log" > log-level = 0 > access-log = "/var/log/kannel/access.log" > > group = sms-service > keyword = nop > text = "You asked nothing and I did it!" > > # SMS SERVICES > # there should be default always > group = sms-service > accepted-smsc = "cosmote_SMSC;vodafone_SMSC" > accept-x-kannel-headers = true > get-url = "http://192.168.1.104:8080/events/events.kml?sender=%p&mesaj=%a&timp%t"; > #get-url = "http://localhost/acronsms/acronsms_recived.php?mesaj=%a&expeditor=%p&timp=%t"; > keyword = .* > catch-all = true > max-messages = 0 > omit-empty=true > > # SEND-SMS USERS > group = sendsms-user > username = foobar #this is the user that i use to send message > password = foobar #this is the pass that i use to send message > default-smsc = cosmote_SMSC > concatenation = true > max-messages = 10 > #dlr-url = "http://192.168.1.118/acronsms/acronsms.php?dlr=%d > #user-deny-ip = "*.*.*.*" > #user-allow-ip = "127.0.0.1,192.168.1.*" On Wed, 11 Jan 2012 17:01:04 +0300, Nyika Alex wrote: > Kindly share your config file > also note that there are credentials for administration and others for send sms. I hope u are not using the admin credentials. > > On 11 January 2012 16:17, Zaharia Constantin wrote: > >> hi, i get this error message when i try to send a message from browser. >> >> "Authorization failed for sendsms" the user name and the password are right, the ip for that request is ok, but still i get this error, any ideea way? >> >> this is the kannel info: >> >> "Kannel bearerbox version `1.4.3'. Build `May 19 2011 22:12:12', compiler `4.6.1'. System Linux, release 3.0.0-14-generic-pae, version #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011, machine i686. Hostname Server, IP 127.0.1.1. Libxml version 2.7.8. Using OpenSSL 1.0.0d 8 Feb 2011. Compiled with MySQL 5.1.54, using MySQL 5.1.58. Using SQLite 3.7.4. Using native malloc." >> >> anyone have any idea? > > -- > Best regards, > Alex Nyika > skype: nyika.alex -- Links: -- [1] mailto:soulra...@muscel.ro
Re: "Authorization failed for sendsms" error when i try from browser
Kindly share your config file also note that there are credentials for administration and others for send sms. I hope u are not using the admin credentials. On 11 January 2012 16:17, Zaharia Constantin wrote: > ** > > hi, i get this error message when i try to send a message from browser. > > "Authorization failed for sendsms" the user name and the password are > right, the ip for that request is ok, but still i get this error, any ideea > way? > > this is the kannel info: > > "Kannel bearerbox version `1.4.3'. Build `May 19 2011 22:12:12', compiler > `4.6.1'. System Linux, release 3.0.0-14-generic-pae, version #23-Ubuntu SMP > Mon Nov 21 22:07:10 UTC 2011, machine i686. Hostname Server, IP 127.0.1.1. > Libxml version 2.7.8. Using OpenSSL 1.0.0d 8 Feb 2011. Compiled with MySQL > 5.1.54, using MySQL 5.1.58. Using SQLite 3.7.4. Using native malloc." > > anyone have any idea? > > > > -- Best regards, Alex Nyika skype: nyika.alex
"Authorization failed for sendsms" error when i try from browser
hi, i get this error message when i try to send a message from browser. "Authorization failed for sendsms" the user name and the password are right, the ip for that request is ok, but still i get this error, any ideea way? this is the kannel info: "Kannel bearerbox version `1.4.3'. Build `May 19 2011 22:12:12', compiler `4.6.1'. System Linux, release 3.0.0-14-generic-pae, version #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011, machine i686. Hostname Server, IP 127.0.1.1. Libxml version 2.7.8. Using OpenSSL 1.0.0d 8 Feb 2011. Compiled with MySQL 5.1.54, using MySQL 5.1.58. Using SQLite 3.7.4. Using native malloc." anyone have any idea?