Re: Routing failed, re-queued and 3: Queued for later delivery

2014-03-20 Thread mwamba
hi All,

I did not change the below kannel configs, i rebooted the kannel server and
now the the issue is fixed.

looks strange seems to be stability issues with Kannel 1.4.3. which Kannel
can I use to avoid this from
re-occuring?





--
View this message in context: 
http://kannel.6189.n7.nabble.com/Routing-failed-re-queued-and-3-Queued-for-later-delivery-tp29636p29643.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: Routing failed, re-queued and 3: Queued for later delivery

2014-03-20 Thread mwamba
Hi Alvaro,

you are right. sorry it is 1.5 I will try the SVN.

Thanks,

Duncan



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Routing-failed-re-queued-and-3-Queued-for-later-delivery-tp29636p29646.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: Routing failed, re-queued and 3: Queued for later delivery

2014-03-20 Thread mwamba
Hi spameden,
The smsbox logs at debug level are not showing any errors. I am not using
sqlbox at the moment.
I will monitor smsbox incase it re-occurs.
Thanks,
Duncan



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Routing-failed-re-queued-and-3-Queued-for-later-delivery-tp29636p29647.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Routing failed, re-queued and 3: Queued for later delivery

2014-03-19 Thread mwamba
Hi all,

I have tried searching in previous posts on this but not getting solution on
this.

My kannel configuration has been working both for sending and receiving SMS
but all of a sudden both sending and receiving is not working.

When sending all messages are queued:

[root@hosta]# lynx  -dump
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobartext=Test+smsto=07from=07;
2014-03-19 19:27:13 [31250] [3] INFO: smsbox: Got HTTP request
/cgi-bin/sendsms from 127.0.0.1
2014-03-19 19:27:13 [31250] [3] INFO: sendsms used by tester
2014-03-19 19:27:13 [31250] [3] INFO: sendsms sender:tester:07
(127.0.0.1) to:07 msg:Test sms
   3: Queued for later delivery

Below are the debug logs of bearerbox:


2014-03-19 19:24:21 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs.
[root@hosta]# tail -20 bearerbox.log 
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x971e120 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x9720aa8 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0xb3100dc0 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x971e290 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x9722c20 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x9722f50 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0xb3101598 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x9723e58 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message
(0x9724248 vs 0x9724248)
2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued.
2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs.
[root@hosta]# 

The debug log for smsc log:


[root@hostaa]# tail -20 smsc.log 
2014-03-19 16:17:39 [30267] [6] DEBUG: AT2[]: device opened. Telnet
mode = 0
2014-03-19 16:17:39 [30267] [6] DEBUG: AT2[]: device opened
2014-03-19 16:17:39 [30267] [6] INFO: AT2[]: Logging in
2014-03-19 16:17:39 [30267] [6] INFO: AT2[]: init device
2014-03-19 16:17:39 [30267] [6] INFO: AT2[]: speed set to 115200
2014-03-19 16:17:39 [30267] [6] DEBUG: AT2[]: -- ATZ^M
2014-03-19 16:46:52 [30783] [6] INFO: AT2[]: opening device
2014-03-19 16:46:52 [30783] [6] DEBUG: AT2[]: device opened. Telnet
mode = 0
2014-03-19 16:46:52 [30783] [6] DEBUG: AT2[]: device opened
2014-03-19 16:46:52 [30783] [6] INFO: AT2[]: Logging in
2014-03-19 16:46:52 [30783] [6] INFO: AT2[]: init device
2014-03-19 16:46:52 [30783] [6] INFO: AT2[]: speed set to 115200
2014-03-19 16:46:52 [30783] [6] DEBUG: AT2[]: -- ATZ^M
2014-03-19 17:24:18 [31238] [6] INFO: AT2[]: opening device
2014-03-19 17:24:18 [31238] [6] DEBUG: AT2[]: device opened. Telnet
mode = 0
2014-03-19 17:24:18 [31238] [6] DEBUG: AT2[]: device opened
2014-03-19 17:24:18 [31238] [6] INFO: AT2[]: Logging in
2014-03-19 17:24:18 [31238] [6] INFO: AT2[]: init device
2014-03-19 17:24:18 [31238] [6] INFO: AT2[]: speed set to 115200
2014-03-19 17:24:19 [31238] [6] DEBUG: AT2[]: -- ATZ^M
[root@hosta]# 

Below is the status of the gateway:

[root@host]# lynx  -dump http://localhost:13000/status?password=bar;
   Kannel bearerbox version `1.5.0'. Build `Jul 19 2013 18:52:53',
   compiler `4.7.2 20120921 (Red Hat 4.7.2-2)'. System Linux, release
   3.3.4-5.fc17.i686.PAE, version #1 SMP Mon May 7 17:37:39 UTC 2012,
   machine i686. Hostname hosta, IP x.x.x.x. Libxml version
   2.7.8. Using OpenSSL 1.0.0k-fips 5 Feb 2013. Compiled with MySQL
   5.5.32, using MySQL 5.5.32. Using native malloc.

   Status: running, uptime 0d 1h 57m 10s

   WDP: received 0 (0 queued), sent 0 (0 queued)

   SMS: received 0 (0 queued), sent 0 (12 queued), store size 12
   SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
   msg/sec

   DLR: received 0, sent 0
   DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
   msg/sec
   DLR: 0 queued, using internal storage

   Box connections:
   smsbox:smsbox1, IP 127.0.0.1 (0 queued), (on-line 0d 1h 56m 37s)

   SMSC connections:
   []AT2[] (connecting, rcvd: sms 0 / dlr
   

Re: Routing failed, re-queued and 3: Queued for later delivery

2014-03-19 Thread mwamba
Hi Alvaro,
Thanks for your feedback. do you mean smsbox routing?
How can I specify default-route in my configurations. This is not clear from
the user guide.
Thanks,
Duncan



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Routing-failed-re-queued-and-3-Queued-for-later-delivery-tp29636p29638.html
Sent from the Kannel - User mailing list archive at Nabble.com.



using 16 ports wavecom q2406b with kannel wvdialconf not successful

2013-11-03 Thread mwamba
Hi all,
I recently acquired 16 ports modem pool ---wavecom q2406b but cannot use it
with wvdialconf.  it is in dmesg.

see the logs below:

[root@fedora17 duncanm]# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan*1: S0   S1   S2   S3
ttyUSB0*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB0*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB1*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB1*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB2*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB3*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB4*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB4*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB5*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB5*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB5*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB6*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB6*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB6*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB7*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB7*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB7*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB8*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB8*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB8*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB9*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB9*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB9*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB10*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB10*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB10*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB11*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB11*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB11*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB12*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB12*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB12*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB13*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB13*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB13*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB14*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB14*1: ATQ0 V1 E1 -- 
ttyUSB14*1: failed with 9600 baud, next try: 115200 baud
ttyUSB14*1: ATQ0 V1 E1 -- ERROR
ttyUSB14*1: and failed too at 115200, giving up.
ttyUSB15*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB15*1: ATQ0 V1 E1 -- ▒o▒▒▒
ttyUSB15*1: failed with 9600 baud, next try: 115200 baud
ttyUSB15*1: ATQ0 V1 E1 -- ERROR
ttyUSB15*1: and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial
[root@fedora17 duncanm]#



[root@fedora17 duncanm]# dmesg | tail -20
[  581.887730] usb 1-2.4: Detected FT4232H
[  581.887730] usb 1-2.4: Number of endpoints 2
[  581.887730] usb 1-2.4: Endpoint 1 MaxPacketSize 512
[  581.887730] usb 1-2.4: Endpoint 2 MaxPacketSize 512
[  581.887730] usb 1-2.4: Setting MaxPacketSize 512
[  581.888159] usb 1-2.4: FTDI USB Serial Device converter now attached to
ttyUSB13
[  581.888359] ftdi_sio 1-2.4:1.2: FTDI USB Serial Device converter detected
[  581.888409] usb 1-2.4: Detected FT4232H
[  581.888413] usb 1-2.4: Number of endpoints 2
[  581.888416] usb 1-2.4: Endpoint 1 MaxPacketSize 512
[  581.888420] usb 1-2.4: Endpoint 2 MaxPacketSize 512
[  581.888423] usb 1-2.4: Setting MaxPacketSize 512
[  581.02] usb 1-2.4: FTDI USB Serial Device converter now attached to
ttyUSB14
[  581.889029] ftdi_sio 1-2.4:1.3: FTDI USB Serial Device converter detected
[  581.889102] usb 1-2.4: Detected FT4232H
[  581.889113] usb 1-2.4: Number of endpoints 2
[  581.889122] usb 1-2.4: Endpoint 1 MaxPacketSize 512
[  581.889132] usb 1-2.4: Endpoint 2 MaxPacketSize 512
[  581.889143] usb 1-2.4: Setting MaxPacketSize 512
[  581.889485] usb 1-2.4: FTDI USB Serial Device converter now attached to
ttyUSB15
[root@fedora17 

Messages Queued (Not delivered)

2013-08-27 Thread mwamba
Hi, 
my kannel had been working but recently I cannot send SMS from it i.e. all
the SMS are queued: 

= 

lynx -dump http://localhost:13000/status?password=bar; 
   Kannel bearerbox version `1.5.0'. Build `Jul 19 2013 18:52:53', 
   compiler `4.7.2 20120921 (Red Hat 4.7.2-2)'. System Linux, release 
   3.3.4-5.fc17.i686.PAE, version #1 SMP Mon May 7 17:37:39 UTC 2012, 
   machine i686. Hostname tumatext-gw, IP 41.78.27.218. Libxml version 
   2.7.8. Using OpenSSL 1.0.0k-fips 5 Feb 2013. Compiled with MySQL 
   5.5.32, using MySQL 5.5.32. Using native malloc. 

   Status: running, uptime 0d 13h 55m 1s 

   WDP: received 0 (0 queued), sent 0 (0 queued) 

   SMS: received 0 (0 queued), sent 0 (0 queued), store size 17 
   SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) 
   msg/sec 

   DLR: received 0, sent 0 
   DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) 
   msg/sec 
   DLR: 0 queued, using internal storage 

   Box connections: 
   smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 13h 54m 52s) 

   SMSC connections: 
   TUMATEXT[TUMATEXT]AT2[TUMATEXT] (re-connecting, rcvd: sms 0 / 
   dlr 0, sent: sms 0 / dlr 0, failed 0, queued 17 msgs) 

= 

below is my kannel and sqlbox configurations but my sqlbox has never worked: 

= 

=== 
kannel.conf 
=== 

#- 
# CORE 
#- 
group = core 
admin-port = 13000 
smsbox-port = 13001 
admin-password = bar 
#status-password = foo 
admin-deny-ip = *.*.*.* 
admin-allow-ip = 127.0.0.1 
log-file = /var/log/kannel/bearerbox.log 
log-level = 0 
box-deny-ip = *.*.*.* 
box-allow-ip = 127.0.0.1 
access-log = /var/log/kannel/access.log 
store-file = /var/log/kannel/kannel.store 
#THIS DEFINES EXTERNAL DLR STORAGE 
#store-type = mysql 
dlr-storage = internal 

#- 
# SMSC CONNECTIONS 
#- 
group = smsc 
smsc = at 
modemtype = auto 
device = /dev/ttyACM0 
my-number = 35438790 
speed = 460800 
smsc-id = xxx 
log-level = 0 
log-file = /var/log/kannel/smsc.log 
log-level = 0 
sim-buffering = true 
#dlr-mask = 1+2 

#- 
group = modems 
id = Sony Ericsson 
name = Sony Ericsson C702 
detect-string = Sony 
#init-string = ATZ 
#init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 
init-string = AT+CNMI=2,0,0,0 
message-storage = SM 

#- 
# SMSBOX SETUP 
#- 
group = smsbox 
bearerbox-host = 127.0.0.1 
sendsms-port = 13013 
global-sender = +2584 
log-file = /var/log/kannel/smsbox.log 
log-level = 1 

#- 
# SEND-SMS USERS 
#- 
group = sendsms-user 
username = tester 
password = foobar 
concatenation = true 
max-messages = 3 

#- 
# SERVICES 
#- 
group = sms-service 
keyword-regex = .* 
catch-all = true 
max-messages = 3 
omit-empty = true 
catch-all = true 
###THIS HANDLES INCOMING SMS TO PLAYSMS
INBOX# 
get-url = 
http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a; 

=== 
/etc/sqlbox.conf 
=== 
#sqlbox group 
group = sqlbox 
id = tt-sqlbox 
smsbox-id = sqlbox 
global-sender = +2xx584 
bearerbox-host = 127.0.0.1 
bearerbox-port = 13001 
smsbox-port = 13005 
smsbox-port-ssl = false 
sql-log-table = sent_sms 
sql-insert-table = send_sms 
log-level = 0 
log-file = /var/log/kannel/sqlbox.log 

#MySQL Connection 
group = mysql-connection 
id = tt-sqlbox 
host = localhost 
username = root 
password =  
database = tt 

=== 

Kindly advise on how to resolve this 

Thanks, 

Duncan
http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a 



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Messages-Queued-Not-delivered-tp28854.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: Messages Queued (Not delivered)

2013-08-27 Thread mwamba

I have noticed memory check error in smsc log which keeps smsc
reconnecting each time. how do i resolve this:

2013-08-27 11:48:21 [13268] [6] DEBUG: AT2[TT]: -- ATZ^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- ATF^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- ATF
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- ATE0^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- ATE0
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+IFC=2,2^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+CPIN?^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- +CPIN: READY
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+CMGF=0^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+CSMS=?^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+CNMI=2,0,0,0^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- +CSMS: (0)
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- AT+CPMS=SM^M
2013-08-27 11:48:22 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:22 [13268] [6] INFO: AT2[TT]: AT SMSC successfully opened.
/**2013-08-27 11:48:24 [13268] [6] DEBUG: AT2[TT]: -- AT+CPMS?^M
2013-08-27 11:48:29 [13268] [6] DEBUG: failed to send mem select command to
modem -1
2013-08-27 11:48:29 [13268] [6] DEBUG: AT2[TT]: memory check error
2013-08-27 11:48:29 [13268] [6] INFO: AT2[TT]: Closing device
2013-08-27 11:48:29 [13268] [6] ERROR: AT2[TT]: Couldn't connect (retrying
in 10 seconds).**/
2013-08-27 11:48:39 [13268] [6] INFO: AT2[TT]: opening device
2013-08-27 11:48:39 [13268] [6] DEBUG: AT2[TT]: device opened. Telnet mode =
0
2013-08-27 11:48:39 [13268] [6] DEBUG: AT2[TT]: device opened
2013-08-27 11:48:39 [13268] [6] INFO: AT2[TT]: Logging in
2013-08-27 11:48:39 [13268] [6] INFO: AT2[TT]: init device
2013-08-27 11:48:39 [13268] [6] INFO: AT2[TT]: speed set to 460800
2013-08-27 11:48:39 [13268] [6] DEBUG: AT2[TT]: -- ATZ^M
2013-08-27 11:48:39 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:39 [13268] [6] DEBUG: AT2[TT]: -- AT^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- ATF^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- ATF
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- ATE0^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- ATE0
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+IFC=2,2^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+CPIN?^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- +CPIN: READY
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+CMGF=0^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+CSMS=?^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+CNMI=2,0,0,0^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- +CSMS: (0)
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- AT+CPMS=SM^M
2013-08-27 11:48:40 [13268] [6] DEBUG: AT2[TT]: -- OK
2013-08-27 11:48:40 [13268] [6] INFO: AT2[TT]: AT SMSC successfully opened.
2013-08-27 11:48:42 [13268] [6] DEBUG: AT2[TT]: -- AT+CPMS?^M



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Messages-Queued-Not-delivered-tp28854p28856.html
Sent from the Kannel - User mailing list archive at Nabble.com.



get-url or post-url to two destionations (inboxes)

2013-07-11 Thread mwamba
Hi, 
I am trying to use two URLs destination for my message but it seems i can
only have only once active post-url or get-url. I want a received SMS to be
duplicated to both destinations. 

my sms-service is as follows: 

#- 
# SERVICES 
#- 
group = sms-service 
keyword-regex = .* 
catch-all = true 
max-messages = 3 
omit-empty = true 
catch-all = true 
get-url = 
http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a; 
post-url = 
http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a 
http://x.x.x.x/-/inbox/inbox.php?receiver=%Psender=%pmessage_content=%atime_received=%tid_tt=%I;
 



How do i achieve this since the above only allows either one of the lines
get-url or post-url but not both at the same time. 

Do I need to define each on its own sms-service despite needed them to
process same SMS?


Regards, 

Mwamba
http://x.x.x.x/-/inbox/inbox.php?receiver=%Psender=%pmessage_content=%atime_received=%tid_tt=%I
 



--
View this message in context: 
http://kannel.6189.n7.nabble.com/get-url-or-post-url-to-two-destionations-inboxes-tp28565.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: get-url or post-url to two destionations (inboxes)

2013-07-11 Thread mwamba
Thanks Willy for your feedback,

The main aim is to have an incoming SMS despite before forwared to an
external system , it should also be retained my kannel local host db for
future checks/ reference / accountability / backup of all incoming SMSes.

Thanks,

Duncan



--
View this message in context: 
http://kannel.6189.n7.nabble.com/get-url-or-post-url-to-two-destionations-inboxes-tp28565p28567.html
Sent from the Kannel - User mailing list archive at Nabble.com.



RE: get-url or post-url to two destionations (inboxes)

2013-07-11 Thread mwamba
Thanks Rene,

I will look into using SQLBOX.

Regards,

Mwamba



--
View this message in context: 
http://kannel.6189.n7.nabble.com/get-url-or-post-url-to-two-destionations-inboxes-tp28565p28570.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: ussd gateway

2013-07-10 Thread mwamba
Hi Amon,

Did you get this?

Thanks,

Duncan



--
View this message in context: 
http://kannel.6189.n7.nabble.com/ussd-gateway-tp2743p28560.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: Log Rotation

2011-12-08 Thread mwamba chishimba
Hi Stanic,

If I want to do log rotation every month what do I need to do?

Kind Regards,


On Thu, Dec 8, 2011 at 11:20 AM, Milan P. Stanic m...@arvanta.net wrote:

 On Thu, 2011-12-08 at 16:00, JAmes wrote:
  That sounds good.
 
  So in fact we can use this logrotate method without loosing any SMS in
 the
  process?

 I'm using it for years on three different systems and I didn't lost
 single SMS because of this method for log rotation.

  J
 
  On Thu, Dec 8, 2011 at 3:57 PM, Milan P. Stanic m...@arvanta.net wrote:
 
   On Thu, 2011-12-08 at 15:50, JAmes wrote:
Killing the bb process like that could lead to issues if you have a
constant flow of traffic going through it, as it might kill it while
 its
   in
the middle of processing an SMS.
   
Am I correct?
  
   Kannel just reopens log files when it 'receives' HUP (hang up) signal
   and does not shutdown or hang up really.
  
On Thu, Dec 8, 2011 at 3:28 PM, Joel Westerberg t...@well.com
 wrote:
   
 I think it'd be best to use the logrotate daemon if you're hosting
 on a
 unix system (not doing logrotate yet though, but will once I move
 to
 production).

 http://www.kannel.org/pipermail/users/2007-October/003108.html

  /your_path/kannel.log /your_path/sqlbox.log /your_path/smsbox.log
 {
daily
missingok
rotate 100
size=50M
compress
delaycompress
olddir /your_path/oldlogs
notifempty
create 640 root root
sharedscripts
postrotate
  killall -HUP bearerbox sqlbox smsbox || true 
 /dev/null
   2
 /dev/null
endscript
 }



 On 8 dec 2011, at 09.21, ha...@aeon.pk wrote:

 Yes. From command line, I close smsboxsqlboxbearerbox (in order),
   move
 the logs out of folder, and then restart bearerboxsqlboxsmsbox.
   Brearebox
 creates all new files when it finds out no log files in the log
   directory.

 On Thu, Dec 8, 2011 at 1:18 PM, JAmes jam...@gmail.com wrote:

 Hi,

 So you issue the admin command: shutdown, then move configs, then
   admin
 command restart?

 Regards,
 J

 On Thu, Dec 8, 2011 at 3:06 PM, Sean Brady cesuras...@aim.com
   wrote:

   clone your server. ;P   rsync everything, and then change
   config




 Thank you,
 Sean Brady
 s...@simpletechnology.us
 http://www.simpletechnology.us/
 +1 ( 256 ) 542-1429


 aim - cesurasean
 yahoo - cesurasean
 google - cesuras...@gtalk.com
 msn - cesuras...@hotmail.com
 icq - 357464121
 skype - cesurasean
 sip:cesuras...@ekiga.net

  *From:* JAmes jam...@gmail.com
 *Sent:* Thursday, December 08, 2011 12:49 AM
 *To:* users@kannel.org
 *Subject:* Log Rotation

 Hi,

 What the best way to rotate the logs without interrupting kannel
 and
 making bb, sqlbox etc still write to the logs?

 For example, if we move the log files, zip them, archive etc, bb
   doesnt
 create a new log file. Is there a better way?

 J

 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1873 / Virus Database: 2102/4666 - Release Date:
   12/07/11





  
   --
   Kind regards,  Milan
   --
   Arvanta, IT Securityhttp://www.arvanta.net
   Please do not send me e-mail containing HTML code or documents in
   proprietary format (word, excel, pps and so on)
  
  

 --
 Kind regards,  Milan
 --
 Arvanta, IT Securityhttp://www.arvanta.net
 Please do not send me e-mail containing HTML code or documents in
 proprietary format (word, excel, pps and so on)




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us
from the love of God, which is in Christ Jesus our Lord


Re: How to generate statistics from Kannel

2011-09-28 Thread mwamba chishimba
Thank you Singularnet for that pointer, greatly appreciated. I did try it
and used different search words and phrases but the results were not very
helpful, thank you nonetheless.

Kind Regards

On Tue, Sep 27, 2011 at 1:26 PM, Singularnet singular...@gmail.com wrote:

 There is a add on in playsms that do such task, search in google

 On 9/27/11, mwamba chishimba bamwa...@gmail.com wrote:
  Hello Kannel Users,
 
  I have managed to setup kannel and it is working just fine. I can send
  and receive messages without any hiccups. My problem is am unable to
  generate statistics so I can't tell how many messages were sent by
  user X. Am using playsms as my web interface which enabled me create
  various accounts and I would want to generate statistics in terms of
  total messages sent and total messages received by these different
  accounts.
 
  Is there a way of achieving my goal?
 
  As usual, thank you in advance for your kind help.
 
  Kind Regards,
 
  --
  Mwamba Chishimba
 
  For I am persuaded, that neither death, nor life, nor angels, nor
  principalities, nor powers, nor things present, nor things to come,
  nor height, nor depth, nor any other creature, shall be able to
  separate us from the love of God, which is in Christ Jesus our Lord
 
 

 --
 Sent from my mobile device




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Remote Connectivity

2011-09-28 Thread mwamba chishimba
Hello Kannel Users,

Iam in a bit of a fix here.

I have installed kannel on ubuntu server and is working just fine. The
server is connected to 3 different SMSC operators via smpp. I have setup
another remote server which is on the Local Area Network(192.168.1.30) which
is connecting to the Ubuntu server via the Playsms Web Interface. Am running
some short codes which are defined on the main Ubuntu server with connection
to SMSC operators. I want when a message comes to the main ubuntu server
with Keyword Mwamba to be routed to the other server I have installed which
is on the Local Area Network(192.168.1.30). Now since this server is behind
a router, I opened port 80 on the router and directed all traffic coming
through this port to go to the 192.168.1.30 machine.
Below is an extract from my kannel.conf

#Mwamba Service
group = sms-service
keyword = mwamba
get-url = http://router public IP Address/check.php?a=%as=%sp=%pk=%k
strip-keyword = false
omit-empty = true

The check.php script is hosted on the 192.168.1.30 machine.

When I send a message from my mobile phone with mwamba as keyword, kannel
log shows the following:

2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]*
2011-09-27 10:23:59 [16541] [4] INFO: Starting to service Mwamba 126980
from +260948984786 to 3011
2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8
(gwlib/fdset.c:poller)
2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9
(gwlib/http.c:write_request_thread)
2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps
to pid 16541.
2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) maps to pid 16541.
2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests.
2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public IP
Address/check.php?a=Mwamba+126980s=126980p=%2Bhttp://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
260948984786k=Mwamba':http://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Scheme: http:// http:
2011-09-27 10:23:59 [16541] [9] DEBUG:   Host: router public IP Address
2011-09-27 10:23:59 [16541] [9] DEBUG:   Port: 80
2011-09-27 10:23:59 [16541] [9] DEBUG:   Username: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG:   Password: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG:   Path: /check.php
2011-09-27 10:23:59 [16541] [9] DEBUG:   Query:
a=Mwamba+126980s=126980p=%2B260948984786k=Mwamba
2011-09-27 10:23:59 [16541] [9] DEBUG:   Fragment: (null)
2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router
public IP Address:80' (fd=27).
2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting
2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket
2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request:
2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700:
2011-09-27 10:23:59 [16541] [8] DEBUG:   len:  151
2011-09-27 10:23:59 [16541] [8] DEBUG:   size: 1024
2011-09-27 10:23:59 [16541] [8] DEBUG:   immutable: 0
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 47 45 54 20 2f 63 68 65 63 6b
2e 70 68 70 3f 61   GET /check.php?a
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 4d 77 61 6d 62 61 2b 31 32
36 39 38 30 26 73   =Mwamba+126980s
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 31 32 36 39 38 30 26 70 3d
25 32 42 32 36 30   =126980p=%2B260
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 39 37 37 38 32 37 35 36 39 26
6b 3d 4d 77 61 6d   948984786k=Mwam
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 62 61 20 48 54 54 50 2f 31 2e
31 0d 0a 48 6f 73   ba HTTP/1.1..Hos
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 74 3a 20 38 31 2e 31 39 39 2e
31 30 31 2e 32 30   t: router public IP Address
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 33 0d 0a 43 6f 6e 6e 65 63 74
69 6f 6e 3a 20 6b   ..Connection: k
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65 0d
0a 55 73 65 72 2d   eep-alive..User-
2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 41 67 65 6e 74 3a 20 4b 61 6e
6e 65 6c 2f 31 2e   Agent: Kannel/1.

It then goes quite and does not send back feedback until after about 20 or
30minutes thats when it sends response to my phone with Could not fetch
content, sorry.

I can feel it in my bones that am almost there, someone please help me cross
over the line with this.

As always, a big thank you for your kind response.

-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re: How to generate statistics from Kannel

2011-09-28 Thread mwamba chishimba
Hi Shiv,

Thank you for your response.

I ideally, I want to be able to tell that for this particular period of
time, user X sent Y messages(totals) basically that.

Kind Regards,

On Wed, Sep 28, 2011 at 3:37 PM, Shiv Narayan narayans...@yahoo.com wrote:

 Depending on what data you need you could also enable logging in Kannel and
 get the data from the logs.


 --
 *From:* mwamba chishimba bamwa...@gmail.com
 *To:* Singularnet singular...@gmail.com
 *Cc:* users users@kannel.org
 *Sent:* Wednesday, 28 September 2011 2:49 PM
 *Subject:* Re: How to generate statistics from Kannel

 Thank you Singularnet for that pointer, greatly appreciated. I did try it
 and used different search words and phrases but the results were not very
 helpful, thank you nonetheless.

 Kind Regards

 On Tue, Sep 27, 2011 at 1:26 PM, Singularnet singular...@gmail.comwrote:

 There is a add on in playsms that do such task, search in google

 On 9/27/11, mwamba chishimba bamwa...@gmail.com wrote:
  Hello Kannel Users,
 
  I have managed to setup kannel and it is working just fine. I can send
  and receive messages without any hiccups. My problem is am unable to
  generate statistics so I can't tell how many messages were sent by
  user X. Am using playsms as my web interface which enabled me create
  various accounts and I would want to generate statistics in terms of
  total messages sent and total messages received by these different
  accounts.
 
  Is there a way of achieving my goal?
 
  As usual, thank you in advance for your kind help.
 
  Kind Regards,
 
  --
  Mwamba Chishimba
 
  For I am persuaded, that neither death, nor life, nor angels, nor
  principalities, nor powers, nor things present, nor things to come,
  nor height, nor depth, nor any other creature, shall be able to
  separate us from the love of God, which is in Christ Jesus our Lord
 
 

 --
 Sent from my mobile device




 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord





-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re: Remote Connectivity

2011-09-28 Thread mwamba chishimba
Hi Peter,

A million thanks for your response! Let me do just that right away.

Kind Regards

On Wed, Sep 28, 2011 at 4:11 PM, Otandeka Simon Peter
sotand...@gmail.comwrote:


 Check your smsbox-access log file.  It will provide more info why your URL
 is failing.
 Kannel is not receiving anything from your URL when it calls it and that is
 why it is complaining.

 You can post the logs so that we can assist.

 Thanks,
 Peter.


 On Wed, Sep 28, 2011 at 4:51 PM, mwamba chishimba bamwa...@gmail.comwrote:

 Hello Kannel Users,

 Iam in a bit of a fix here.

 I have installed kannel on ubuntu server and is working just fine. The
 server is connected to 3 different SMSC operators via smpp. I have setup
 another remote server which is on the Local Area Network(192.168.1.30) which
 is connecting to the Ubuntu server via the Playsms Web Interface. Am running
 some short codes which are defined on the main Ubuntu server with connection
 to SMSC operators. I want when a message comes to the main ubuntu server
 with Keyword Mwamba to be routed to the other server I have installed which
 is on the Local Area Network(192.168.1.30). Now since this server is behind
 a router, I opened port 80 on the router and directed all traffic coming
 through this port to go to the 192.168.1.30 machine.
 Below is an extract from my kannel.conf

 #Mwamba Service
 group = sms-service
 keyword = mwamba
 get-url = http://router public IP Address/check.php?a=%as=%sp=%pk=%k
 strip-keyword = false
 omit-empty = true

 The check.php script is hosted on the 192.168.1.30 machine.

 When I send a message from my mobile phone with mwamba as keyword, kannel
 log shows the following:

 2011-09-27 10:23:59 [16541] [4] DEBUG: match found: ^[ ]*(mwamba)[ ]*
 2011-09-27 10:23:59 [16541] [4] INFO: Starting to service Mwamba 126980
 from +260948984786 to 3011
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 8
 (gwlib/fdset.c:poller)
 2011-09-27 10:23:59 [16541] [4] DEBUG: Started thread 9
 (gwlib/http.c:write_request_thread)
 2011-09-27 10:23:59 [16541] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller)
 maps to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Thread 9
 (gwlib/http.c:write_request_thread) maps to pid 16541.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Queue contains 0 pending requests.
 2011-09-27 10:23:59 [16541] [9] DEBUG: Parsing URL `http://router public
 IP 
 Address/check.php?a=Mwamba+126980s=126980p=%2Bhttp://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
 260948984786k=Mwamba':http://81.199.101.203/check.php?a=Mwamba+126980s=126980p=%2B260977827569k=Mwamba%27:
  2011-09-27 10:23:59 [16541] [9] DEBUG:   Scheme: http://
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Host: router public IP Address
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Port: 80
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Username: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Password: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Path: /check.php
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Query:
 a=Mwamba+126980s=126980p=%2B260948984786k=Mwamba
 2011-09-27 10:23:59 [16541] [9] DEBUG:   Fragment: (null)
 2011-09-27 10:23:59 [16541] [9] DEBUG: HTTP: Opening connection to `router
 public IP Address:80' (fd=27).
 2011-09-27 10:23:59 [16541] [9] DEBUG: Socket connecting
 2011-09-27 10:23:59 [16541] [8] DEBUG: Get info about connecting socket
 2011-09-27 10:23:59 [16541] [8] DEBUG: HTTP: Sending request:
 2011-09-27 10:23:59 [16541] [8] DEBUG: Octet string at 0x817f700:
 2011-09-27 10:23:59 [16541] [8] DEBUG:   len:  151
 2011-09-27 10:23:59 [16541] [8] DEBUG:   size: 1024
 2011-09-27 10:23:59 [16541] [8] DEBUG:   immutable: 0
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 47 45 54 20 2f 63 68 65 63
 6b 2e 70 68 70 3f 61   GET /check.php?a
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 4d 77 61 6d 62 61 2b 31
 32 36 39 38 30 26 73   =Mwamba+126980s
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 3d 31 32 36 39 38 30 26 70
 3d 25 32 42 32 36 30   =126980p=%2B260
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 39 37 37 38 32 37 35 36 39
 26 6b 3d 4d 77 61 6d   948984786k=Mwam
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 62 61 20 48 54 54 50 2f 31
 2e 31 0d 0a 48 6f 73   ba HTTP/1.1..Hos
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 74 3a 20 38 31 2e 31 39 39
 2e 31 30 31 2e 32 30   t: router public IP Address
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 33 0d 0a 43 6f 6e 6e 65 63
 74 69 6f 6e 3a 20 6b   ..Connection: k
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65
 0d 0a 55 73 65 72 2d   eep-alive..User-
 2011-09-27 10:23:59 [16541] [8] DEBUG:   data: 41 67 65 6e 74 3a 20 4b 61
 6e 6e 65 6c 2f 31 2e   Agent: Kannel/1.

 It then goes quite and does not send back feedback until after about 20 or
 30minutes thats when it sends response to my phone with Could not fetch
 content, sorry.

 I can feel it in my bones that am almost there, someone please help me
 cross over the line with this.

 As always

How to generate statistics from Kannel

2011-09-27 Thread mwamba chishimba
Hello Kannel Users,

I have managed to setup kannel and it is working just fine. I can send
and receive messages without any hiccups. My problem is am unable to
generate statistics so I can't tell how many messages were sent by
user X. Am using playsms as my web interface which enabled me create
various accounts and I would want to generate statistics in terms of
total messages sent and total messages received by these different
accounts.

Is there a way of achieving my goal?

As usual, thank you in advance for your kind help.

Kind Regards,

-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come,
nor height, nor depth, nor any other creature, shall be able to
separate us from the love of God, which is in Christ Jesus our Lord



Kannel Services Configuration

2011-08-24 Thread mwamba chishimba
Hello Kannel list members!

Just a quick question, I have setup the following service in my kannel
configuration.

#nshima
group = sms-service
keyword = nshima
get-url = 
http://www.goodmeals.zm/nshima/nshima.php?mobnum=%pkeyword=%kkeyword_2=%skeyword_3=%r

omit-empty = true

Is it possible to repeat the parameter get-url as illustrated below?

group = sms-service
keyword = nshima
get-url = 
http://www.goodmeals.zm/nshima/order.php?mobnum=%pkeyword=%kkeyword_2=%skeyword_3=%r

get-url = 
http://www.goodmeals.zm/nshima/nshima.php?mobnum=%pkeyword=%kkeyword_2=%skeyword_3=%r

omit-empty = true

My question in essence is how do I make kannel send a single received
message to two different processing scripts. Using the example above to both
the nshima.php and order.php.

Note: Am reluctant to combing the two scripts into one I prefer having them
separate.

Your usual assistance shall greatly be appreciated.

Kind Regards,
-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Re: Packet too short while unpacking Msg Error

2011-04-28 Thread mwamba chishimba
Hi Nikos,

Thank you for your kind response, much appreciated.

I have 2 follow up questions. I have backup kannel.spool files and
apparently I have two files that were changed at the time am suspecting
bearerbox crashed. They are named *kannel.spool.new* changed at *12:45:35PM*
 and *kannel.spool.bak* changed at *12:45:11PM*

I have this in my *kannel.conf* file which I believe is suppose to point to
the above file. However I do not have the kannel.spool file indicated on the
store-location file shown below. How do I restore or fix this the
kannel.spool file and what extension should it have if any?
*store-type = file*
*store-location = /usr/local/kannel/kannel.spool*

My second question is how do I access the store tools by Alex? Lastly,
you've talked about changing to spool store-type, is it just a matter of
changing they store type indicated above?

Again, am very grateful for your help!

Kind Regards,

2011/4/28 Nikos Balkanas nbalka...@gmail.com

 Hi,

 Your problem is with store-file corruption. You will have to restore from
 backup, or fix using vi. Alex G has provided some store tools, maybe they
 can help. Better switch to spool store type, it is much easier to handle and
 recover from problems.

 BR,
 Nikos
 - Original Message - From: mwamba chishimba
 To: users
 Sent: Thursday, April 28, 2011 12:11 AM
 Subject: Packet too short while unpacking Msg Error



 Hello Everyone,

 I have run into serious trouble with my kannel setup. Been working just
 fine and until a few hours ago whe it suddenly stopped working.
 When I start bearerbox with : /usr/local/kannel/sbin/bearerbox -v -1
 /usr/local/kannel/smskannel.conf

 I get the following error:
 .
 truncated
 .
 .
 2011-04-27 21:49:22 [25924] [0] ERROR: Packet too short while unpacking
 Msg.
 2011-04-27 21:49:22 [25924] [0] ERROR: Msg packet was invalid.
 2011-04-27 21:49:22 [25924] [0] ERROR: Garbage at store-file, skipped.
 2011-04-27 21:49:22 [25924] [0] PANIC: Internal error: unknown message
 type: 1747722356
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(gw_panic+0xe2) [0x80d0992]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(msg_unpack_real+0x76) [0x8065946]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(msg_unpack_wrapper+0x29) [0x8065d19]
 2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
 [0x805f2cf]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(main+0x91d) [0x80553fd]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b5ebc]
 2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
 [0x8053de1]

 i have attached my smskannel.conf file and my kannel.log file for your
 review.

 Thank you in advance for your kind help

 Kind Regards,



 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


RESOLVED: Packet too short while unpacking Msg Error

2011-04-28 Thread mwamba chishimba
Hello Everyone,

I managed to figure out how to go round this one. Am not sure what
the repercussion for my actions are but this is what I did. I changed the
store-type in kannel.conf to spool and then created a directory which I
named spool in var/log/kannel. I then restarted bearerbox, sqlbox and smsbox
and all seems well so far. Prior to changing the store-type and creating the
spool directory I had renamed the existing kannel.spool files and tested
bearerbox which created new files so you may want to explore that option as
well.

Thank you to all those that took time to help me resolve this problem.

Kind Regards,

On Thu, Apr 28, 2011 at 8:47 AM, mwamba chishimba bamwa...@gmail.comwrote:

 Hi Nikos,

 Thank you for your kind response, much appreciated.

 I have 2 follow up questions. I have backup kannel.spool files and
 apparently I have two files that were changed at the time am suspecting
 bearerbox crashed. They are named *kannel.spool.new* changed at *
 12:45:35PM* and *kannel.spool.bak* changed at *12:45:11PM*

 I have this in my *kannel.conf* file which I believe is suppose to point
 to the above file. However I do not have the kannel.spool file indicated on
 the store-location file shown below. How do I restore or fix this the
 kannel.spool file and what extension should it have if any?
 *store-type = file*
 *store-location = /usr/local/kannel/kannel.spool*

 My second question is how do I access the store tools by Alex? Lastly,
 you've talked about changing to spool store-type, is it just a matter of
 changing they store type indicated above?

 Again, am very grateful for your help!

 Kind Regards,

 2011/4/28 Nikos Balkanas nbalka...@gmail.com

 Hi,

 Your problem is with store-file corruption. You will have to restore from
 backup, or fix using vi. Alex G has provided some store tools, maybe they
 can help. Better switch to spool store type, it is much easier to handle and
 recover from problems.

 BR,
 Nikos
 - Original Message - From: mwamba chishimba
 To: users
 Sent: Thursday, April 28, 2011 12:11 AM
 Subject: Packet too short while unpacking Msg Error



 Hello Everyone,

 I have run into serious trouble with my kannel setup. Been working just
 fine and until a few hours ago whe it suddenly stopped working.
 When I start bearerbox with : /usr/local/kannel/sbin/bearerbox -v -1
 /usr/local/kannel/smskannel.conf

 I get the following error:
 .
 truncated
 .
 .
 2011-04-27 21:49:22 [25924] [0] ERROR: Packet too short while unpacking
 Msg.
 2011-04-27 21:49:22 [25924] [0] ERROR: Msg packet was invalid.
 2011-04-27 21:49:22 [25924] [0] ERROR: Garbage at store-file, skipped.
 2011-04-27 21:49:22 [25924] [0] PANIC: Internal error: unknown message
 type: 1747722356
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(gw_panic+0xe2) [0x80d0992]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(msg_unpack_real+0x76) [0x8065946]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(msg_unpack_wrapper+0x29) [0x8065d19]
 2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
 [0x805f2cf]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /usr/local/kannel/sbin/bearerbox(main+0x91d) [0x80553fd]
 2011-04-27 21:49:22 [25924] [0] PANIC:
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b5ebc]
 2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
 [0x8053de1]

 i have attached my smskannel.conf file and my kannel.log file for your
 review.

 Thank you in advance for your kind help

 Kind Regards,



 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord




 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


Packet too short while unpacking Msg Error

2011-04-27 Thread mwamba chishimba
Hello Everyone,

I have run into serious trouble with my kannel setup. Been working just fine
and until a few hours ago whe it suddenly stopped working.
When I start bearerbox with :* /usr/local/kannel/sbin/bearerbox -v -1
/usr/local/kannel/smskannel.conf
*
I get the following error:
.
truncated
.
.
2011-04-27 21:49:22 [25924] [0] ERROR: Packet too short while unpacking Msg.
2011-04-27 21:49:22 [25924] [0] ERROR: Msg packet was invalid.
2011-04-27 21:49:22 [25924] [0] ERROR: Garbage at store-file, skipped.
2011-04-27 21:49:22 [25924] [0] PANIC: Internal error: unknown message type:
1747722356
2011-04-27 21:49:22 [25924] [0] PANIC:
/usr/local/kannel/sbin/bearerbox(gw_panic+0xe2) [0x80d0992]
2011-04-27 21:49:22 [25924] [0] PANIC:
/usr/local/kannel/sbin/bearerbox(msg_unpack_real+0x76) [0x8065946]
2011-04-27 21:49:22 [25924] [0] PANIC:
/usr/local/kannel/sbin/bearerbox(msg_unpack_wrapper+0x29) [0x8065d19]
2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
[0x805f2cf]
2011-04-27 21:49:22 [25924] [0] PANIC:
/usr/local/kannel/sbin/bearerbox(main+0x91d) [0x80553fd]
2011-04-27 21:49:22 [25924] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb78b5ebc]
2011-04-27 21:49:22 [25924] [0] PANIC: /usr/local/kannel/sbin/bearerbox
[0x8053de1]

i have attached my smskannel.conf file and my kannel.log file for your
review.

Thank you in advance for your kind help

Kind Regards,



-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord


smsbox.log
Description: Binary data


kannel.log
Description: Binary data


smskannel.conf
Description: Binary data


Re: Running Short Codes on Kannel (fwd)

2010-09-22 Thread mwamba chishimba
Hi Rene, thats my kannel.conf file

group = core
admin-port = 13000
admin-password = ...
admin-deny-ip = *.*.*.*
admin-allow-ip = 
wapbox-port = 13002
wdp-interface-name = *
log-file = /var/log/kannel/bearerbox.log
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1

group = wapbox
bearerbox-host = localhost
log-file = /var/log/kannel/wapbox.log

Bearerebox and wapbox only have logs that were generated when kannel
was first configured.

Kind Regards,

On 9/22/10, Nikos Balkanas nbalka...@gmail.com wrote:
 Hi,

 Am I missing something here? bb is sending the NACK. Wouldn't bb logs be
 more informative?

 BR,
 Nikos
 - Original Message -
 From: Rene Kluwen rene.klu...@chimit.nl
 To: 'mwamba chishimba' bamwa...@gmail.com
 Cc: 'users' users@kannel.org; 'Anthony Musaluke' goof2...@gmail.com
 Sent: Tuesday, September 21, 2010 10:35 PM
 Subject: RE: Running Short Codes on Kannel (fwd)


 Check: log-file in group = smsbox in your kannel.conf.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 21:08
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Thanx Rene once again,

 I have checked the log files unfortunately i don't seem to have smsbox
 log file. I have bearerbox.log, access.log and wapbox.log in my
 /var/log/kannel/ directory.

 Kind Regards

 On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Smsbox will tell you if there was a nack or not.
 Possible cause: Invalid smsc-id, but probably there's more reasons.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 20:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Thank you Rene for your response. How can I check whats causing
 bearerbox to send a nack? Twisting the question around, what could be
 the cause of a nack response?

 On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sqlbox saves the message upon relaying it to bearerbox.
 If bearerbox sends a nack upon return, then sqlbox doesn't delete the
 message.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 19:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Hi Everyone,

 @Rene: am still trying out allowed-receiver-prefix if it doesn't
 work then I'll send the file as suggested by Anthony.

 Got another puzzle though. We have an http interface that is
 integrated with kannel which we use for bulk messaging. It's been
 working just fine but on Friday it started behaving funny. When you
 send a message using the online interface, it shows that the message
 has been queued for delivery. If you go to sqlbox database you will
 actually see the sent message in the send_sms table. Unfortunately the
 message doesn't get delivered and there is no record of it in the
 access log file.

 The other services configured on kannel are working just fine only
 this online interface is the one with this issue.

 I know kannel is ok becasue the other services are running and I also
 know that the interface is fine based on the fact that am able to
 insert the message into the send_sms table of the sqlbox database. I
 like getting dirty with code so any pointers as to where I can begin
 my troubleshooting is very much welcome.

 Kind Regards,


 On 9/17/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sorry.. Maybe you should look at allowed-receiver-prefix. My bad!



 == Rene



 From: Anthony Musaluke [mailto:goof2...@gmail.com]
 Sent: Friday, 17 September, 2010 16:26
 To: mwamba chishimba
 Cc: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel (fwd)



 Mwamba



 its best if you send whole file. How many 'services' have you got? How
 many
 'keywords'? Kannel does not stop to search when it encounters the first
 denied rule, it keeps searching down until it hits a match. This is
 what
 you
 may be experiencing.



 Also prefix is normally for the source phone that is allowed to use the
 service. For example if you wanted to only allow MTN or Zain you can
 use
 'allowed-prefix' and set it to 096 or 097.



 Thanks



 Musaluke



 On Fri, Sep 17, 2010 at 12:28 PM, mwamba chishimba bamwa...@gmail.com
 wrote:

 Hello Rene,

 I have tried out what yu suggested and added something else I read but
 to no avail. See below:
 Sms-service

 #Mt Zion
 group = sms-service
 keyword = prayer
 get-url = http://...;
 omit-empty = true
 allowed-prefix = 4321
 allowed-smsc-id =C43211
 #accepted-smsc = C44991;C44992;C34661;C34662

 below is the smsc group

 group = smsc
 smsc = smpp
 smsc-id = C43211
 host = 1.1.1.1
 port = 
 receive-port = 
 smsc-username = 
 smsc-password = 
 system-type = VMA
 my-number = 4321

 What am I missing out on?

 Kind Regards,

 Mwamba

 On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you

Re: Running Short Codes on Kannel (fwd)

2010-09-22 Thread mwamba chishimba
Hi Nikos,

I have checked bearerbox but there is no NACK record and all the
entries in there are from way back.

Kind Regards,


On 9/22/10, Nikos Balkanas nbalka...@gmail.com wrote:
 Hi,

 Am I missing something here? bb is sending the NACK. Wouldn't bb logs be
 more informative?

 BR,
 Nikos
 - Original Message -
 From: Rene Kluwen rene.klu...@chimit.nl
 To: 'mwamba chishimba' bamwa...@gmail.com
 Cc: 'users' users@kannel.org; 'Anthony Musaluke' goof2...@gmail.com
 Sent: Tuesday, September 21, 2010 10:35 PM
 Subject: RE: Running Short Codes on Kannel (fwd)


 Check: log-file in group = smsbox in your kannel.conf.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 21:08
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Thanx Rene once again,

 I have checked the log files unfortunately i don't seem to have smsbox
 log file. I have bearerbox.log, access.log and wapbox.log in my
 /var/log/kannel/ directory.

 Kind Regards

 On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Smsbox will tell you if there was a nack or not.
 Possible cause: Invalid smsc-id, but probably there's more reasons.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 20:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Thank you Rene for your response. How can I check whats causing
 bearerbox to send a nack? Twisting the question around, what could be
 the cause of a nack response?

 On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sqlbox saves the message upon relaying it to bearerbox.
 If bearerbox sends a nack upon return, then sqlbox doesn't delete the
 message.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 19:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Hi Everyone,

 @Rene: am still trying out allowed-receiver-prefix if it doesn't
 work then I'll send the file as suggested by Anthony.

 Got another puzzle though. We have an http interface that is
 integrated with kannel which we use for bulk messaging. It's been
 working just fine but on Friday it started behaving funny. When you
 send a message using the online interface, it shows that the message
 has been queued for delivery. If you go to sqlbox database you will
 actually see the sent message in the send_sms table. Unfortunately the
 message doesn't get delivered and there is no record of it in the
 access log file.

 The other services configured on kannel are working just fine only
 this online interface is the one with this issue.

 I know kannel is ok becasue the other services are running and I also
 know that the interface is fine based on the fact that am able to
 insert the message into the send_sms table of the sqlbox database. I
 like getting dirty with code so any pointers as to where I can begin
 my troubleshooting is very much welcome.

 Kind Regards,


 On 9/17/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sorry.. Maybe you should look at allowed-receiver-prefix. My bad!



 == Rene



 From: Anthony Musaluke [mailto:goof2...@gmail.com]
 Sent: Friday, 17 September, 2010 16:26
 To: mwamba chishimba
 Cc: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel (fwd)



 Mwamba



 its best if you send whole file. How many 'services' have you got? How
 many
 'keywords'? Kannel does not stop to search when it encounters the first
 denied rule, it keeps searching down until it hits a match. This is
 what
 you
 may be experiencing.



 Also prefix is normally for the source phone that is allowed to use the
 service. For example if you wanted to only allow MTN or Zain you can
 use
 'allowed-prefix' and set it to 096 or 097.



 Thanks



 Musaluke



 On Fri, Sep 17, 2010 at 12:28 PM, mwamba chishimba bamwa...@gmail.com
 wrote:

 Hello Rene,

 I have tried out what yu suggested and added something else I read but
 to no avail. See below:
 Sms-service

 #Mt Zion
 group = sms-service
 keyword = prayer
 get-url = http://...;
 omit-empty = true
 allowed-prefix = 4321
 allowed-smsc-id =C43211
 #accepted-smsc = C44991;C44992;C34661;C34662

 below is the smsc group

 group = smsc
 smsc = smpp
 smsc-id = C43211
 host = 1.1.1.1
 port = 
 receive-port = 
 smsc-username = 
 smsc-password = 
 system-type = VMA
 my-number = 4321

 What am I missing out on?

 Kind Regards,

 Mwamba

 On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you Rene, I will give you feedback let me just make the changes.

 Kind Regards,

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might
 get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service

Re: Running Short Codes on Kannel (fwd)

2010-09-21 Thread mwamba chishimba
Hi Everyone,

@Rene: am still trying out allowed-receiver-prefix if it doesn't
work then I'll send the file as suggested by Anthony.

Got another puzzle though. We have an http interface that is
integrated with kannel which we use for bulk messaging. It's been
working just fine but on Friday it started behaving funny. When you
send a message using the online interface, it shows that the message
has been queued for delivery. If you go to sqlbox database you will
actually see the sent message in the send_sms table. Unfortunately the
message doesn't get delivered and there is no record of it in the
access log file.

The other services configured on kannel are working just fine only
this online interface is the one with this issue.

I know kannel is ok becasue the other services are running and I also
know that the interface is fine based on the fact that am able to
insert the message into the send_sms table of the sqlbox database. I
like getting dirty with code so any pointers as to where I can begin
my troubleshooting is very much welcome.

Kind Regards,


On 9/17/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sorry.. Maybe you should look at allowed-receiver-prefix. My bad!



 == Rene



 From: Anthony Musaluke [mailto:goof2...@gmail.com]
 Sent: Friday, 17 September, 2010 16:26
 To: mwamba chishimba
 Cc: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel (fwd)



 Mwamba



 its best if you send whole file. How many 'services' have you got? How many
 'keywords'? Kannel does not stop to search when it encounters the first
 denied rule, it keeps searching down until it hits a match. This is what you
 may be experiencing.



 Also prefix is normally for the source phone that is allowed to use the
 service. For example if you wanted to only allow MTN or Zain you can use
 'allowed-prefix' and set it to 096 or 097.



 Thanks



 Musaluke



 On Fri, Sep 17, 2010 at 12:28 PM, mwamba chishimba bamwa...@gmail.com
 wrote:

 Hello Rene,

 I have tried out what yu suggested and added something else I read but
 to no avail. See below:
 Sms-service

 #Mt Zion
 group = sms-service
 keyword = prayer
 get-url = http://...;
 omit-empty = true
 allowed-prefix = 4321
 allowed-smsc-id =C43211
 #accepted-smsc = C44991;C44992;C34661;C34662

 below is the smsc group

 group = smsc
 smsc = smpp
 smsc-id = C43211
 host = 1.1.1.1
 port = 
 receive-port = 
 smsc-username = 
 smsc-password = 
 system-type = VMA
 my-number = 4321

 What am I missing out on?

 Kind Regards,

 Mwamba

 On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you Rene, I will give you feedback let me just make the changes.

 Kind Regards,

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service to respond to just a particular shortcode, use
 allowed-prefix in group = sms-service.

 See:

 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
 578

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Wednesday, 15 September, 2010 19:04
 To: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel

 Thank you Rene for your response. I opted to attaching a file I hope you
 don't mind.

 Kind Regards

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Could you post your config?

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf Of mwamba chishimba
 Sent: Wednesday, 15 September, 2010 18:34
 To: users@kannel.org
 Subject: Running Short Codes on Kannel

 Hello everyone!!

 Am relatively new to kannel but it's been an interesting ride so far.
 I have a question though and hope someone out there will help me out.

 I have 4 short codes that am running now the problem is that when I
 send a request using one of the short codes, the response sometimes is
 returned on a different short code from the four that am
 administering.

 Has anyone else experienced this using kannel as the sms gateway? Any
 highlights on how I can overcome this will be much appreciated.

 Kind Regards,

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come,
 nor height, nor depth, nor any other creature, shall be able to
 separate us from the love of God, which is in Christ Jesus our Lord






 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us
 from
 the love of God, which is in Christ Jesus our Lord




 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come

Re: Running Short Codes on Kannel (fwd)

2010-09-21 Thread mwamba chishimba
Thank you Rene for your response. How can I check whats causing
bearerbox to send a nack? Twisting the question around, what could be
the cause of a nack response?

On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sqlbox saves the message upon relaying it to bearerbox.
 If bearerbox sends a nack upon return, then sqlbox doesn't delete the
 message.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 19:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Hi Everyone,

 @Rene: am still trying out allowed-receiver-prefix if it doesn't
 work then I'll send the file as suggested by Anthony.

 Got another puzzle though. We have an http interface that is
 integrated with kannel which we use for bulk messaging. It's been
 working just fine but on Friday it started behaving funny. When you
 send a message using the online interface, it shows that the message
 has been queued for delivery. If you go to sqlbox database you will
 actually see the sent message in the send_sms table. Unfortunately the
 message doesn't get delivered and there is no record of it in the
 access log file.

 The other services configured on kannel are working just fine only
 this online interface is the one with this issue.

 I know kannel is ok becasue the other services are running and I also
 know that the interface is fine based on the fact that am able to
 insert the message into the send_sms table of the sqlbox database. I
 like getting dirty with code so any pointers as to where I can begin
 my troubleshooting is very much welcome.

 Kind Regards,


 On 9/17/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sorry.. Maybe you should look at allowed-receiver-prefix. My bad!



 == Rene



 From: Anthony Musaluke [mailto:goof2...@gmail.com]
 Sent: Friday, 17 September, 2010 16:26
 To: mwamba chishimba
 Cc: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel (fwd)



 Mwamba



 its best if you send whole file. How many 'services' have you got? How
 many
 'keywords'? Kannel does not stop to search when it encounters the first
 denied rule, it keeps searching down until it hits a match. This is what
 you
 may be experiencing.



 Also prefix is normally for the source phone that is allowed to use the
 service. For example if you wanted to only allow MTN or Zain you can use
 'allowed-prefix' and set it to 096 or 097.



 Thanks



 Musaluke



 On Fri, Sep 17, 2010 at 12:28 PM, mwamba chishimba bamwa...@gmail.com
 wrote:

 Hello Rene,

 I have tried out what yu suggested and added something else I read but
 to no avail. See below:
 Sms-service

 #Mt Zion
 group = sms-service
 keyword = prayer
 get-url = http://...;
 omit-empty = true
 allowed-prefix = 4321
 allowed-smsc-id =C43211
 #accepted-smsc = C44991;C44992;C34661;C34662

 below is the smsc group

 group = smsc
 smsc = smpp
 smsc-id = C43211
 host = 1.1.1.1
 port = 
 receive-port = 
 smsc-username = 
 smsc-password = 
 system-type = VMA
 my-number = 4321

 What am I missing out on?

 Kind Regards,

 Mwamba

 On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you Rene, I will give you feedback let me just make the changes.

 Kind Regards,

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service to respond to just a particular shortcode,
 use
 allowed-prefix in group = sms-service.

 See:


 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
 578

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Wednesday, 15 September, 2010 19:04
 To: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel

 Thank you Rene for your response. I opted to attaching a file I hope you
 don't mind.

 Kind Regards

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Could you post your config?

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf Of mwamba chishimba
 Sent: Wednesday, 15 September, 2010 18:34
 To: users@kannel.org
 Subject: Running Short Codes on Kannel

 Hello everyone!!

 Am relatively new to kannel but it's been an interesting ride so far.
 I have a question though and hope someone out there will help me out.

 I have 4 short codes that am running now the problem is that when I
 send a request using one of the short codes, the response sometimes is
 returned on a different short code from the four that am
 administering.

 Has anyone else experienced this using kannel as the sms gateway? Any
 highlights on how I can overcome this will be much appreciated.

 Kind Regards,

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things

Re: Running Short Codes on Kannel (fwd)

2010-09-21 Thread mwamba chishimba
Thanx Rene once again,

I have checked the log files unfortunately i don't seem to have smsbox
log file. I have bearerbox.log, access.log and wapbox.log in my
/var/log/kannel/ directory.

Kind Regards

On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Smsbox will tell you if there was a nack or not.
 Possible cause: Invalid smsc-id, but probably there's more reasons.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 20:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Thank you Rene for your response. How can I check whats causing
 bearerbox to send a nack? Twisting the question around, what could be
 the cause of a nack response?

 On 9/21/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sqlbox saves the message upon relaying it to bearerbox.
 If bearerbox sends a nack upon return, then sqlbox doesn't delete the
 message.

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Tuesday, 21 September, 2010 19:18
 To: Rene Kluwen
 Cc: Anthony Musaluke; users
 Subject: Re: Running Short Codes on Kannel (fwd)

 Hi Everyone,

 @Rene: am still trying out allowed-receiver-prefix if it doesn't
 work then I'll send the file as suggested by Anthony.

 Got another puzzle though. We have an http interface that is
 integrated with kannel which we use for bulk messaging. It's been
 working just fine but on Friday it started behaving funny. When you
 send a message using the online interface, it shows that the message
 has been queued for delivery. If you go to sqlbox database you will
 actually see the sent message in the send_sms table. Unfortunately the
 message doesn't get delivered and there is no record of it in the
 access log file.

 The other services configured on kannel are working just fine only
 this online interface is the one with this issue.

 I know kannel is ok becasue the other services are running and I also
 know that the interface is fine based on the fact that am able to
 insert the message into the send_sms table of the sqlbox database. I
 like getting dirty with code so any pointers as to where I can begin
 my troubleshooting is very much welcome.

 Kind Regards,


 On 9/17/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Sorry.. Maybe you should look at allowed-receiver-prefix. My bad!



 == Rene



 From: Anthony Musaluke [mailto:goof2...@gmail.com]
 Sent: Friday, 17 September, 2010 16:26
 To: mwamba chishimba
 Cc: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel (fwd)



 Mwamba



 its best if you send whole file. How many 'services' have you got? How
 many
 'keywords'? Kannel does not stop to search when it encounters the first
 denied rule, it keeps searching down until it hits a match. This is what
 you
 may be experiencing.



 Also prefix is normally for the source phone that is allowed to use the
 service. For example if you wanted to only allow MTN or Zain you can use
 'allowed-prefix' and set it to 096 or 097.



 Thanks



 Musaluke



 On Fri, Sep 17, 2010 at 12:28 PM, mwamba chishimba bamwa...@gmail.com
 wrote:

 Hello Rene,

 I have tried out what yu suggested and added something else I read but
 to no avail. See below:
 Sms-service

 #Mt Zion
 group = sms-service
 keyword = prayer
 get-url = http://...;
 omit-empty = true
 allowed-prefix = 4321
 allowed-smsc-id =C43211
 #accepted-smsc = C44991;C44992;C34661;C34662

 below is the smsc group

 group = smsc
 smsc = smpp
 smsc-id = C43211
 host = 1.1.1.1
 port = 
 receive-port = 
 smsc-username = 
 smsc-password = 
 system-type = VMA
 my-number = 4321

 What am I missing out on?

 Kind Regards,

 Mwamba

 On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you Rene, I will give you feedback let me just make the changes.

 Kind Regards,

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might
 get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service to respond to just a particular shortcode,
 use
 allowed-prefix in group = sms-service.

 See:



 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
 578

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Wednesday, 15 September, 2010 19:04
 To: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel

 Thank you Rene for your response. I opted to attaching a file I hope
 you
 don't mind.

 Kind Regards

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Could you post your config?

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf Of mwamba chishimba
 Sent: Wednesday, 15 September, 2010 18:34
 To: users@kannel.org
 Subject: Running Short Codes on Kannel

 Hello everyone!!

 Am relatively new to kannel but it's been

Re: Running Short Codes on Kannel

2010-09-17 Thread mwamba chishimba
Hello Rene,

I have tried out what yu suggested and added something else I read but
to no avail. See below:
Sms-service

#Mt Zion
group = sms-service
keyword = prayer
get-url = http://...;
omit-empty = true
allowed-prefix = 4321
allowed-smsc-id =C43211
#accepted-smsc = C44991;C44992;C34661;C34662

below is the smsc group

group = smsc
smsc = smpp
smsc-id = C43211
host = 1.1.1.1
port = 
receive-port = 
smsc-username = 
smsc-password = 
system-type = VMA
my-number = 4321

What am I missing out on?

Kind Regards,

Mwamba

On 9/15/10, mwamba chishimba bamwa...@gmail.com wrote:
 Thank you Rene, I will give you feedback let me just make the changes.

 Kind Regards,

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service to respond to just a particular shortcode, use
 allowed-prefix in group = sms-service.

 See:
 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
 578

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Wednesday, 15 September, 2010 19:04
 To: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel

 Thank you Rene for your response. I opted to attaching a file I hope you
 don't mind.

 Kind Regards

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Could you post your config?

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf Of mwamba chishimba
 Sent: Wednesday, 15 September, 2010 18:34
 To: users@kannel.org
 Subject: Running Short Codes on Kannel

 Hello everyone!!

 Am relatively new to kannel but it's been an interesting ride so far.
 I have a question though and hope someone out there will help me out.

 I have 4 short codes that am running now the problem is that when I
 send a request using one of the short codes, the response sometimes is
 returned on a different short code from the four that am
 administering.

 Has anyone else experienced this using kannel as the sms gateway? Any
 highlights on how I can overcome this will be much appreciated.

 Kind Regards,

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come,
 nor height, nor depth, nor any other creature, shall be able to
 separate us from the love of God, which is in Christ Jesus our Lord






 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us
 from
 the love of God, which is in Christ Jesus our Lord




 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come,
 nor height, nor depth, nor any other creature, shall be able to
 separate us from the love of God, which is in Christ Jesus our Lord



-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come,
nor height, nor depth, nor any other creature, shall be able to
separate us from the love of God, which is in Christ Jesus our Lord



Running Short Codes on Kannel

2010-09-15 Thread mwamba chishimba
Hello everyone!!

Am relatively new to kannel but it's been an interesting ride so far.
I have a question though and hope someone out there will help me out.

I have 4 short codes that am running now the problem is that when I
send a request using one of the short codes, the response sometimes is
returned on a different short code from the four that am
administering.

Has anyone else experienced this using kannel as the sms gateway? Any
highlights on how I can overcome this will be much appreciated.

Kind Regards,

-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come,
nor height, nor depth, nor any other creature, shall be able to
separate us from the love of God, which is in Christ Jesus our Lord



Re: Running Short Codes on Kannel

2010-09-15 Thread mwamba chishimba
Thank you Rene, I will give you feedback let me just make the changes.

Kind Regards,

On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Hello,

 Please copy the Kannel users list on consecutive messages. You might get
 more and better response.
 But if you do, mask sensitive data such as passwords.

 If you want an sms-service to respond to just a particular shortcode, use
 allowed-prefix in group = sms-service.

 See:
 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
 578

 == Rene

 -Original Message-
 From: mwamba chishimba [mailto:bamwa...@gmail.com]
 Sent: Wednesday, 15 September, 2010 19:04
 To: Rene Kluwen
 Subject: Re: Running Short Codes on Kannel

 Thank you Rene for your response. I opted to attaching a file I hope you
 don't mind.

 Kind Regards

 On 9/15/10, Rene Kluwen rene.klu...@chimit.nl wrote:
 Could you post your config?

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf Of mwamba chishimba
 Sent: Wednesday, 15 September, 2010 18:34
 To: users@kannel.org
 Subject: Running Short Codes on Kannel

 Hello everyone!!

 Am relatively new to kannel but it's been an interesting ride so far.
 I have a question though and hope someone out there will help me out.

 I have 4 short codes that am running now the problem is that when I
 send a request using one of the short codes, the response sometimes is
 returned on a different short code from the four that am
 administering.

 Has anyone else experienced this using kannel as the sms gateway? Any
 highlights on how I can overcome this will be much appreciated.

 Kind Regards,

 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come,
 nor height, nor depth, nor any other creature, shall be able to
 separate us from the love of God, which is in Christ Jesus our Lord






 --
 Mwamba Chishimba

 For I am persuaded, that neither death, nor life, nor angels, nor
 principalities, nor powers, nor things present, nor things to come, nor
 height, nor depth, nor any other creature, shall be able to separate us from
 the love of God, which is in Christ Jesus our Lord




-- 
Mwamba Chishimba

For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come,
nor height, nor depth, nor any other creature, shall be able to
separate us from the love of God, which is in Christ Jesus our Lord



Cannot receive sms in kannel and playsms

2010-08-17 Thread mwamba

Hi experts,

I can only send sms both via kannel and playsms but I cannot receive any
sms.  below is my configuration:

*/etc/kannel/conf

group = core
admin-port = 13000
smsbox-port = 13001

admin-password = bar
#status-password = foo
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
log-file = /var/log/kannel/bearerbox.log
log-level = 0
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
#unified-prefix = +358,00358,0;+,00
access-log = /var/log/kannel/access.log
#store-file = /var/log/kannel/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
#THIS DEFINES EXTERNAL DLR STORAGE
dlr-storage = mysql

#THIS DEFINES mysql connection parameters to playsms database
group = mysql-connection
id = mydlr
host = localhost
username = root
password = 
database = playsms
max-connections = 1

#THIS DEFINES THE TABLE dlr PARAMETERS
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 1
#connect-allow-ip = 127.0.0.1

#Duncan 's smsc configs of the sony ericsson c702 as the modem
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyACM0
my-number = 3543870236903270
smsc-id = mtech
log-level = 0
sim-buffering = true

#Duncan's modems groups configs as per /etc/wvdialconf file

group = modems
id = Sony Ericsson
name =  Sony Ericsson C702
detect-string = Sony
init-string=ATZ
init-string=ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
#duncan -- the sender number to be used in text messages
global-sender = +254738967285
#sendsms-chars = 0123456789 +-
log-file = /var/log/kannel/smsbox.log
log-level = 1
#access-log = /tmp/access.log

#-
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
concatenation = true
max-messages = 3
#user-deny-ip = 
#user-allow-ip = 

#-
# SERVICES

group = sms-service
keyword = default
sendsms-port = 13013
#duncan -- the sender number to be used in text messages
global-sender = +254738967285
#sendsms-chars = 0123456789 +-
log-file = /var/log/kannel/smsbox.log
log-level = 1
#access-log = /tmp/access.log

#-
# SEND-SMS USERS
#
group = sendsms-user
username = tester
password = foobar
concatenation = true
max-messages = 3
#user-deny-ip = 
#user-allow-ip = 

#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
is
# applied, using the first one to match.

group = sms-service
keyword = default
catch-all = true
exec = /usr/local/bin/kannel_incoming %t %q %a

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

#max-messages=0
**

In playsms kannel settings. Kannel incoming path is set as
/usr/local/bin/kannel_incoming


*below is my /usr/kannel/kannel_incoming
script*

/usr/kannel/kannel_incoming

#!/bin/bash

# change this if your kannel's incoming path in other directory 

KANNEL_PATH=/usr/local 


KANNEL_FILE=`mktemp -q $KANNEL_PATH/cache/smsd/ERR.in.XX` 



touch $KANNEL_FILE 

chmod 666 $KANNEL_FILE 



# exec = /usr/local/bin/kannel_incoming %t %q %a 

# $1 : %t 

# $2 : %q 

*


I cannot see any log (/usr/loca/cache/smsd/) in this location despite it
having  permission 777.

the smsc sim-buferring=true.

how can i be able to resolve this?

Kind regards,

Duncan


-- 
View this message in context: 
http://old.nabble.com/Cannot-receive-sms-in-kannel-and-playsms-tp29449251p29449251.html
Sent from the Kannel - User mailing list archive at Nabble.com.




Re: ADMIN HTTP AND SEND SMS HTTP INTERFACES FAIL AFTER REBOOTING FEDORA 10 KANNEL SMS GATEWAY SERVER

2010-08-14 Thread mwamba

Thanks guys,

I managed to find out that bbox and smsbox were starting up well.  The issue
was the sort of a bug in firefox that kept blocking the urls with the
messages This website doesn't suply identity information.  Connection not
encrypted

I installed lynx what was missing in FC10. i.e
$yum install lynx

Now i can be able to send sms via lynx and also to shutdown kannel.

Big thanks to all guys for helping out.

:-)

Duncan
---

mwamba wrote:
 
 Hi Experts,
 
 I am having issue with the HTTP interfaces for admin and send sms for
 kannel when i restart Fedora.
 The  gateway can send and receive sms so well (sending sms and admin
 function) after installing kannel, but when i restart Fedora server, the
 http interfaces cannot be used.
 
 The gateway is running on Fedora 10. I am using Sony Ericsson C702 as the
 Modem
 
 ##Below it the /etc/kannel.conf file
 
 #CORE
 
 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #status-password = foo
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 log-file = /var/log/kannel/bearerbox.log
 log-level = 1
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #unified-prefix = +358,00358,0;+,00
 #access-log = /tmp/access.log
 #store-file = kannel.store
 #ssl-server-cert-file = cert.pem
 #ssl-server-key-file = key.pem
 #ssl-certkey-file = mycertandprivkeyfile.pem
 
 #-
 # SMSC CONNECTIONS
 
 #Duncan 's smsc configs of the sony ericsson c702 as the modem
 group = smsc
 smsc = at
 modemtype = auto
 device = /dev/ttyACM0
 my-number = 3543870236903270
 log-level = 1
 
 #Duncan's modems groups configs as per /etc/wvdialconf file
 
 group = modems
 id = Sony Ericsson
 name =  Sony Ericsson C702
 detect-string = Sony
 init-string=ATZ
 init-string=ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0
 
 #-
 # SMSBOX SETUP
 #
 # Smsbox(es) do higher-level SMS handling after they have been received
 from
 # SMS centers by bearerbox, or before they are given to bearerbox for
 delivery
 
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 #duncan -- the sender number to be used in text messages
 global-sender = +254738967285
 #sendsms-chars = 0123456789 +-
 log-file = /var/log/kannel/smsbox.log
 log-level = 1
 #access-log = /tmp/access.log
 
 #-
 # SEND-SMS USERS
 #
 # These users are used when Kannel smsbox sendsms interface is used to
 # send PUSH sms messages, i.e. calling URL like
 #
 http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar...
 
 group = sendsms-user
 username = tester
 password = foobar
 concatenation = true
 max-messages = 3
 #user-deny-ip = 
 #user-allow-ip = 
 
 #-
 # SERVICES
 #
 # These are 'responses' to sms PULL messages, i.e. messages arriving from
 # handsets. The response is based on message content. Only one sms-service
 is
 # applied, using the first one to match.
 
 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!
 
 # There should be always a 'default' service. This service is used when no
 # other 'sms-service' is applied.
 
 group = sms-service
 keyword = default
 text = No service specified
 
 
 
 The bearerbox  and smsbox start well. see below logs:
 
 BEARER BOX STARTS UP SUCESSFULLY##
 
 [r...@fedora10 owino]# bearerbox -v 1 /etc/kannel.conf 
 [1] 3287
 [r...@fedora10 owino]# 2010-08-10 03:45:53 [3287] [0] INFO: Debug_lvl = 1,
 log_file = none, log_lvl = 0
 
 2010-08-10 03:45:53 [3287] [0] WARNING: DLR: using default 'internal' for
 storage type.
 2010-08-10 03:45:53 [3287] [0] INFO: DLR using storage type: internal
 2010-08-10 03:45:53 [3287] [0] INFO: Added logfile
 `/var/log/kannel/bearerbox.log' with level `1'.
 2010-08-10 03:45:53 [3287] [0] INFO: HTTP: Opening server at port 13000.
 2010-08-10 03:45:53 [3287] [0] INFO: BOXC: 'smsbox-Tmax-pending' not set,
 using default (100).
 2010-08-10 03:45:53 [3287] [0] INFO: Set SMS resend frequency to 60
 seconds.
 2010-08-10 03:45:53 [3287] [0] INFO: SMS resend retry set to unlimited.
 2010-08-10 03:45:53 [3287] [0] INFO: DLR rerouting for smsc id (null)
 disabled.
 2010-08-10 03:45:53 [3287] [0] INFO: AT2[/dev/ttyACM0]: configuration
 doesn't show modemtype. will autodetect
 2010-08-10 03:45:53 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device
 2010-08-10 03:45:53 [3287] [0] INFO:
 
 2010-08-10 03:45:53 [3287] [0] INFO: Kannel bearerbox II version 1.4.3
 starting
 2010-08-10 03:45:53 [3287] [0] INFO: MAIN: Start-up done, entering
 mainloop
 2010-08-10 03:45:54 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to
 115200
 2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: Closing device
 2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: detect speed

Re: Kannel Help

2010-08-11 Thread mwamba

Hi rrperez,

you will get kannel documentation in www.kannel.org in the Link
DOCUMENTATION - user Guide section.

Rgds,

Duncan
-- 
View this message in context: 
http://old.nabble.com/Kannel-Help-tp29404915p29405200.html
Sent from the Kannel - User mailing list archive at Nabble.com.




Re: ADMIN HTTP AND SEND SMS HTTP INTERFACES FAIL AFTER REBOOTING FEDORA 10 KANNEL SMS GATEWAY SERVER

2010-08-11 Thread mwamba

Thanks Alvaro for your feedback. Am new to kannel. How do I get the get the
logs at debug level since the only kannel logs that i have are similar to
the ones of the bearerbox and smsbox that i have provided  here in the forum
already. Are there other logs?

Kind regards,

Duncan

Alvaro Cornejo wrote:
 
 Please post logs at debug level
 
 |-|
 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 Tue, Aug 10, 2010 at 3:38 AM, mwamba duncan.ow...@gmail.com wrote:

 Hi Experts,

 I am having issue with the HTTP interfaces for admin and send sms for
 kannel
 when i restart Fedora.
 The  gateway can send and receive sms so well (sending sms and admin
 function) after installing kannel, but when i restart Fedora server, the
 http interfaces cannot be used.

 The gateway is running on Fedora 10. I am using Sony Ericsson C702 as the
 Modem

 ##Below it the /etc/kannel.conf file

 #CORE

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #status-password = foo
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 log-file = /var/log/kannel/bearerbox.log
 log-level = 1
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #unified-prefix = +358,00358,0;+,00
 #access-log = /tmp/access.log
 #store-file = kannel.store
 #ssl-server-cert-file = cert.pem
 #ssl-server-key-file = key.pem
 #ssl-certkey-file = mycertandprivkeyfile.pem

 #-
 # SMSC CONNECTIONS

 #Duncan 's smsc configs of the sony ericsson c702 as the modem
 group = smsc
 smsc = at
 modemtype = auto
 device = /dev/ttyACM0
 my-number = 3543870236903270
 log-level = 1

 #Duncan's modems groups configs as per /etc/wvdialconf file

 group = modems
 id = Sony Ericsson
 name =  Sony Ericsson C702
 detect-string = Sony
 init-string=ATZ
 init-string=ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0

 #-
 # SMSBOX SETUP
 #
 # Smsbox(es) do higher-level SMS handling after they have been received
 from
 # SMS centers by bearerbox, or before they are given to bearerbox for
 delivery

 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 #duncan -- the sender number to be used in text messages
 global-sender = +254738967285
 #sendsms-chars = 0123456789 +-
 log-file = /var/log/kannel/smsbox.log
 log-level = 1
 #access-log = /tmp/access.log

 #-
 # SEND-SMS USERS
 #
 # These users are used when Kannel smsbox sendsms interface is used to
 # send PUSH sms messages, i.e. calling URL like
 #
 http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar...

 group = sendsms-user
 username = tester
 password = foobar
 concatenation = true
 max-messages = 3
 #user-deny-ip = 
 #user-allow-ip = 

 #-
 # SERVICES
 #
 # These are 'responses' to sms PULL messages, i.e. messages arriving from
 # handsets. The response is based on message content. Only one
 sms-service
 is
 # applied, using the first one to match.

 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!

 # There should be always a 'default' service. This service is used when
 no
 # other 'sms-service' is applied.

 group = sms-service
 keyword = default
 text = No service specified

 

 The bearerbox  and smsbox start well. see below logs:

 BEARER BOX STARTS UP SUCESSFULLY##

 [r...@fedora10 owino]# bearerbox -v 1 /etc/kannel.conf 
 [1] 3287
 [r...@fedora10 owino]# 2010-08-10 03:45:53 [3287] [0] INFO: Debug_lvl =
 1,
 log_file = none, log_lvl = 0

 2010-08-10 03:45:53 [3287] [0] WARNING: DLR: using default 'internal' for
 storage type.
 2010-08-10 03:45:53 [3287] [0] INFO: DLR using storage type: internal
 2010-08-10 03:45:53 [3287] [0] INFO: Added logfile
 `/var/log/kannel/bearerbox.log' with level `1'.
 2010-08-10 03:45:53 [3287] [0] INFO: HTTP: Opening server at port 13000.
 2010-08-10 03:45:53 [3287] [0] INFO: BOXC: 'smsbox-Tmax-pending' not set,
 using default (100).
 2010-08-10 03:45:53 [3287] [0] INFO: Set SMS resend frequency to 60
 seconds.
 2010-08-10 03:45:53 [3287] [0] INFO: SMS resend retry set to unlimited.
 2010-08-10 03:45:53 [3287] [0] INFO: DLR rerouting for smsc id (null)
 disabled.
 2010-08-10 03:45:53 [3287] [0] INFO: AT2[/dev/ttyACM0]: configuration
 doesn't show modemtype. will autodetect
 2010-08-10 03:45:53 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device
 2010-08-10 03:45:53 [3287] [0] INFO:
 
 2010-08-10 03:45:53 [3287] [0] INFO: Kannel bearerbox II version 1.4.3
 starting
 2010-08-10 03

ADMIN HTTP AND SEND SMS HTTP INTERFACES FAIL AFTER REBOOTING FEDORA 10 KANNEL SMS GATEWAY SERVER

2010-08-10 Thread mwamba

Hi Experts,

I am having issue with the HTTP interfaces for admin and send sms for kannel
when i restart Fedora.
The  gateway can send and receive sms so well (sending sms and admin
function) after installing kannel, but when i restart Fedora server, the
http interfaces cannot be used.

The gateway is running on Fedora 10. I am using Sony Ericsson C702 as the
Modem

##Below it the /etc/kannel.conf file

#CORE

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
log-file = /var/log/kannel/bearerbox.log
log-level = 1
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
#unified-prefix = +358,00358,0;+,00
#access-log = /tmp/access.log
#store-file = kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem

#-
# SMSC CONNECTIONS

#Duncan 's smsc configs of the sony ericsson c702 as the modem
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyACM0
my-number = 3543870236903270
log-level = 1

#Duncan's modems groups configs as per /etc/wvdialconf file

group = modems
id = Sony Ericsson
name =  Sony Ericsson C702
detect-string = Sony
init-string=ATZ
init-string=ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0

#-
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
#duncan -- the sender number to be used in text messages
global-sender = +254738967285
#sendsms-chars = 0123456789 +-
log-file = /var/log/kannel/smsbox.log
log-level = 1
#access-log = /tmp/access.log

#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
#
http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar...

group = sendsms-user
username = tester
password = foobar
concatenation = true
max-messages = 3
#user-deny-ip = 
#user-allow-ip = 

#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
is
# applied, using the first one to match.

group = sms-service
keyword = nop
text = You asked nothing and I did it!

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = No service specified



The bearerbox  and smsbox start well. see below logs:

BEARER BOX STARTS UP SUCESSFULLY##

[r...@fedora10 owino]# bearerbox -v 1 /etc/kannel.conf 
[1] 3287
[r...@fedora10 owino]# 2010-08-10 03:45:53 [3287] [0] INFO: Debug_lvl = 1,
log_file = none, log_lvl = 0

2010-08-10 03:45:53 [3287] [0] WARNING: DLR: using default 'internal' for
storage type.
2010-08-10 03:45:53 [3287] [0] INFO: DLR using storage type: internal
2010-08-10 03:45:53 [3287] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2010-08-10 03:45:53 [3287] [0] INFO: HTTP: Opening server at port 13000.
2010-08-10 03:45:53 [3287] [0] INFO: BOXC: 'smsbox-Tmax-pending' not set,
using default (100).
2010-08-10 03:45:53 [3287] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-08-10 03:45:53 [3287] [0] INFO: SMS resend retry set to unlimited.
2010-08-10 03:45:53 [3287] [0] INFO: DLR rerouting for smsc id (null)
disabled.
2010-08-10 03:45:53 [3287] [0] INFO: AT2[/dev/ttyACM0]: configuration
doesn't show modemtype. will autodetect
2010-08-10 03:45:53 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device
2010-08-10 03:45:53 [3287] [0] INFO:

2010-08-10 03:45:53 [3287] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-08-10 03:45:53 [3287] [0] INFO: MAIN: Start-up done, entering mainloop
2010-08-10 03:45:54 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: Closing device
2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: detect speed is
115200
2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device
2010-08-10 03:45:57 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: Closing device
2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device
2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: Logging in
2010-08-10 03:46:00 [3287] [6] INFO: AT2[/dev/ttyACM0]: init device
2010-08-10 03:46:00 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2010-08-10 03:46:01 [3287] [6] INFO: AT2[/dev/ttyACM0]: AT SMSC successfully
opened.

## SMSBOX STARTS UP SUCESSFULLY