message delayed with no reason at bearerebox

2014-09-17 Thread seikath
Hello guys,

I have a strange delay in the sending of several messages to identical number :

There is a delay between receiving a message by the smsbox untill its being 
send to the SMPP link

*2014-09-12 15:32:58 send-SMS request added - sender:cmUser:test_user 127.0.0.1 
target:30303030303 request: ...**
*
Then at the kannel access log the first appearance of that message is 
at*2014-09-12 18:44:56 Sent SMS [SMSC:test_gate] **
*This is a delay of more that 3 hours. And I don't know how to explain it ..
There are no errors at the kannel debug log  for that SMSC like disconnects or 
queue full error or anything else

How I can find out the reason for the delay ?

SMPP SMSC CONFIG:
==

group = smsc
smsc = smpp
smsc-id = test_gate
host =  smpp09.test.com
transceiver-mode = 1
port = 3
#receive-port = 3223
smsc-username = user_t
smsc-password = pass_t
system-type = DEMO
service-type = DEMO
source-addr-autodetect = 1
dest-addr-ton = 1
dest-addr-npi = 1
source-addr-ton = 1
source-addr-npi = 1
bind-addr-npi = 1 
enquire-link-interval = 60
max-pending-submits = 1
denied-smsc-id = clickatellGSM;clickatell
allowed-smsc-id-regex = test_gate
interface-version = 34
wait-ack = 1800


group = sendsms-user
username = test_user
password = test_pass
user-deny-ip = *.*.*.*
user-allow-ip = 127.0.0.1;10.9.0.*
max-messages = 3
concatenation = true
forced-smsc = test_gate
default-smsc = test_gate

==

I will appreciate some some hints here ...


Cheers

seikath



svn r5088 kannel opensmppbox and sqlbox fail to compile with redis

2014-04-25 Thread seikath
Hello guys,

Long time no write here ... :)

Anyway, I try to compile the kannel with redis, its compiles well:
===
Configure options
cd trunk
make clean
./configure \
--prefix=/opt/kannel \
--enable-start-stop-daemon \
--enable-pcre \
--with-redis \
--with-ssl=/usr/lib64/openssl \


Kannel bearerbox version `svn-r5088'.
Build `Apr 24 2014 01:12:35', compiler `4.8.2 20131212 (Red Hat 4.8.2-7)'.
System Linux, release 3.10.37-47.135.amzn1.x86_64, version #1 SMP Fri Apr 18 
03:28:26 UTC 2014, machine x86_64.
Hostname localhost, IP 127.0.0.1.
Libxml version 2.9.1.
Using OpenSSL 1.0.1g-fips 7 Apr 2014.
Using hiredis API 0.10.1
Using native malloc.




the opensmppbox failes to compile :
===
cd trunk/addons/opensmppbox
make clean
./configure \
--prefix=/opt/kannel \
--with-kannel-dir=/opt/kannel/ \
--enable-ssl \
--with-ssl=/usr/lib64/openssl \
--enable-docs \


the compile error follows:
r...@app-01.adaptsms.com:[Fri Apr 25 
13:44:39][/opt/installs/kannel/trunk/addons/opensmppbox]$ make
make all-recursive
make[1]: Entering directory `/opt/installs/kannel/trunk/addons/opensmppbox'
Making all in gw
make[2]: Entering directory `/opt/installs/kannel/trunk/addons/opensmppbox/gw'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 
-D_BSD_SOURCE -I/usr/lib64/openssl/include -I/opt/kannel/include/kannel -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 
-I/usr/lib64/openssl/include -I/usr/include/hiredis -MT opensmppbox.o -MD -MP 
-MF
.deps/opensmppbox.Tpo -c -o opensmppbox.o opensmppbox.c; \
then mv -f .deps/opensmppbox.Tpo .deps/opensmppbox.Po; else rm -f 
.deps/opensmppbox.Tpo; exit 1; fi
opensmppbox.c: In function ‘handle_pdu’:
opensmppbox.c:1613:6: error: too few arguments to function ‘dlr_add’
dlr_add(box-boxc_id, msgid, msg2);
^
In file included from opensmppbox.c:79:0:
/opt/kannel/include/kannel/gw/dlr.h:100:6: note: declared here
void dlr_add(const Octstr *smsc, const Octstr *ts, Msg *msg, int use_dst);
^
opensmppbox.c:1655:6: error: too few arguments to function ‘dlr_add’
dlr_add(box-boxc_id, msgid, msg2);
^
In file included from opensmppbox.c:79:0:
/opt/kannel/include/kannel/gw/dlr.h:100:6: note: declared here
void dlr_add(const Octstr *smsc, const Octstr *ts, Msg *msg, int use_dst);
^
opensmppbox.c: In function ‘run_smppbox’:
opensmppbox.c:2099:10: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
fd = (int)arg;
^
In file included from /opt/kannel/include/kannel/gwlib/gwlib.h:82:0,
from opensmppbox.c:72:
opensmppbox.c: In function ‘wait_for_connections’:
opensmppbox.c:2156:36: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
gwthread_create(function, (void *)fd);
^
/opt/kannel/include/kannel/gwlib/gwthread.h:91:50: note: in definition of macro 
‘gwthread_create’
(gwthread_create_real(func, __FILE__ : #func, arg))
^
opensmppbox.c: In function ‘smppboxc_run’:
opensmppbox.c:2171:12: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
port = (int)arg;
^
make[2]: *** [opensmppbox.o] Error 1
make[2]: Leaving directory `/opt/installs/kannel/trunk/addons/opensmppbox/gw'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/installs/kannel/trunk/addons/opensmppbox'
make: *** [all] Error 2


Could someone help with that issue ?


cheers,

seikath




Re: sqlbox greek gsm-7

2011-05-12 Thread seikath
1. send @ from your mobile , and check which is the char code the SMSC used to 
map it.
2. use the same char code to replace the @ in the MT traffic.



On 05/12/11 13:08, Πετσούκα Τάνια wrote:
 Thank you Mike,
 i send greek properly using your settings.
 
 The only problem i came up with is symbol '@'.
 
 E.g :   For greek letter Phi, Φ,   i use : chr(hexdec( '0x12' )) ( or 
 chr(hexdec( '%12') )
  For greek letter Lamda, Λ,  i use : chr(hexdec( '0x14' )) ( or 
 chr(hexdec( '%14') )
  For euro sign €  i use :  chr(hexdec('0x1B')).chr(hexdec('0x65'))
.etc
 
 When it comes to '@'   if i replace it to chr(hexdec( '0x00' ))  according to 
 gsm mapping, http://www.cardboardfish.com/support/bin/view/Main/GSMEncoding
 the message after this character disappears.
 I tried to replace it with chr(hexdec( '%40' )) , and i got 'i' in its 
 position  to the received message.
 
 So, do you know which is the proper way to send  '@'?
 
 
 - Original Message - From: Mike Nakos mike.na...@gmail.com
 To: ta...@tessera.gr
 Cc: users@kannel.org
 Sent: Wednesday, May 11, 2011 8:14 PM
 Subject: Re: Re: sqlbox greek gsm-7
 
 
 Hello Tania.
 I use the below settings on my kannel.conf file

 group = smsc
 smsc = smpp
 smsc-id = myprovider
 host = ip address
 port = smsc port
 receive-port = smsc port
 smsc-username = username
 smsc-password = password
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 #dest-addr-np = 1
 bind-addr-ton = 0
 bind-addr-npi = 1
 system-type = VMA
 enquire-link-interval = 30
 reconnect-delay = 10
 throughput = 20
 validityperiod = 1340
 alt-charset = UTF-8


 I don't use alt_dcs and set charset field on sms_send table to UTF-8 also.

 Of course, any Greek character like Δ must be written %10 to msgdata field.
 Personally, I encode every single character to its gsm value. Always with % 
 in front of it.

 DB field and table encoding is utf-8 also.

 Try these settings and follow the thread with title
 SMS from sqlbox - Problem when sending more that 160 char with greek letters
 on May 2011.
 I think this will help you.

 Best Regards
 Mike Nakos

 
 
 



Re: Fake SMSC

2011-05-11 Thread seikath
read the documents and the default configurations, its there, if you care to 
read them all



root@darkwater:[Wed May 11 09:54:28]:[/opt/kannel/sbin]$ ./fakesmsc --help
2011-05-11 09:54:36 [28905] [0] PANIC:
Usage: fakesmsc [-H host] [-r port] [-i interval] [-m max] [-z type] msg ...

* 'host' and 'port' define bearerbox connection (default localhost:1),
* 'interval' is time in seconds (floats allowed) between generated messages,
* 'max' is the total number sent (-1, default, means unlimited),
* type bitmask of which elements to add randomized numbers for MO messages,
*1: src no, 2: recv no, 4: last text element,
*where the given static elements in msg are used as constant prefixes,
* msg is message to send, if several are given, they are sent randomly.

msg format: sender receiver type(text/data/udh/route) [udhdata|route] msgdata

Type text means plaintext msgdata, data urlcoded, udh urlcoded udh+msg
and route means smsbox-id routed plaintext msgdata
Examples:

fakesmsc -m 1 123 345 udh %04udh%3f message+data+here
fakesmsc -m 1 123 345 route smsbox1 message+data+here
fakesmsc -i 0.01 -m 1000 123 345 text nop 1 2 text another message here
fakesmsc -z 7 -m 1000 123rand 345rand text nop rand

Server replies are shown in the same message format.

send 1 fakes with some random text as digits from 1 to 25
root@darkwater:[Wed May 11 09:52:03]:[/opt/kannel/sbin]$ cat 
ops-2011-05.1.fake.sh
#/bin/sh
#
echo non active !!! open and fix 
#./fakesmsc -z 1 -i 0 -m 1 \
34622  text 1 \
34622  text 2  \
34622  text 3  \
34622  text 4  \
34622  text 5  \
34622  text 6  \
34622  text 7  \
34622  text 8  \
34622  text 9  \
34622  text 10  \
34622  text 11  \
34622  text 12  \
34622  text 13  \
34622  text 14  \
34622  text 15  \
34622  text 16  \
34622  text 17  \
34622  text 18  \
34622  text 19  \
34622  text 20  \
34622  text 21  \
34622  text 22  \
34622  text 23  \
34622  text 24  \
34622  text 25  \



On 05/11/11 08:47, Deborah Pisani wrote:
 Hi Nikos,
 
 We have already been through the User Guide.  It does not include
 anything on how to start fakesmsc and make it listen on a specified
 port.
 
 Best Regards,
 
 
 Deborah and Andrew
 
 -Original Message-
 From: Nikos Balkanas [mailto:nbalka...@gmail.com] 
 Sent: 10 May 2011 19:58
 To: Deborah Pisani; us...@vm1.kannel.org
 Subject: Re: Fake SMSC
 
 Please read UG.
 
 BR,
 Nikos
 - Original Message - 
 From: Deborah Pisani deborah.pis...@go.com.mt
 To: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
 Sent: Tuesday, May 10, 2011 6:49 PM
 Subject: RE: Fake SMSC
 
 
 Hi Nikos,
 
 Thank you for the reply.  Is there a specific switch which can be used
 when starting up fakesmsc to set the fakesmsc listening port (e.g.
 2948)?
 
 Best Regards,
 
 
 Deborah
 
 -Original Message-
 From: Nikos Balkanas [mailto:nbalka...@gmail.com] 
 Sent: 10 May 2011 17:42
 To: Deborah Pisani; us...@vm1.kannel.org
 Subject: Re: Fake SMSC
 
 Yes, you can use fake smsc to test PPG. You can assign any available
 port to 
 FAKE smsc, but that refers to the port listening for the fakesmsc
 client, 
 not bearerbox. Fake SMSc needs the client, fakesmsc, connected to work.
 
 BR,
 Nikos
 - Original Message - 
 From: Deborah Pisani
 To: users@kannel.org
 Sent: Tuesday, May 10, 2011 3:41 PM
 Subject: Fake SMSC
 
 
 Hello,
 
 
 We are trying to use the Fake SMSC to test WAP Push.  Is this possible
 and, 
 if yes, does this mean that the Fake SMSC has to be configured to run on
 
 port 2948 to receive the WAP Push via Bearerbox?
 
 Thank you.
 
 
 Best Regards,
 
 
 Deborah and Andrew 
 
 
 
 



Re: Kannel HTTP locking up

2011-02-22 Thread seikath
A lot of Windows admins like the Ubuntu server, http://www.ubuntu.com/server
Personally, CentOS is the best, when you have no option for Slackware, of 
course .. :)


On 02/22/11 17:00, Alejandro Guerrieri wrote:
 We use CentOS since 3.x (latest is 5.x) with very good results, but any 
 recent distro should work fine.
 
 Regards,
 
 Alex
 
 On Tue, Feb 22, 2011 at 3:47 PM, Richard Crawshaw 
 richard.craws...@callparents.com mailto:richard.craws...@callparents.com 
 wrote:
 
 OK, many thanks.  That means that we need a Linux box to run Kannel on.  
 However, I'm not really familiar with Linux, is there a recommended 
 distribution
 that Kannel runs best on, or any that are best avoided?
 
 Regards
 Richard
 
 
 -Original Message-
 From: users-boun...@kannel.org mailto:users-boun...@kannel.org 
 [mailto:users-boun...@kannel.org mailto:users-boun...@kannel.org] On Behalf 
 Of Stipe Tolj
 Sent: 21 February 2011 16:47
 Cc: users@kannel.org mailto:users@kannel.org
 Subject: Re: Kannel HTTP locking up
 
 Am 21.02.2011 13:58, schrieb Richard Crawshaw:
  Hi
 
  I'm having a problem that looks like Kannel's SMS box HTTP listener is 
 locking up.
 
  I've been running some load tests on Kannel, sending out 30K messages 
 over a
  short space of time.
 
  I am running Kannel version 1.5.0 under Windows using Cygwin.  I have 
 no problem
  if it is running on my Windows 7 laptop, 32 bit 2.68G RAM, 2.53GHz.  
 However,
  when it is running on one of our servers it locks up after about 24K 
 messages.
  The server is Windows Server 2003 R2 Enterprise x64 Edition SP2, 2GHz 
 with 8G RAM.
 
  The only difference between the two is the Kannel configuration file 
 which
  points the log files to different places in the file system.  Both 
 instances of
  Kannel were compiled from the same source code on the target machines 
 using the
  latest version of Cygwin.
 
  The server isn't under a heavy load.  It is also running IIS.
 
  After Kannel locks up there are no further entries added to its log 
 files and
  from what I've found the only solution is to stop and restart it.  
 There doesn't
  appear to be anything additional logged from the server that isn't 
 logged from
  my laptop.
 
  Has anyone else seen anything like this before?  Any clues to what may 
 be the
  cause or possible solutions would be greatly appreciated.
 
  I can post logs and config file if needed.
 
 Cygin's pthreads, which Kannel uses heavily is NOT(!) stable. That's the 
 simple
 reason. This is BTW also the reason why Cygwin never packaged the mysql 
 server.
 So, there is NO way to use Kannel on Cygwin for real production use.
 
 Stipe
 
 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany
 
 tolj.org http://tolj.org system architecture  Kannel Software 
 Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/
 
 mailto:st_{at}_tolj.org mailto:st_%7Bat%7D_tolj.org   
 mailto:stolj_{at}_kannel.org mailto:stolj_%7Bat%7D_kannel.org
 ---
 
 
 
 



Re: troubles with sending an '@' symbol through kannel

2010-09-07 Thread seikath
its nice idea to google a bit

http://www.mail-archive.com/users@kannel.org/msg14634.html


first of all send MO with @ by mobile device, get the char code that the smsc 
is mapping to @
and replace @ with it in the mesg text before to inject the MT.

sample php code, it works for me, no idea if it will work in your case.
the char code in my case is 161

$new_sms=;
for ($i=0; $istrlen($GLOBALS[_REQUEST][msg]); $i++){
$new_sms.=ord($GLOBALS[_REQUEST][msg]{$i})==64 ? chr(161) : 
$GLOBALS[_REQUEST][msg]{$i};
}
$GLOBALS[_REQUEST][msg]=$new_sms;


hope you will deal from here

seikath



On 09/07/2010 10:38 PM, Davit Mirzoyan wrote:
 Hi,
  
 I am sending messages over smpp protocol not http. I use a simple smpp client 
 for that. My gateway is bound to a smscenter not a modem.
  
 Kind Regards,
 Davit
  
 
 Date: Tue, 7 Sep 2010 11:58:17 +0200
 Subject: Re: troubles with sending an '@' symbol through kannel
 From: tatty.dishcl...@gmail.com
 To: davit.mirzo...@hotmail.com
 
 Hi Davit
 
 Are you sure that you are escaping the text parameter portion of the URL 
 correctly? If you are what are you sending to? SMSC or a modem?
 
 2010/9/7 Davit Mirzoyan davit.mirzo...@hotmail.com 
 mailto:davit.mirzo...@hotmail.com
 
 Dear all,
 
 I have an smppbox that is connected to the gateway. I am using a simple 
 smpp client to send messages. The system works fine in general.
 However, I have been trying to send the symbol @ to a mobile phone but 
 I did not manage to receive the sms eventually. After the @
 symbol and including it there is no text received by the phone. I don't 
 know what the problem is but it seems Kannel has some issues with
 forwarding Symbols like @ or = in texts. Anybody has any idea why 
 this could happen?
 
 BR,
 Davit
 
 



Re: SQLBox problems with postgresql

2010-07-28 Thread seikath
r...@bubu:[Wed Jul 28 12:41:59]:[~]$ cat /opt/kannel/etc/sqlbox.conf
group = sqlbox
id = sqlbox-db
smsbox-id = smsbox
#global-sender = 
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = /var/log/kannel/kannel-sqlbox.log
#access-file = /var/log/kannel/kannel-sqlbox.log
log-level = 5
#white-list = 
#black-list = 
#white-list-regex = 
#ssl-client-certkey-file = 
#ssl-server-cert-file = 
#ssl-server-key-file = 
#ssl-trusted-ca-file = 

group = pgsql-connection
id = sqlbox-db
host = localhost
port = 5432
username = seik
password =
database = sms
max-connections = 10



On 07/28/2010 12:37 PM, Alejandro Guerrieri wrote:
 The repeated id = sqlbox-db line on the connection it's a typo, or is it 
 actually repeated? If so, remove one and try again...
 
 On Wed, Jul 28, 2010 at 11:33 AM, Arnau Rebassa arnau.mailingli...@gmail.com 
 mailto:arnau.mailingli...@gmail.com wrote:
 
 Hi all,
 
  I'm trying to configure sqlbox to run with PostgreSQL. When I try to
 start sqlbox from the command line, just to test if it creates de DB I
 get the following error message:
 
 debian:/etc/kannel# sqlbox
 2010-07-28 11:25:08 [8521] [0] INFO: Debug_lvl = -1, log_file =
 none, log_lvl = 0
 2010-07-28 11:25:08 [8521] [0] DEBUG: Kannel sqlbox version `1.4.3'.
 Build `Mar 19 2010 03:53:52', compiler `4.4.3'.
 System Linux, release 2.6.32-5-686, version #1 SMP Sat Jul 24 02:27:10
 UTC 2010, machine i686.
 Hostname debian.x, IP .
 Libxml version 2.7.6.
 Using OpenSSL 0.9.8m 25 Feb 2010.
 Compiled with MySQL 5.1.45, using MySQL 5.1.48.
 Using SQLite 3.6.23.
 Using native malloc.
 
 2010-07-28 11:25:08 [8521] [0] INFO: Starting to log to file
 /var/log/kannel/kannel-sqlbox.log level 0
 2010-07-28 11:25:08 [8521] [0] INFO: Added logfile
 `/var/log/kannel/kannel-sqlbox.log' with level `0'.
 2010-07-28 11:25:08 [8521] [0] PANIC: SQLBOX: MySQL: connection
 settings for id 'sqlbox-db' are not specified!
 2010-07-28 11:25:08 [8521] [0] PANIC: sqlbox(gw_panic+0xaf) [0x807425f]
 2010-07-28 11:25:08 [8521] [0] PANIC: sqlbox(sqlbox_init_mysql+0x133)
 [0x8052d53]
 2010-07-28 11:25:08 [8521] [0] PANIC: sqlbox(sqlbox_init_sql+0x12) 
 [0x80585a2]
 2010-07-28 11:25:08 [8521] [0] PANIC: sqlbox(main+0x3ad) [0x805298d]
 2010-07-28 11:25:08 [8521] [0] PANIC:
 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb6f23c76]
 2010-07-28 11:25:08 [8521] [0] PANIC: sqlbox() [0x8051701]
 
 
 my sqlbox.conf is the following:
 
 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 #global-sender = 
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms
 log-file = /var/log/kannel/kannel-sqlbox.log
 log-level = 0
 #ssl-client-certkey-file = 
 #ssl-server-cert-file = 
 #ssl-server-key-file = 
 #ssl-trusted-ca-file = 
 
 # Database connection examples. Please uncomment as needed
 
 
 group = pgsql-connection
 id = sqlbox-db
 id = sqlbox-db
 username = myuser
 password = mypass
 database = kannel
 host = localhost
 
 
 
 I'm running this sqlbox on a debian unstable and using the kannel and
 kannel-sqlbox packages from the official repositories. Do I have to
 recompile sqlbox to include postgresql support?
 
 Cheers!!
 --
 Arnau
 
 



Re: Cannot upgrade Kannel

2010-07-27 Thread seikath
http://packages.ubuntu.com/lucid/net/

kannel (1.4.3-0ubuntu2) [universe]
WAP and SMS gateway
kannel-docs (1.4.3-0ubuntu2) [universe]
WAP and SMS gateway documentation
kannel-extras (1.4.3-0ubuntu2) [universe]
WAP and SMS gateway extras
kannel-sqlbox (0.7.2-2) [universe]


On 07/27/2010 02:21 PM, brett skinner wrote:
 Hi
 
 I would prefer to not have to compile but to get the package. Is what I
 have done look correct?
 
 On Tue, Jul 27, 2010 at 1:17 PM, seikath seik...@gmail.com
 mailto:seik...@gmail.com wrote:
 
 its better to compile the cvs version for sure.
 
 http://kannel.org/download.shtml
 
 
 
 On 07/27/2010 02:11 PM, brett skinner wrote:
  Hi
 
  This might not be the best place to ask this question. If it isn't
 then
  please just let me know. During testing I used Ubuntu 10.4 (Lucid
 Lynx).
  Our production servers are running Ubuntu Server 8.04 (Hardy
 Heron). It
  appears that the version of Kannel that comes with that version of
  Ubuntu is 1.4.1. I am trying to upgrade just Kannel to 1.4.3.
 
  Firstly will Kannel 1.4.3 work on Ubuntu Server 8.04?
  Secondly if it will how can I upgrade to the correct version?
 
  On the Kannel website it said that I should add the following if I
  wanted the stable release (called woody?)
 
  # /For Woody/stable/
  deb http://www.litux.org/debian woody/
 
  I only want the binaries not the source so i left deb-src out. Now
 when
  i do an apt-get update there is this failure:
  *W: Failed to fetch http://www.litux.org/debian/woody/Packages.gz  404
  Not Found*
  *
  *
  Have I done something incorrectly here?
 
  I then looked in the Userguide which suggested all I had to was
 get hold
  of the .deb file. I cannot find a download link on the Kannel
 downloads
  page for kannel-1.4.3.deb. I can see for 1.4.1.
 
  I apologize if I am missing the obvious and have wasted your time.
 
  Regards,
 
 



Re: Cannot upgrade Kannel

2010-07-27 Thread seikath
Again, read the list and you will see that the Kannel Development release is 
much more stable than the 1.4.3.

I dont like debian based distros, but its my personal taste.

As you do not want to compile from source, and you have no Hardy binaries,
yes, you may give a try to lucid sources list.


On 07/27/2010 02:43 PM, brett skinner wrote:
 Hi Seikath
 
 I know that Kannel is in Lucid, but I am on Hardy Heron. Are you
 suggesting to upgrade to Lucid or is there a way that I can get apt-get
 to install kannel from the Lucid sources list?



Re: Stop sms coming with what is displaying in web explorer

2010-07-15 Thread seikath
easy

close the damn web explorer.


On 07/15/2010 11:11 AM, Marc ANDREAS wrote:
 Hi group,
 
 Can you help me to stop sms from Kannel ?
 In fact when I send an http request to Kannel I don't want to receive 
 what is displayed in the web explorer.
 
 Regards,
 
 Marc
 



Re: Looking for best modem

2010-05-25 Thread seikath
Latest option kernel driver has no issues with this,
I configured yesterday one Huawei EM770 and one Novatel Wireless Expedite 
EU850D/EU860D/EU870D
No issues, even the internal USB storage is detected.

r...@admira3g:[Tue May 25 11:24:34]:[~]$ modinfo option
filename:   /lib/modules/2.6.33.4-smp/kernel/drivers/usb/serial/option.ko
license:GPL
version:v0.7.2
description:USB Driver for GSM modems
author: Matthias Urlichs sm...@smurf.noris.de


On 05/25/2010 11:31 AM, Lorenzo Condoluci wrote:
 Hi,
 
 I use Huawei E220 and it's ok.
 As far as I know it's important not to use a USB stick with internal
 storage because Linux can't correctly detect the modem.
 
 -- 
 Lorenzo
 
 Il 25/05/2010 10:23, Nikos Balkanas ha scritto:
 Hi,

 Most people have good experience with the Wavecom Fastrack (serial) or
 the Huawei E220 (usb).

 BR,
 Nikos

 - Original Message - From: Innocent Muchedzi
 To: us...@vm1.kannel.org
 Sent: Tuesday, May 25, 2010 10:28 AM
 Subject: Looking for best modem


 Hie

 I am looking a gsm modem that I use on my Linux fedora 11 server. can
 you please send me some recommendations

 
 
 



Re: System error 104: Connection reset by peer

2010-05-12 Thread seikath
use stunnel as an alternative
setting kannel with SSL will be time consuming for the users list

n 05/13/2010 08:34 AM, Kiran Reddy wrote:
 Hi Nikos,
 
 Exactly i need encrypted connection using ssl from Kannel to SMSC and SMSC to 
 kannel. What exactly do i need to use parameters in that case.
 
 Thanks in advance.
 
 Regards,
 
 Kiran Reddy
 +91-9036971573
 Http://www.Uniceltech.com
 
 
  ---Original Message---
  From: Nikos Balkanas nbalka...@gmail.com
  To: Alvaro Cornejo cornejo.alv...@gmail.com
  Cc: users@kannel.org
  Subject: Re: System error 104: Connection reset by peer
  Sent: May 13 '10 12:54am
  
  Alvaro,
  
  He doesn't use ssl in his connection, and sends a clear bind_transmitter
  PDU. His provider, who expects an encrypted package doesn't recognize it and
  drops his connection. It is Kiran's fault.
  
  BR,
  Nikos
  - Original Message -
  From: Alvaro Cornejo cornejo.alv...@gmail.com
  To: Nikos Balkanas nbalka...@gmail.com
  Cc: Kiran Reddy ki...@uniceltech.com; users@kannel.org
  Sent: Wednesday, May 12, 2010 9:37 PM
  Subject: Re: System error 104: Connection reset by peer
  
  
  Hi
  
  You should talk to your provider. They are dropping the connection,
  not kannel. They should know why are they dropping it.
  
  
  
 |-|
  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
  
  
  
  2010/5/12 Nikos Balkanas nbalka...@gmail.com:
   Hi,
  
   I hope this is the last time. Read about use-ssl in group smsc in User's
   Guide.
  
   Nikos
  
   - Original Message -
   From: Kiran Reddy
   To: users@kannel.org
   Sent: Wednesday, May 12, 2010 6:37 PM
   Subject: System error 104: Connection reset by peer
   Hi All,
  
   I am getting below error while connecting to SMSC. Please find below error
   log and configuration.
  
   please help me. Thanks in advance
  
  
   Configuration
  
   group = core
   admin-port = 13000
   admin-password = hard2guess
   smsbox-port = 13001
   log-file = /var/log/kannel/bearerbox.log
   log-level = 0
   admin-port-ssl = true
   smsbox-port-ssl = true
   ssl-server-cert-file = /etc/kannel/public.pem
   ssl-server-key-file = /etc/kannel/private.pem
  
   group = smsc
   smsc = smpp
   smsc-id = x
   host = xx.xx.xx.xx
   port = 
   source-addr-autodetect = yes
   #tranceiver-mode = 1
   dest-addr-ton = 1
   source-addr-ton= 5
   smsc-username = x
   smsc-password = x1
   system-type = NULL
   #address-range = 
   #alt-charset = 1
   #enquire-link-interval = 300
   keepalive = 2
   log-file = /var/log/kannel/x.log
   log-level = 0
   #receive-port = 0
  
   group = smsbox
   bearerbox-host = 127.0.0.1
   sendsms-port = 13013
   global-sender = 59898
   log-file = /var/log/kannel/smsbox.log
   log-level = 0
   mo-recode = true
   bearerbox-port-ssl = true
   sendsms-port-ssl =true
  
  
   group = sendsms-user
   username = kannel
   password = hard2guess
   concatenation = true
   max-messages = 3
  
   Erro log
   2010-05-12 21:00:42 [6711] [6] DEBUG: SMPP[x]: Sending PDU:
   2010-05-12 21:00:42 [6711] [6] DEBUG: SMPP PDU 0x1822020 dump:
   2010-05-12 21:00:42 [6711] [6] DEBUG: type_name: bind_transmitter
   2010-05-12 21:00:42 [6711] [6] DEBUG: command_id: 2 = 0x0002
   2010-05-12 21:00:42 [6711] [6] DEBUG: command_status: 0 = 0x
   2010-05-12 21:00:42 [6711] [6] DEBUG: sequence_number: 36 = 0x0024
   2010-05-12 21:00:42 [6711] [6] DEBUG: system_id: x
   2010-05-12 21:00:42 [6711] [6] DEBUG: password: x1
   2010-05-12 21:00:42 [6711] [6] DEBUG: system_type: NULL
   2010-05-12 21:00:42 [6711] [6] DEBUG: interface_version: 52 = 0x0034
   2010-05-12 21:00:42 [6711] [6] DEBUG: addr_ton: 0 = 0x
   2010-05-12 21:00:42 [6711] [6] DEBUG: addr_npi: 0 = 0x
   2010-05-12 21:00:42 [6711] [6] DEBUG: address_range: NULL
   2010-05-12 21:00:42 [6711] [6] DEBUG: SMPP PDU dump ends.
   2010-05-12 21:00:42 [6711] [6] ERROR: Error reading from fd 29:
   2010-05-12 21:00:42 [6711] [6] ERROR: System error 104: Connection reset
   by
   peer
   2010-05-12 21:00:42 [6711] [6] ERROR: SMPP[x]: Couldn't connect to SMS
   center (retrying in 10 seconds).
  
  
  
   Regards,
   
   Kiran Reddy
  
  
  
  
 
 
 



Re: kannel smsc-ss7 ?

2010-04-08 Thread seikath
If there is a ss7 beast, it should be somewhere at the dev jungle ..


On 04/08/2010 06:25 PM, Konstantin Vayner wrote:
 Hi all,
 
 Looking for SS7 implementation.
 
 Regards,
   Konstantin



Re: Too many dlr at once

2010-04-02 Thread seikath
Umm , I use inotifywait with simple sed awk scripting
its seems to be a similar idea as far is i understood you :)

But. I will give a try to Flex for sure.
Thnx :)


On 04/02/2010 06:29 AM, Nikos Balkanas wrote:
 Flex (aka lex) is the front end parser to bison (yacc). It uses C, and
 it is even used by kannel. It is faster in pattern maching than C since
 it uses optimized tables for matching instead of if statements. Patterns
 are very similar to regexp.
 
 If you open the log as a stream, instead of parsing the whole thing at
 once, you can parse it real time, one line at a time as it comes in. So
 it is both very light and fast.
 
 Advisory: For the trained professionals only!
 
 Nikos
 - Original Message - From: seikath seik...@gmail.com
 To: users@kannel.org
 Sent: Friday, April 02, 2010 2:40 AM
 Subject: Re: Too many dlr at once
 
 
 Ok, now I want to know what is flexing a log-stream ?:)

 cheers


 On 04/01/2010 08:30 PM, Nikos Balkanas wrote:
 Just to clarify:

 Lighty is lighttpd, and Seikath's ISS is actually IIS ;-)

 @Seikath: You have not tried the best of all: flexing a log-stream!
 Fastest and lighter than all the rest. You can even do all the db
 pooling you want by batching inserts together in real time (of course it
 is up to you to code this part) ;-)

 Nikos
 - Original Message - From: seikath seik...@gmail.com
 To: users@kannel.org
 Sent: Thursday, April 01, 2010 8:16 PM
 Subject: Re: Too many dlr at once


 In general DLR is not so important info to be injected right away into
 the database.
 if you have high load of MO/DLR, consider db pooling and even better,
 drop the http requests.
 The Apache or Lighty or even ISS can handle the traffic you have
 mentioned with no issues.
 What I do for high load of MO/DLR, is either use sqlbox to handle it,
 either simply write directly to simple xml files.
 OR, you may parse the kannel logs, which will require some regexp
 skills.
 I used to implement all of the above, according to the specific
 projects.

 The XML files easily can be loaded later in a queue in the database.


 On 04/01/2010 06:33 PM, Gabor Maros wrote:

 Thanks Nikos,

 it may help but there is another problem i haven't mentioned before.
 We have
 a webapplication that receives dlrs from kannel. If kannel gets 10k
 dlr in
 one sec then kannel tries to send all of them in the same sec to the
 app.
 This behaviour kills the app (and the database behind it) because it
 gets
 1 http connections in one sec which is quite huge amount
 according to
 our peaktime when there is 25 SMs/sec.
 Unfortunately we are not the NASA with unimaginable computing
 capacity, so
 the ideal solution for us would be a parameter that tells kannel how
 many
 connections are allowed in one sec.

 Bye,
 Gabor



 Nikos Balkanas wrote:

 Hi,

 Check if you havd /etc/hosts, and if you do you should have
 specified your
 gateway.

 Also check if named is running (Linux)

 BR,
 Nikos
 - Original Message - From: Gabor Maros
 gabor.ma...@erstebank.hu
 To: users@kannel.org
 Sent: Thursday, April 01, 2010 12:58 PM
 Subject: Too many dlr at once



 Hi,

 I've got a kannel install with emi smsc connection.
 When we send lots of sms to the smsc at once the delivery
 notifications
 only
 come at the end when kannel's queue is empty. Smsc only accepts 10-15
 SM/sec
 but can send back horrible amount at once. This is a problem for us
 because
 kannel gets thousands of dlrs in one second and ERROR messages
 appear in
 smsbox.log:

 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381

 …after thousands of such normal logrecords we can see
 thousands of the
 following:

 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18

Re: Too many dlr at once

2010-04-01 Thread seikath
In general DLR is not so important info to be injected right away into the 
database.
if you have high load of MO/DLR, consider db pooling and even better, drop the 
http requests.
The Apache or Lighty or even ISS can handle the traffic you have mentioned with 
no issues.
What I do for high load of MO/DLR, is either use sqlbox to handle it,
either simply write directly to simple xml files.
OR, you may parse the kannel logs, which will require some regexp skills.
I used to implement all of the above, according to the specific projects.

The XML files easily can be loaded later in a queue in the database.


On 04/01/2010 06:33 PM, Gabor Maros wrote:
 
 Thanks Nikos,
 
 it may help but there is another problem i haven't mentioned before. We have
 a webapplication that receives dlrs from kannel. If kannel gets 10k dlr in
 one sec then kannel tries to send all of them in the same sec to the app.
 This behaviour kills the app (and the database behind it) because it gets
 1 http connections in one sec which is quite huge amount according to
 our peaktime when there is 25 SMs/sec.
 Unfortunately we are not the NASA with unimaginable computing capacity, so
 the ideal solution for us would be a parameter that tells kannel how many
 connections are allowed in one sec.
 
 Bye,
 Gabor
 
 
 
 Nikos Balkanas wrote:

 Hi,

 Check if you havd /etc/hosts, and if you do you should have specified your 
 gateway.

 Also check if named is running (Linux)

 BR,
 Nikos
 - Original Message - 
 From: Gabor Maros gabor.ma...@erstebank.hu
 To: users@kannel.org
 Sent: Thursday, April 01, 2010 12:58 PM
 Subject: Too many dlr at once



 Hi,

 I've got a kannel install with emi smsc connection.
 When we send lots of sms to the smsc at once the delivery notifications
 only
 come at the end when kannel's queue is empty. Smsc only accepts 10-15
 SM/sec
 but can send back horrible amount at once. This is a problem for us
 because
 kannel gets thousands of dlrs in one second and ERROR messages appear in
 smsbox.log:

 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms from
 003630381

 …after thousands of such normal logrecords we can see thousands of the
 following:

 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory

  Is there a configuration parameter that change this behavior and we can
 slow it down?
 I don’t know why it is happen but there must be some kind of limit (I 
 think
 it is not an open file issue but something similar).
 Maybe there is another side effect (but I’m not sure yet) in connection 
 with
 DLR database because the number of SMs that are not in the end phase
 (delivered or can’t be delivered) are growing.

 Thanks,
 Gabor

 -- 
 View this message in context: 
 http://old.nabble.com/Too-many-dlr-at-once-tp28106589p28106589.html
 Sent from the Kannel - User mailing list archive at Nabble.com.





 



Re: Too many dlr at once

2010-04-01 Thread seikath
Ok, now I want to know what is flexing a log-stream ?:)

cheers


On 04/01/2010 08:30 PM, Nikos Balkanas wrote:
 Just to clarify:
 
 Lighty is lighttpd, and Seikath's ISS is actually IIS ;-)
 
 @Seikath: You have not tried the best of all: flexing a log-stream!
 Fastest and lighter than all the rest. You can even do all the db
 pooling you want by batching inserts together in real time (of course it
 is up to you to code this part) ;-)
 
 Nikos
 - Original Message - From: seikath seik...@gmail.com
 To: users@kannel.org
 Sent: Thursday, April 01, 2010 8:16 PM
 Subject: Re: Too many dlr at once
 
 
 In general DLR is not so important info to be injected right away into
 the database.
 if you have high load of MO/DLR, consider db pooling and even better,
 drop the http requests.
 The Apache or Lighty or even ISS can handle the traffic you have
 mentioned with no issues.
 What I do for high load of MO/DLR, is either use sqlbox to handle it,
 either simply write directly to simple xml files.
 OR, you may parse the kannel logs, which will require some regexp skills.
 I used to implement all of the above, according to the specific projects.

 The XML files easily can be loaded later in a queue in the database.


 On 04/01/2010 06:33 PM, Gabor Maros wrote:

 Thanks Nikos,

 it may help but there is another problem i haven't mentioned before.
 We have
 a webapplication that receives dlrs from kannel. If kannel gets 10k
 dlr in
 one sec then kannel tries to send all of them in the same sec to the
 app.
 This behaviour kills the app (and the database behind it) because it
 gets
 1 http connections in one sec which is quite huge amount
 according to
 our peaktime when there is 25 SMs/sec.
 Unfortunately we are not the NASA with unimaginable computing
 capacity, so
 the ideal solution for us would be a parameter that tells kannel how
 many
 connections are allowed in one sec.

 Bye,
 Gabor



 Nikos Balkanas wrote:

 Hi,

 Check if you havd /etc/hosts, and if you do you should have
 specified your
 gateway.

 Also check if named is running (Linux)

 BR,
 Nikos
 - Original Message - From: Gabor Maros
 gabor.ma...@erstebank.hu
 To: users@kannel.org
 Sent: Thursday, April 01, 2010 12:58 PM
 Subject: Too many dlr at once



 Hi,

 I've got a kannel install with emi smsc connection.
 When we send lots of sms to the smsc at once the delivery notifications
 only
 come at the end when kannel's queue is empty. Smsc only accepts 10-15
 SM/sec
 but can send back horrible amount at once. This is a problem for us
 because
 kannel gets thousands of dlrs in one second and ERROR messages
 appear in
 smsbox.log:

 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381
 2010-04-01 08:21:17 [4834] [4] INFO: Starting delivery report sms
 from
 003630381

 …after thousands of such normal logrecords we can see
 thousands of the
 following:

 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory
 2010-04-01 08:21:18 [4834] [9] ERROR: gethostbyname failed
 2010-04-01 08:21:18 [4834] [9] ERROR: error connecting to server
 `' at
 port `yyy'
 2010-04-01 08:21:18 [4834] [9] ERROR: Couldn't send request to
 https://xyz
 2010-04-01 08:21:18 [4834] [9] ERROR: Error while gw_gethostbyname
 occurs.
 2010-04-01 08:21:18 [4834] [9] ERROR: System error 2: No such file or
 directory

  Is there a configuration parameter that change this behavior and we
 can
 slow it down?
 I don’t know why

Re: bearebox eating cpu time

2010-03-28 Thread seikath
:)

good to have the feedback in the list for similar future questions

thank you

On  03/28/2010 05:09 AM, Alvaro Cornejo wrote:
 Hi Seikath
 
 You were right.
 
 I did disable one by one all of the modems and the bearer cpu time start
 descending. with 1 SMPP, and 4 httpservices the cpu drop to cero most os
 the time.
 
 I didn't disable mysql storage, nor make any other change.
 
 Therefore yes, each modem adds a permanent load to the bearer even with
 no traffic. It can be the sum of the keepalive and the messages poling.
 
 ALL links Enabled (14 modems, 1 SMPP and 4 http) and no traffic
 [r...@srvcom1 ~]# top
 
 top - 20:03:06 up 27 days, 19:35,  1 user,  load average: 0.03, 0.09, 0.08
 Tasks: 210 total,   1 running, 196 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si, 
 0.0%st
 Mem:   2074712k total,  2008152k used,66560k free,   196772k buffers
 Swap:  2031608k total,  360k used,  2031248k free,   668228k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+ 
 COMMAND   
 25254 root  20   0  419m  10m 2424 S8  0.5   0:05.43
 bearerbox 
 25327 root  20   0  2336 1076  800 R0  0.1   0:00.22
 top   
 1 root  20   0  2044  652  560 S0  0.0   0:10.86
 init  
 
 
 4 modem disabled (10 modems, 1 SMPP and 4 http enabled) and no traffic:
 top - 19:54:25 up 27 days, 19:26,  1 user,  load average: 0.39, 0.19, 0.11
 Tasks: 210 total,   1 running, 196 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.1%us,  0.0%sy,  0.0%ni, 99.4%id,  0.5%wa,  0.0%hi,  0.0%si, 
 0.0%st
 Mem:   2074712k total,  2013308k used,61404k free,   192280k buffers
 Swap:  2031608k total,  360k used,  2031248k free,   676832k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+ 
 COMMAND   
 24586 root  20   0  412m  14m 2428 S5  0.7   0:21.17
 bearerbox 
 1 root  20   0  2044  652  560 S0  0.0   0:10.85
 init  
 2 root  15  -5 000 S0  0.0   0:00.00
 kthreadd  
 3 root  RT  -5 000 S0  0.0   0:00.98
 migration/0
 
 8 modems disabled (6 modems, 1 SMPP and 4 http enabled) and no traffic:
 [r...@srvcom1 ~]# top
 
 top - 19:56:28 up 27 days, 19:28,  1 user,  load average: 0.10, 0.15, 0.10
 Tasks: 210 total,   1 running, 196 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.2%us,  0.1%sy,  0.0%ni, 99.3%id,  0.3%wa,  0.0%hi,  0.0%si, 
 0.0%st
 Mem:   2074712k total,  2014284k used,60428k free,   192436k buffers
 Swap:  2031608k total,  360k used,  2031248k free,   677080k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+ 
 COMMAND   
 24586 root  20   0  372m  14m 2428 S3  0.7   0:17.37
 bearerbox 
  2893 mysql 20   0  156m 134m 3548 S1  6.6   4558:59
 mysqld
  2662 root  20   0 22948 1292  532 S0  0.1   8:49.96
 pcscd 
  3440 root  20   0  114m 100m 4876 S0  4.9   6:38.68
 sms_pool1.php 
 
 12 modems disabled (2 modems, 1 SMPP and 4 http enabled) and no traffic::
 [r...@srvcom1 ~]# top
 
 top - 19:58:34 up 27 days, 19:30,  1 user,  load average: 0.01, 0.10, 0.08
 Tasks: 216 total,   1 running, 202 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.1%hi,  0.0%si, 
 0.0%st
 Mem:   2074712k total,  2014036k used,60676k free,   192496k buffers
 Swap:  2031608k total,  360k used,  2031248k free,   677308k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+ 
 COMMAND   
 24586 root  20   0  329m  11m 2428 S1  0.6   0:08.56
 bearerbox 
 1 root  20   0  2044  652  560 S0  0.0   0:10.85
 init  
 2 root  15  -5 000 S0  0.0   0:00.00
 kthreadd  
 3 root  RT  -5 000 S0  0.0   0:00.98
 migration/0  
 
 ALL MODEMS DISABLED
 (1smpp and 4 http smsc enabled. No traffic)
 [r...@srvcom1 ~]# top
 
 top - 20:00:13 up 27 days, 19:32,  1 user,  load average: 0.35, 0.15, 0.10
 Tasks: 217 total,   1 running, 203 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.3%id,  0.6%wa,  0.0%hi,  0.0%si, 
 0.0%st
 Mem:   2074712k total,  2019832k used,54880k free,   196628k buffers
 Swap:  2031608k total,  360k used,  2031248k free,   671412k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+ 
 COMMAND   
 24586 root  20   0  319m 9.9m 2428 S1  0.5   0:05.99
 bearerbox 
 24928 root  20   0  2336 1096  804 R0  0.1   0:00.20
 top   
 1 root  20   0  2044  652  560 S0  0.0   0:10.85
 init  
 
 
 Regards and THANKS for your help
 
 Good think to know for future modem growth.
 
 Alvaro
 |-|
 Envíe y Reciba Datos y

Re: bearebox eating cpu time

2010-03-26 Thread seikath
Hello all,
oook , it looks interesting .. :)
try that:
ps -eo pcpu,pid,user,args | sort -k 1 -r | grep bear

in short, the bellow example is dual Xeon box with apache qmail mysql kannel 
with postgresql based sqlbox
model name  : Pentium III (Coppermine)
stepping: 3
cpu MHz : 797.515
cache size  : 256 KB
s...@bubu:[Sat Mar 27 01:32:14]:[~]$ ps -eo pcpu,pid,user,args | sort -k 1 -r | 
grep bear
 0.0 10391 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0 10390 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4654 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4653 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4613 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4612 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4570 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4569 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4568 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4567 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4566 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4563 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4562 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4561 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4560 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4559 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4558 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4557 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4556 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4554 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
 0.0  4552 root /opt/kannel-mblox/sbin/bearerbox -d -P -p 
/var/run/mblox-bearerbox.pid /opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf

if you run pool of modems, may be this is the reason for the CPU usage, writing 
to all the devices and waiting for the answer.
try this one:
http://www.daveltd.com/src/util/ttyload/

and check are there any peaks
of there are any, we have something to work on ..
in general the idea is to tail -f  logs | grep+count for a suspicious events 
while watching the ttyload

at least I would do that

cheers


On 03/27/2010 12:12 AM, Alvaro Cornejo wrote:
 Nikos
 
 Thanks God it was just my laptop motherboard that died, not the server.
 
 In this moment I have no traffic and bearerbox still at 6-8%
 
 [r...@srvcom1 ~]# top
 
 top - 15:50:54 up 26 days, 15:23,  1 user,  load average: 0.08, 0.27, 0.24
 Tasks: 218 total,   1 running, 204 sleeping,   0 stopped,  13 zombie
 Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
 Mem:   2074712k total,  1989044k used,85668k free,42872k buffers
 Swap:  2031608k total,  344k used,  2031264k free,   859020k cached
 
   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
  2337 root  20   0  420m  13m 2448 S7  0.6   0:25.80 bearerbox
  2716 root  20   0  2332 1088  800 R0  0.1   0:00.07 top
 1 root  20   0  2044  652  560 S0  0.0   0:10.44 init
 2 root  15  -5 000 S0  0.0   0:00.00 kthreadd
 3 root  RT  -5 000 S0  0.0   0:00.95 migration/0
 4 root  15  -5 000 S0  0.0   0:02.18 ksoftirqd/0
 
 
 [r...@srvcom1 ~]# mpstat
 Linux 2.6.22.14-72.fc6 (srvcom1.smsglobal.com.mx) 03/26/2010
 
 

Re: Integration with sql db

2010-03-25 Thread seikath
sqlbox

http://www.kannel.org/~aguerrieri/


On 03/25/2010 12:18 PM, C S Mahajan wrote:
 
 
 I am using Kannel 1.4.3 as a SMS Gateway. I succesfully sended SMS
 though URL. But I wants to use send sms from MYSQL database.
 --
 C.S.MAHAJAN,
 SDE(OSS),
 Bharat Sanchar Nigam Limited,
 1st Floor,O/o GM(CDMA),
 City Telephone Exch.Bldg.
 Jail Road,
 Vadodara-390001
 Gujarat.
 PH:0265-2416000(O)
 Mo:9427218821
 



Re: Modem not found

2010-03-24 Thread seikath
indeed
its seems to tell you what its written in the log.

On 03/24/2010 12:17 PM, C S Mahajan wrote:
 
 
 For SMS Gateway the messasage PANIC : can not found modem or generic
 modem not found message appeares
 --
 C.S.MAHAJAN,
 SDE(OSS),
 Bharat Sanchar Nigam Limited,
 1st Floor,O/o GM(CDMA),
 City Telephone Exch.Bldg.
 Jail Road,
 Vadodara-390001
 Gujarat.
 PH:0265-2416000(O)
 Mo:9427218821
 



Re: http command to change log-level

2010-03-19 Thread seikath
I dont.

On 03/19/2010 08:09 AM, Tshimanga Minkoka wrote:
 I find out the below that works and sets the log-level of all log files to 0.
 http://localhost:13000/log-level?level=0password=admin_password
 
 But I am also interested in setting specified log file.
 As stipulated by Stipe Tojl in the link I posted in the first email.
 Do you know how?
 
 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
 seikath
 Sent: Thursday 18 March 2010 10:35
 Cc: users@kannel.org
 Subject: Re: http command to change log-level
 
 http://localhost:13000/log-level?user=foopass=barlevel=3
 there are no other parameters ?
 
 
 On 03/18/2010 11:10 AM, Tshimanga Minkoka wrote:
 Hi Seikath,

 The link you gave does not give more information than the cvs doc I referred 
 to.

 Can you give me (or point me exactly  where it is in you reference) the full 
 syntax of the http command?
 I mean something as
 http://localhost:13000/log-level?user=foopass=barloglevel=3logfile=smpp.logotherparametter=othervalue

 I gave some tries, but I just give guessing it, convinced that the 
 information must exists somewhere.

 Regards,

 Tshimanga.

 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf 
 Of seikath
 Sent: Thursday 18 March 2010 09:15
 To: users@kannel.org
 Subject: Re: http command to change log-level

 use the http admin interface

 and its explained good enough at the userguide:

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

 On 03/18/2010 09:51 AM, Tshimanga Minkoka wrote:
 Hello,

  

 I need to change the log-level of kannel without restarting it.

 The “userguide cvs-20090525” refers to it on page 28, but without the
 needed details or explicit examples.

  

 I googled and read this discussion

 http://www.mail-archive.com/de...@kannel.3glab.org/msg06794.html

 Stipe Tolj committed to even add the possibility to the modify the
 log-level for a specific log file.

  

 All that sounds good, but can someone give me the syntax of that http
 command, as the userguide says nothing about?

  

 Regards,

  

 Tshimanga.





 
 
 
 
 
 



Re: http command to change log-level

2010-03-18 Thread seikath
use the http admin interface

and its explained good enough at the userguide:

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

On 03/18/2010 09:51 AM, Tshimanga Minkoka wrote:
 Hello,
 
  
 
 I need to change the log-level of kannel without restarting it.
 
 The “userguide cvs-20090525” refers to it on page 28, but without the
 needed details or explicit examples.
 
  
 
 I googled and read this discussion
 
 http://www.mail-archive.com/de...@kannel.3glab.org/msg06794.html
 
 Stipe Tolj committed to even add the possibility to the modify the
 log-level for a specific log file.
 
  
 
 All that sounds good, but can someone give me the syntax of that http
 command, as the userguide says nothing about?
 
  
 
 Regards,
 
  
 
 Tshimanga.
 



Re: http command to change log-level

2010-03-18 Thread seikath
http://localhost:13000/log-level?user=foopass=barlevel=3
there are no other parameters ?


On 03/18/2010 11:10 AM, Tshimanga Minkoka wrote:
 Hi Seikath,
 
 The link you gave does not give more information than the cvs doc I referred 
 to.
 
 Can you give me (or point me exactly  where it is in you reference) the full 
 syntax of the http command?
 I mean something as
 http://localhost:13000/log-level?user=foopass=barloglevel=3logfile=smpp.logotherparametter=othervalue
 
 I gave some tries, but I just give guessing it, convinced that the 
 information must exists somewhere.
 
 Regards,
 
 Tshimanga.
 
 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
 seikath
 Sent: Thursday 18 March 2010 09:15
 To: users@kannel.org
 Subject: Re: http command to change log-level
 
 use the http admin interface
 
 and its explained good enough at the userguide:
 
 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN882
 
 On 03/18/2010 09:51 AM, Tshimanga Minkoka wrote:
 Hello,

  

 I need to change the log-level of kannel without restarting it.

 The “userguide cvs-20090525” refers to it on page 28, but without the
 needed details or explicit examples.

  

 I googled and read this discussion

 http://www.mail-archive.com/de...@kannel.3glab.org/msg06794.html

 Stipe Tolj committed to even add the possibility to the modify the
 log-level for a specific log file.

  

 All that sounds good, but can someone give me the syntax of that http
 command, as the userguide says nothing about?

  

 Regards,

  

 Tshimanga.

 
 
 
 



Re: Re : HOW TO GET RESULT NOTIFICATION WITH ppg-notify-requested-to ?

2010-03-08 Thread seikath
in general , use send-sms GET/POST/XML request with unique dlr-url and dlr-mask 
set to 31



On 03/08/2010 02:45 PM, Kidi Kidi wrote:
 
 Hi all,
 
 I still have problems to receive a wap push result notification, after
 reading kannel userguide again, going round mailing lists, 
 Though i receive the push (SI, SL)  on my mobile and even can retrieve it.
 
 === =  =
 
 Hi,
  
 Please read User's guide before addressing this group. There is a whole
 chapter devoted to this.
  
 BR,
 Nikos
 
 - Original Message -
 *From:* Kidi Kidi mailto:kidi...@yahoo.fr
 *To:* users@kannel.org mailto:users@kannel.org
 *Sent:* Saturday, March 06, 2010 7:27 PM
 *Subject:* HOW TO GET RESULT NOTIFICATION WITH ppg-notify-requested-to ?
 
 This attribute specifies the address that the PPG should use for
 notification of results. I receive the push on my phone but i can
 get any result notification on my server.
 
 this is my PAP ducument :
 ?xml version=1.0?
 !DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN
 http://www.wapforum.org/DTD/pap_1.0.dtd;
 pap
 push-message push-id=abcd
 ppg-notify-requested-to=http://my_server:1100/wap/servlet;
 progress-notes-requested=false
 address address-value=WAPPUSH=+919849103666/type=p...@airtel.com
 mailto:p...@airtel.com/
 quality-of-service priority=high delivery-method=unconfirmed
 network=GSM network-required=true bearer=SMS
 bearer-required=false/
 /push-message
 /pap
 
 
 



Re: Invitation to connect on LinkedIn

2010-02-16 Thread seikath
thank you very much ..

On 02/16/2010 04:21 PM, Amritesh Rachelwar wrote:
 
 
 
   LinkedIn
 
 I'd like to add you to my professional network on LinkedIn.
 
 - Amritesh
 
 Confirm that you know Amritesh
 https://www.linkedin.com/e/isd/1077763781/vYkeUjC0/
 
 © 2010, LinkedIn Corporation
 



Re: Invitation to connect on LinkedIn

2010-02-16 Thread seikath
yep, its nice to have a mailing list in your list of business contacts :)

heh

On 02/16/2010 07:05 PM, Nikos Balkanas wrote:
 Just about everyone in the list was invited. People don't rush, there is
 room for everybody! ;-)
 
 - Original Message - From: seikath seik...@gmail.com
 Cc: users users@kannel.org
 Sent: Tuesday, February 16, 2010 4:53 PM
 Subject: Re: Invitation to connect on LinkedIn
 
 
 thank you very much ..

 On 02/16/2010 04:21 PM, Amritesh Rachelwar wrote:



   LinkedIn

 I'd like to add you to my professional network on LinkedIn.

 - Amritesh

 Confirm that you know Amritesh
 https://www.linkedin.com/e/isd/1077763781/vYkeUjC0/

 © 2010, LinkedIn Corporation

 
 
 
 



Re: Stipe's Contacts

2010-02-09 Thread seikath
He is alive :)

Wait for a bit, he will get in touch, most of the time Stipe is quite occupied.

BR


jeff emminger wrote:
 Likewise here, we're wondering if he's still alive? :-/
 
 
 On Tue, Feb 9, 2010 at 10:08 AM, Engel L choch...@gmail.com wrote:
 Hi,

 I am not sure this is the right forum but I have been emailing Stipe
 for a while in regards to SMPPBox in vain. Does anyone in here know if
 he has alternative contacts?

 Regards,


 
 



Re: ***HAPPY NEW YEAR! *** from the Kannel Group!

2009-12-31 Thread seikath
Happy New Year to all users and dev list ..
Especially to those contributing their knowledge and time to the Kannel project 
...

Thank you.

:bow:


Stipe Tolj wrote:
 Dear developers,
 Dear users,
 
 in the name of the whole Kannel Group, and to all the great individual
 supporters and contributor that have shown tremendous participation and
 encouragement in this year - making and keeping Kannel the most used SMS 
 gateway
 software in the world! - we wish you:
 
   *** Happy New Year! ***
 
 Enjoy your New Year's Eve and make yourself a great time, either with family,
 friends or both. :)
 
 Stipe
 



Re: How to display sms text message in tv

2009-12-04 Thread seikath
its not kannel related question then ?

you should talk with the ppl at the TV how they mix the signals,
then have news bars right ?
then you will know the possibilities as flash news ticker or some video mixing 
software with RSS feeds support


kiran.re...@mpowerglobal.in wrote:
 Hi Seikath,
 
 I am using kannel and also i am able to push messages using kannel url
 but the thing is how to display sms in TV.
 
 seikath wrote:
 You should use kannel.

 kiran.re...@mpowerglobal.in wrote:
   
 Hi All,

 How to display sms text message in Television. How to do this ?

 


   
 
 -- 
 Regards,
 Kiran Reddy
 http://bit.ly/FNDC09
 



Re: How to display sms text message in tv

2009-12-03 Thread seikath
You should use kannel.

kiran.re...@mpowerglobal.in wrote:
 Hi All,
 
 How to display sms text message in Television. How to do this ?
 



Re: Kannel request per second

2009-11-18 Thread seikath
its not question about kannel

the question is how many users your SMSC could handle

denis bahati wrote:
 Hi All,
 
 a newb, I have a question on how many users can request information
 using kannel sms gateway per second?
 



Re: [URGENT]Connection Timeout to My Kannel

2009-11-14 Thread seikath
Its not Kannel the bottleneck.

If you use mysql backend, check the parallel insert , if they are complicated 
or not ..
Kannel is able to kill any not good configured web server.
100/s is nothing for Kannel, keep in mind the retry mechanism, if the backend 
server is dead ,
even you restart the backend, the retry request will be waiting and they will 
kill it again :)



sangprabv wrote:
 Hi,
 I need to solve this problem. Currently my Kannel is servicing a huge
 traffic (more than 100 requests per second). My telco complains that
 they receive many connection timeout. Let's suppose there is no network
 issue here. Is there any options to increase Kannel's thread? So it can
 serves more requests? TIA.
 
 
 
 
 Willy
 
 



Re: SQLBox and Kannel not calling the dlr-url specified.

2009-11-02 Thread seikath
Thank you Nicos :)



Nikos Balkanas wrote:
 Or to make the concept more clear in ASCII art:
 
 slqlbox   - bearerbox - SMSc
 smsbox -
 
 This might work with an smsbox-route group:
 
 group = smsbox-route
 smsbox-id = smsbox
 smsc-id = all your smscs
 
 BR,
 Nikos
 - Original Message - From: seikath seik...@gmail.com
 To: users@kannel.org
 Sent: Monday, November 02, 2009 12:20 PM
 Subject: Re: SQLBox and Kannel not calling the dlr-url specified.
 
 
 Change the concept:

 bearerbox-sqlbox-smsbox

 should be

 smsbox-bearerbox-sqlbox

 the sqlbox will act as just another smsbox



 Sam wrote:
 Hi,

 You are correct, I have DLR in my sent_sms table. However, that os not
 what i want. I really want smsbox to handle the DLR. How can change the
 config to do that?

 TIA.

 On Sun, Nov 1, 2009 at 5:44 PM, seikath seik...@gmail.com
 mailto:seik...@gmail.com wrote:

 Well,
 first check your logs
 do you get any DLR apart of ACK ?
 then,
 you should have the DLR statuses at the SQLBOX table anyway,
 according to that I can see in the configuration.

 your setup is bearerbox-sqlbox-smsbox, so sqlbox handles all the
 MO/MT/DLR traffic.

 Sam wrote:
  Hi,
 
  AM using SQLbox on Kannel. Kannel does not call dlr-url. I am
 setting
  dlr-mask to 31 and specify the required url in the field
 `dlr_url` of
  the send_sms table.
 
  Please help. My config below.
 
 
  ###kannel.conf
  group = core
  admin-port = 13090
  admin-password = pass
  status-password = pass
  log-file = /var/log/kannel/kannel.log
  log-level = 0
  access-log = /var/log/kannel/access-bearerbox.log
  dlr-storage = mysql
  smsbox-port = 13190
  box-deny-ip = 
  box-allow-ip = 
  store-type = spool
  store-location = /var/spool/kannel
 
 
  # SMSC SMPP
  group = smsc
  smsc = smpp
  smsc-id = sand
  host = smpp.com http://smpp.com http://smpp.com
  port = 
  receive-port = port
  smsc-username = name
  smsc-password = pass
  receive-port = port
  keepalive = 60
  transceiver-mode = 1
  system-type =
  max-sms-octets = 900
 
 
  # SMSBOX SETUP
 
  group = smsbox
  bearerbox-host = localhost
  sendsms-port = 13290
  log-file = /var/log/kannel/kannel.log
  log-level = 0
  access-log = /var/log/kannel/access-smsbox.log
 
 
  # SEND-SMS USERS
 
  group = sendsms-user
  username = name
  password = pass
  concatenation=true
  max-messages = 6
 
 
  group = mysql-connection
  id = mydlr
  host = www.mysite.com http://www.mysite.com
 http://www.mysite.com
  username = name
  password = pass_db
  database = kannel_db
  max-connections = 1
 
  group = dlr-db
  id = mydlr
  table = tbl_Dlr
  field-smsc = smsc
  field-timestamp = timestamp
  field-destination = destination
  field-source = source
  field-service = service
  field-url = url
  field-mask = mask
  field-status = status
  field-boxc-id = boxc
  ###
 
 
 
  sqlbox.conf###
  group = sqlbox
  id = sqlbox-db
  smsbox-id = sqlbox
  bearerbox-host = localhost
  bearerbox-port = 13190
  smsbox-port-ssl = false
  sql-log-table = sent_sms
  sql-insert-table = send_sms
  log-file = /var/log/kannel/sqlbox.log
  log-level = 0
 
  group = mysql-connection
  id = sqlbox-db
  host = localhost
  username = name
  password = pass_db
  database = kannel_db
  max-connections = 1
  ###



 
 
 
 



Re: SQLBox and Kannel not calling the dlr-url specified.

2009-11-02 Thread seikath
Change the concept:

bearerbox-sqlbox-smsbox

should be

smsbox-bearerbox-sqlbox

the sqlbox will act as just another smsbox



Sam wrote:
 Hi,
 
 You are correct, I have DLR in my sent_sms table. However, that os not
 what i want. I really want smsbox to handle the DLR. How can change the
 config to do that?
 
 TIA.
 
 On Sun, Nov 1, 2009 at 5:44 PM, seikath seik...@gmail.com
 mailto:seik...@gmail.com wrote:
 
 Well,
 first check your logs
 do you get any DLR apart of ACK ?
 then,
 you should have the DLR statuses at the SQLBOX table anyway,
 according to that I can see in the configuration.
 
 your setup is bearerbox-sqlbox-smsbox, so sqlbox handles all the
 MO/MT/DLR traffic.
 
 Sam wrote:
  Hi,
 
  AM using SQLbox on Kannel. Kannel does not call dlr-url. I am setting
  dlr-mask to 31 and specify the required url in the field `dlr_url` of
  the send_sms table.
 
  Please help. My config below.
 
 
  ###kannel.conf
  group = core
  admin-port = 13090
  admin-password = pass
  status-password = pass
  log-file = /var/log/kannel/kannel.log
  log-level = 0
  access-log = /var/log/kannel/access-bearerbox.log
  dlr-storage = mysql
  smsbox-port = 13190
  box-deny-ip = 
  box-allow-ip = 
  store-type = spool
  store-location = /var/spool/kannel
 
 
  # SMSC SMPP
  group = smsc
  smsc = smpp
  smsc-id = sand
  host = smpp.com http://smpp.com http://smpp.com
  port = 
  receive-port = port
  smsc-username = name
  smsc-password = pass
  receive-port = port
  keepalive = 60
  transceiver-mode = 1
  system-type =
  max-sms-octets = 900
 
 
  # SMSBOX SETUP
 
  group = smsbox
  bearerbox-host = localhost
  sendsms-port = 13290
  log-file = /var/log/kannel/kannel.log
  log-level = 0
  access-log = /var/log/kannel/access-smsbox.log
 
 
  # SEND-SMS USERS
 
  group = sendsms-user
  username = name
  password = pass
  concatenation=true
  max-messages = 6
 
 
  group = mysql-connection
  id = mydlr
  host = www.mysite.com http://www.mysite.com http://www.mysite.com
  username = name
  password = pass_db
  database = kannel_db
  max-connections = 1
 
  group = dlr-db
  id = mydlr
  table = tbl_Dlr
  field-smsc = smsc
  field-timestamp = timestamp
  field-destination = destination
  field-source = source
  field-service = service
  field-url = url
  field-mask = mask
  field-status = status
  field-boxc-id = boxc
  ###
 
 
 
  sqlbox.conf###
  group = sqlbox
  id = sqlbox-db
  smsbox-id = sqlbox
  bearerbox-host = localhost
  bearerbox-port = 13190
  smsbox-port-ssl = false
  sql-log-table = sent_sms
  sql-insert-table = send_sms
  log-file = /var/log/kannel/sqlbox.log
  log-level = 0
 
  group = mysql-connection
  id = sqlbox-db
  host = localhost
  username = name
  password = pass_db
  database = kannel_db
  max-connections = 1
  ###
 
 



Re: SQLBox and Kannel not calling the dlr-url specified.

2009-11-01 Thread seikath
Well,
first check your logs
do you get any DLR apart of ACK ?
then,
you should have the DLR statuses at the SQLBOX table anyway, according to that 
I can see in the configuration.

your setup is bearerbox-sqlbox-smsbox, so sqlbox handles all the MO/MT/DLR 
traffic.

Sam wrote:
 Hi,
 
 AM using SQLbox on Kannel. Kannel does not call dlr-url. I am setting
 dlr-mask to 31 and specify the required url in the field `dlr_url` of
 the send_sms table.
 
 Please help. My config below.
 
 
 ###kannel.conf
 group = core
 admin-port = 13090
 admin-password = pass
 status-password = pass
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access-bearerbox.log
 dlr-storage = mysql
 smsbox-port = 13190
 box-deny-ip = 
 box-allow-ip = 
 store-type = spool
 store-location = /var/spool/kannel
 
 
 # SMSC SMPP
 group = smsc
 smsc = smpp
 smsc-id = sand
 host = smpp.com http://smpp.com
 port = 
 receive-port = port
 smsc-username = name
 smsc-password = pass
 receive-port = port
 keepalive = 60
 transceiver-mode = 1
 system-type =
 max-sms-octets = 900
 
 
 # SMSBOX SETUP
 
 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13290
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access-smsbox.log
 
 
 # SEND-SMS USERS
 
 group = sendsms-user
 username = name
 password = pass
 concatenation=true
 max-messages = 6
 
 
 group = mysql-connection
 id = mydlr
 host = www.mysite.com http://www.mysite.com
 username = name
 password = pass_db
 database = kannel_db
 max-connections = 1
 
 group = dlr-db
 id = mydlr
 table = tbl_Dlr
 field-smsc = smsc
 field-timestamp = timestamp
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc
 ###
 
 
 
 sqlbox.conf###
 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13190
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 0
 
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = name
 password = pass_db
 database = kannel_db
 max-connections = 1
 ###



Re: kannel + DNS

2009-10-28 Thread seikath
Its nice idea to listen to the users here contributing to the Kannel users list.
If you dont trust them, its your decision.

As Nikos said already, its NOT related to Kannel at all.
NOTHING in the Kannel configuration settings is related directly to DNS.

Please make difference between Kannel documentation and some recommendations
for better performance. Do you understand why its has been recommended in this 
way?

If not, learn a bit about DNS resolv.conf implementation or may be port 
forwarding?
Do you know what is DNS resolver?
If yes - you would understand Nicos.
If not - ask the proper mailing list.


David G. Navarro Ferrer wrote:
 sorry but in the document architecture Kannel said that you can bind a
 DNS with Kannel for greater efficiency in HTTP requests. I have an own
 web server with host page and I want instead of putting
 http://192.168.10.65:8081/aplicacion can put
 http://aplicacion.bussines.com.For that we need a DNS. This is relevant
 for Kannel because in the architecture document is recommended for http
 connections.
 
 - Nikos Balkanas n...@amdtelecom.net escribió:
 |
 Hi,
  
 This is not relevant to kannel. Please address OS user groups. If using
 linux try /etc/resolv.conf. Please do not post here questions unrelated
 to kannel.
  
 BR,
 Nikos
 
 | - Original Message -
 | *From:* David G. Navarro Ferrer mailto:dgnava...@estudiantes.uci.cu
 | *To:* users mailto:users@kannel.org
 | *Sent:* Wednesday, October 28, 2009 4:37 PM
 | *Subject:* kannel + DNS
 
 |
 |
 | i need to link Kannel with DNS server but i dont know and in the
 userguide dont have examples about this theme... Please, i need your
 help.
 |
 | --
 |
 
 |
 
 /*El universitario de estos tiempos estΓ΅ llamado */
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 
 | 
 
 
 
 -- 
 
 /*El universitario de estos tiempos está llamado */
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 



Re: kannel + DNS

2009-10-28 Thread seikath
What you need is someone to tell you how to do it.

What did you do so far ?

We dont do your job.

We help in case you have issues with Kannel.

Do you have such issues?

anyway

:)





David G. Navarro Ferrer wrote:
 sorry but if de architecture document  of Kannel isn't an important
 document why it's in your site?
 I think you has to make the homework of DNS, I strongly recommend the
 website http://es.wikipedia.org/wiki/DNS. What I need is that once my
 request to pass through the Kannel before reaching a Web server passes
 the DNS to convert my IP address to a URL under a domain. Does anyone
 know how? I recommend, so that really does know how Kannel in all its
 magnitude, the document architecture.
 
 - Alejandro Guerrieri alejandro.guerri...@gmail.com escribió:
 |
 No it's not related to kannel at all and there's nothing to do in kannel
 to point a domain to an IP.
 
 |
 If you're asking this, you need to do your homework about DNS resolution...
 
 |
 Besides, the architecture document, apart from being out of date, it's
 not the user guide, which you should be using to learn about Kannel's
 operation/administration.
 
 |
 Regards,
 
 |
 Alejandro
 |
 |
 | On Wed, Oct 28, 2009 at 4:25 PM, David G. Navarro Ferrer
 dgnava...@estudiantes.uci.cu mailto:dgnava...@estudiantes.uci.cu wrote:
 |
 
 | sorry but in the document architecture Kannel said that you can
 bind a DNS with Kannel for greater efficiency in HTTP requests. I
 have an own web server with host page and I want instead of putting
 http://192.168.10.65:8081/aplicacion can put
 http://aplicacion.bussines.com.For that we need a DNS. This is
 relevant for Kannel because in the architecture document is
 recommended for http connections.
 |
 | - Nikos Balkanas n...@amdtelecom.net
 mailto:n...@amdtelecom.net escribió:
 |
 | |
 Hi,
  
 This is not relevant to kannel. Please address OS user groups. If
 using linux try /etc/resolv.conf. Please do not post here questions
 unrelated to kannel.
  
 BR,
 Nikos
 
 | | - Original Message -
 | | *From:* David G. Navarro Ferrer
 mailto:dgnava...@estudiantes.uci.cu
 | | *To:* users mailto:users@kannel.org
 | | *Sent:* Wednesday, October 28, 2009 4:37 PM
 | | *Subject:* kannel + DNS
 
 | |
 | |
 | | i need to link Kannel with DNS server but i dont know and in
 the userguide dont have examples about this theme... Please, i
 need your help.
 | |
 | | --
 | |
 
 | |
 
 /*El universitario de estos tiempos estΓ΅ llamado */
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 
 | | 
 
 
 |
 | --
 |
 
 |
 
 /*El universitario de estos tiempos está llamado */
 
 |
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 
 | 
 
 
 |
 
 
 -- 
 
 /*El universitario de estos tiempos está llamado */
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 



Re: Kannel, PlaySMS and dlr-url

2009-10-20 Thread seikath
you need to get more familiar with the MANUAL
/var/www/kannel/sendsms is the full path of something i bet you dont have at 
your filesystem
its not the URL ...
the url of the send-sms interface is virtual - created by the kannel http server

http://localhost:13013/cgi-bin/sendsms_or_whatever_if_you_have_renamed_it_in_the_config?user...



Emmanuel CHANSON wrote:
 Hello guys,
 
 Kannel installed and running version 1.4.2
 PlaySMS 0.9.4 installed and almost running with Kannel (I have some issue)
 And one is the following:
 
 I can not send SMS using PlaySMS web portal if the URL defined in the
 code is the following:
 (fn.php from PlaySMS version 0.8.4):
 
 $dlr_url = $http_path['base'] .
 /plugin/gateway/kannel/dlr.php?type=%dslid=$smslog_iduid=$uid;
 $dlr_url = str_replace('//', '/', $dlr_url);
 ...
 /$URL =
 http://localhost:13013/var/www/kannel/sendsms?username=.urlencode($kannel_param['username']).password=.urlencode($kannel_param['password']);
 $URL .=
 from=.urlencode($sms_from).to=.urlencode($sms_to).text=.urlencode($sms_msg);
 $URL .= dlr-mask=31dlr-url=.urlencode($dlr_url);
 $URL .= mclass=.$msg_type;/
 
 I got this on the smsbox.log file:
 
 /2009-10-20 22:08:12 [14601] [2] DEBUG: HTTP: Creating HTTPClient for
 `127.0.0.1'.
 2009-10-20 22:08:12 [14601] [2] DEBUG: HTTP: Created HTTPClient area
 0x987e2d0.
 2009-10-20 22:08:12 [14601] [3] INFO: smsbox: Got HTTP request
 /var/www/kannel/sendsms from 127.0.0.1
 2009-10-20 22:08:12 [14601] [3] INFO: sendsms used by playsms
 2009-10-20 22:08:12 [14601] [3] INFO: sendsms
 sender:playsms:+687850850 (127.0.0.1) to:+687850850 msg:test - playSMS
 *2009-10-20 22:08:12 [14601] [3] DEBUG: Status: 400 Answer: DLR-URL
 field misformed, rejected*
 2009-10-20 22:08:12 [14601] [3] DEBUG: HTTP: Destroying HTTPClient area
 0x987e2d0.
 2009-10-20 22:08:12 [14601] [3] DEBUG: HTTP: Destroying HTTPClient for
 `127.0.0.1'./
 
 If I comment the 3rd line about DLR it works, my SMS is sent.
 
 Do I have to configure something in Kannel.conf file about DLR ?
 Does anyone used PlaySMS v0.9.4 with kannel ?
 
 PlaySMS seems to be a great SMS web portal but there is still some
 little bugs and it is annoying...
 
 Regards,
 
 -- 
 Emmanuel



Re: getting delivery report: delivery failure

2009-10-19 Thread seikath
I had similar issues three times.
In two of the cases the telco people was not able or not willing to change the 
response. So I just did a work arround.
At the last case the telco ppl were just convinced they have to implement the 
changes at their side
because of the fact the other telco operators in the country use the same 
response structure /readable by kannel/.

So, kannel is not ultimate ESME client.
As there is no ultimate SMSC server.

Bug definition is for the developers list I think ?:)
And if someone has the patch dealing with all the DLR related issues
... well it will be nice to share.


Kind regards


Alejandro Guerrieri wrote:
 not relevant !== optional. Where did you read optional or can be
 removed?
 
 Again, this is NOT a standard, and it's documented by example, which
 it's imho a flaw on the spec's strictness, but it is what it is.
 
 The fact that most smsc's uses that format makes a strong point for
 kannel to use it as well. For the small fraction of smscs that don't use
 it the only alternative right now is to patch the source code, I'm afraid.
 
 Regards,
 
 Alejandro
 
 2009/10/19 Nikos Balkanas n...@amdtelecom.net mailto:n...@amdtelecom.net
 
 Sorry, Alej,
  
 You are in the wrong here. In the spec some of these fields are
 declared as optional, and others as not:
  
 msgid: The message ID allocated to the message by the SMSC when
 originally submitted.
  
 sub: Number of short messages originally submitted. This is only
 *relevant *when the original message was submitted to a distribution
 list.The value is padded with leading zeros if necessary.
  
 dlvr:  Number of short messages delivered. This is only *relevant*
 where the original message was submitted to a distribution list.The
 value ispadded with leading zeros if necessary.
  
 err:  Where *appropriate* this may hold a Network specific error
 code or an SMSC error code for the attempted delivery of the
 message. These errors are Network or SMSC specific and are not
 included here.
  
 These can be omitted according to the spec. Furthermore, kannel
 doesn't rely exclusively in sscanf , but also falls back in the old
 way, as stated in the warning, where it manually scans for the
 variables it needs. In the old way it is much more flexible.
  
 @Test: I have provided you with a patch, please test and let's take
 it from there.
  
 Let's stop the spam, until it's needed.
  
 BR,
 Nikos
 
 - Original Message -
 *From:* Alejandro Guerrieri mailto:alejandro.guerri...@gmail.com
 *To:* Latitude Test mailto:latitude...@googlemail.com
 *Cc:* Nikos Balkanas mailto:n...@amdtelecom.net ; users
 mailto:users@kannel.org
 *Sent:* Monday, October 19, 2009 5:50 PM
 *Subject:* Re: getting delivery report: delivery failure
 
 Sorry, what optional fields are you talking about? sub: and
 dlvrd: are _not_ optional parameters but part of the de facto
 standard for DLR format.
 
 The only optional parameter honored by kannel on DLR's is
 network_error_code but it's not mandatory: if present, Kannel
 will use it to determine if a DLR was successful, otherwise
 it'll rely solely on the DLR text field.
 
 Regards,
 
 Alejandro
 
 On Mon, Oct 19, 2009 at 4:42 PM, Latitude Test latitude.de@
 mailto:latitude...@googlemail.comgooglemail.com
 http://googlemail.com wrote:
 
 I have SMPP 3.4 specs but it doesn't give any info on
 mandatory/optional fields when it comes to DLR format.
 
 
 2009/10/19 Nikos Balkanas n...@amdtelecom.net
 mailto:n...@amdtelecom.net
 
 Hi,
  
 You seem to have the spec. Just read which fields are
 mandatory from there. Kannel requires mandatory fields.
 Kannel will use optional fields, if they exist, but it
 doesn't reuire them. Optional fields are: sub, dlvrd 
 err. Read the spec.
  
 Nikos
 
 - Original Message -
 *From:* Latitude Test
 mailto:latitude...@googlemail.com
 *To:* users mailto:users@kannel.org ; Nikos
 Balkanas mailto:nbalka...@gmail.com
 *Sent:* Monday, October 19, 2009 4:59 PM
 *Subject:* Fwd: getting delivery report: delivery
 failure
 
 I will contact my SMSC but I need to know exactly
 which fields are really being used by Kannel to
 return the DLR status?. Seems to me that Kannel is
 using *optional fields* like sub and dlvrd. If
 thats true, then isn't is a bug?
 
 

Re: Fw: only receiving DLR type=8

2009-10-19 Thread seikath
bind as transceiver
not as transmitter:

group = smsc
...
transceiver-mode = true

Sunil Soni wrote:
  Hi List,
  Below is the kannel.log and configuration file. 
  I am only receiving  DLR type=8 i.e SMSC submit.
  How can I recieve  Other DLR type=1 2 or 5 ?
  Plese any one  help me 
  I am using kannel-1.4.3, DLR mask 31

  
  
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP[Id72]: Sending
  PDU:
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP PDU 0x9c4e3e8
  dump:
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   type_name: submit_sm
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   command_id: 4 = 0x0004
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   command_status: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   sequence_number: 575 = 0x023f
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   service_type: NULL
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   source_addr_ton: 5 = 0x0005
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   source_addr_npi: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   source_addr: Lalit
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   dest_addr_ton: 2 = 0x0002
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   dest_addr_npi: 1 = 0x0001
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   destination_addr: 919868311699
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   esm_class: 3 = 0x0003
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   protocol_id: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   priority_flag: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   schedule_delivery_time: NULL
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   validity_period: NULL
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   registered_delivery: 1 = 0x0001
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   replace_if_present_flag: 0 =
  0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   data_coding: 242 = 0x00f2
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   sm_default_msg_id: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   sm_length: 14 = 0x000e
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   short_message: Jai Ram-sunil 
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP PDU dump ends.
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP[Id72]: Got
  PDU:
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP PDU 0x9c4e3e8
  dump:
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   type_name: submit_sm_resp
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   command_id: 2147483652 = 0x8004
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   command_status: 0 = 0x
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   sequence_number: 575 = 0x023f
  2009-10-18 12:28:22 [15936] [6]
  DEBUG:   message_id: 4ADA0A0E
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMPP PDU dump ends.
  2009-10-18 12:28:22 [15936] [6] DEBUG: DLR[mysql]: Adding
  DLR smsc=Id72, ts=4ADA0A0E, src=Lalit, dst=919868311699,
  mask=31, boxc=dlrbox
  2009-10-18 12:28:22 [15936] [6] DEBUG: sql: INSERT INTO dlr
  (smsc, ts, source, destination, service, url, mask, boxc,
  status) VALUES ('Id72', '4ADA0A0E', 'Lalit', '919868311699',
  'playsms', 
 'http://localhost/smsadmin/plugin/gateway/kannel/dlr.php?type=%dslid=749uid=7',
  '31', 'dlrbox', '0');
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMSC[Id72]: creating
  DLR message
  2009-10-18 12:28:22 [15936] [6] DEBUG: SMSC[Id72]: DLR = 
 http://localhost/smsadmin/plugin/gateway/kannel/dlr.php?type=%dslid=749uid=7
  2009-10-18 12:28:22 [15936] [9] DEBUG: send_msg: sending
  msg to boxc: dlrbox
  2009-10-18 12:28:22 [15936] [9] DEBUG: boxc_sender: sent
  message to 127.0.0.1
  2009-10-18 12:28:22 [15936] [8] DEBUG: boxc_receiver: got
  ack
  
  
  
  ###Kannel CONF FILE##
  group = core
  admin-port = 13000
  admin-password = **
  status-password = **
  log-file = /var/log/kannel/kannel.log
  log-level = 0
  access-log = /var/log/kannel/access.log
  smsbox-port = 13001
  #store-file = /var/log/kannel/kannel.store
  #store-location = /var/log/kannel/kannel.store
  sms-resend-retry = 5
  dlr-storage = mysql
  
  
  # SMSC SMPP
  group = smsc
  smsc = smpp
  smsc-id = Id72
  host = *
  port = 8899
  smsc-username = *
  smsc-password = *
  system-type = VMA
  msg-id-type=0x01
  
  # SMSBOX SETUP
  group = smsbox
  smsbox-id = dlrbox
  bearerbox-host = localhost
  sendsms-port = 13131
  sendsms-chars = 0123456789+
  log-file = /var/log/kannel/smsbox.log
  log-level = 0
  access-log = /var/log/kannel/access.log
  
  
  # SEND-SMS USERS
  group = sendsms-user
  username = *
  password = *
  
  # SMS SERVICE 'Default'
  # there should be default always
  group = sms-service
  keyword = default
  #exec = /usr/local/bin/kannel_incoming %t %q %a
  get-url = 
 http://localhost/smsadmin/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%ad=%d;
  
  
  # Example defining a MySQL database connection resource
  and
  # the required table and field values.
  #
  
  group = mysql-connection
  id = mydlr
  host = localhost
  username = *
  password = 
  database = mysms
  # max 

Re: Character code conversion

2009-10-16 Thread seikath
at the config, set mo-recode=true
and then use iconv to convert the kannel request from the reported by kannel 
charset to the desired one IF the reported charset is not UTF*

rcong wrote:
 Hi,
 
 Can someone please tell me that how do I convert kannel received text into
 UTC-8 code?  I tried to use ICONV without success.  Currently, my geturl
 receives something like:
 O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%00c%00e%00i%00v%00e%00d%00.%00+%7BI_%85.
 Is this unicode?  
 
 Thanks,
 Roger



Re: Character code conversion

2009-10-16 Thread seikath
What i mean is :
1. set mo-recode=true
2. restart the smsc.
3. in the get-url add the charset code so you will know in what charset kannel 
is doing the request.
example:
post-url =
http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f;
4. iconv ..


Karan Zaveri wrote:
 Hi Seikath,
 
 Thanks for responding but when you say convert the Kannel request from the
 reported kannel character
 set do you mean the value set in the alt-character variable? I tried the
 above and what happens is
 all characters except the $$ sign shows a weird character and doesn't show
 up correctly.
 
 Thanks for your help.
 
 Karan 
 
 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
 Of seikath
 Sent: Friday, October 16, 2009 3:38 AM
 Cc: users@kannel.org
 Subject: Re: Character code conversion
 
 at the config, set mo-recode=true
 and then use iconv to convert the kannel request from the reported by kannel
 charset to the desired one IF the reported charset is not UTF*
 
 rcong wrote:
 Hi,

 Can someone please tell me that how do I convert kannel received text into
 UTC-8 code?  I tried to use ICONV without success.  Currently, my geturl
 receives something like:

 O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0
 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85.
 Is this unicode?  

 Thanks,
 Roger
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com 
 Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09
 03:57:00
 
 
 
 



Re: Character code conversion

2009-10-16 Thread seikath
I tried twice to explain
I cant find other ways to explain more.
may be this will help you:

$sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? 
pg_escape_string(iconv($GLOBALS[_REQUEST][charset],
Windows-1251,$GLOBALS[_REQUEST][message])) : 
pg_escape_string($GLOBALS[_REQUEST][message]);
its PHP code, GLOBALS array is the kannel reuquest.

I convert to Cyrilic , because I am Bulgarian and used to code at kannel box 
binded to Bulgarian SMSC :)
so change the Windows-1251 to whatever you want.


patrick meye wrote:
 Hi Seikath,
 
 That's the same probleme like mine,all you say is exatly what i've
 done,but i don't know how to know what charset kannel is doing
 request.Can help me about,just how to know what charset kannel request
 please.I think that'll help me.
 
 Thank you in advance!
 
 Date: Fri, 16 Oct 2009 12:21:59 +0300
 From: seik...@gmail.com
 CC: users@kannel.org
 Subject: Re: Character code conversion

 What i mean is :
 1. set mo-recode=true
 2. restart the smsc.
 3. in the get-url add the charset code so you will know in what
 charset kannel is doing the request.
 example:
 post-url =

 http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset=%Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess=%bbillinfo=%Baccount_id=%f;
 4. iconv ..


 Karan Zaveri wrote:
  Hi Seikath,
 
  Thanks for responding but when you say convert the Kannel request
 from the
  reported kannel character
  set do you mean the value set in the alt-character variable? I
 tried the
  above and what happens is
  all characters except the $$ sign shows a weird character and
 doesn't show
  up correctly.
 
  Thanks for your help.
 
  Karan
 
  -Original Message-
  From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
 Behalf
  Of seikath
  Sent: Friday, October 16, 2009 3:38 AM
  Cc: users@kannel.org
  Subject: Re: Character code conversion
 
  at the config, set mo-recode=true
  and then use iconv to convert the kannel request from the reported
 by kannel
  charset to the desired one IF the reported charset is not UTF*
 
  rcong wrote:
  Hi,
 
  Can someone please tell me that how do I convert kannel received
 text into
  UTC-8 code? I tried to use ICONV without success. Currently, my geturl
  receives something like:
 
 
 O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0
  0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85.
  Is this unicode?
 
  Thanks,
  Roger
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date:
 10/15/09
  03:57:00
 
 
 
 

 
 
 Un avatar à votre image ? Créez votre mini-moi !
 http://www.ilovemessenger.fr/minimize-me



Re: How to Multiple SMSC's configuration and how to Load balancing B/W Muliple SMSC's

2009-10-16 Thread seikath
You should use kannel.

Then you send logs and ask questions whats wrong.


kiran.re...@mpowerglobal.in wrote:
 Hi All,

 How to Multiple SMSC's configuration and How to do the Load Balancing
 and Fail over between Multiple SMSC's. If possible please send sample
 configuration. :-(

 Thanks and Regards,

 Kiran Reddy


 
 
 



Re: Help me about Kannel + HTTP connection

2009-10-15 Thread seikath
Nicos was /as usual/ very polite and willing to help.

We do not understand the particular problem of yours.
Do you have any logs to show?
Do you have any configuration files tested?

I dont understand the concept of the project anyway.
What is trunki ?
Wap client needs to use kannel as bridge to another host ?

Do you want to dial to kannel in a view to get to the host box  ?

Its written in the manual, as you already know.
just in case:
http://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN5705
well and similar to this one
http://www.google.es/search?hl=enclient=firefox-arls=org.mozilla:en-US:officialhs=T7qq=kannel+wap+gateway+configstart=10sa=N

As you are programmer and software developer, you will deal.


David Gerardo wrote:
 excuse me Kannel community but every time I ask a question send me to
 see the user guide, I am a programmer and software developer and well
 that is the user guide. If I make a question is precisely because they
 find the answer in the materials provided by the community, so if you do
 not know the answers, understand, but no more to send me the user guide
 that I almost know it by heart. Sorry for the message but it is
 certainly unpleasant to all the questions I am doing so visit rebuts
 materials.
 
 - Nikos Balkanas n...@amdtelecom.net escribió:
 |
 Hi,
  
 There is an excellent how-to and examples in the User's Guide. You can
 download it from the site. If you have specific questions about what you
 read we will be glad to help you.
  
 BR,
 Nikos
 
 | - Original Message -
 | *From:* David Gerardo mailto:dgnava...@estudiantes.uci.cu
 | *To:* users mailto:users@kannel.org
 | *Sent:* Thursday, October 15, 2009 8:16 PM
 | *Subject:* Help me about Kannel + HTTP connection
 
 |
 | Gentlemen, please help urgently. I have a WAP terminal (it is a
 trunki) that connects to Kannel to review a website that is hosted
 on another computer. The Kannel creates bridges between the terminal
 and host the site. I need to know the file kannel.conf, What do I
 have to configure? The IP address of the computer that is hosting
 the Kannel is 10.31.18.4 and the IP address where is the site that I
 want to show in the terminal is on 10.31.18.5. Can you tell me the
 settings I put in the kannel.conf?
 |  Thank you for your support.
 |
 | -- 
 
 |
 
  
 
 
 | 
 
 
 
 -- 
 
 /*El universitario de estos tiempos está llamado */
 
 /*a convertir su espacio en un espacio productivo*/
 
  
 
 



Re: A little gift - Narendra

2009-10-05 Thread seikath
reported to google spam ,
I told him several months ago he is ignored

Alejandro Guerrieri wrote:
 Narendra, you already spammed me over users, devel and my personal
 addresses.
 
 Please stop spamming the lists (and my personal addresses for what
 matters) with these innocent gifts, ok?
 
 Alejandro
 
 On Mon, Oct 5, 2009 at 3:44 PM, Narendra Reddy sko...@skoost.com
 mailto:sko...@skoost.com wrote:
 
 Narendra Reddy belongs to Skoost and sent you a little gift.
 
 Click below to collect your gift:
 http://www.skoost.com/fun?users%40kannel%2Eorg/23414806/10
 
 P.S. This is a safe and innocent gift that Narendra Reddy
 sent from Skoost.
 
 This e-mail was sent to users@kannel.org mailto:users@kannel.org
 on 10/5/2009 2:42:49 PM
 on behalf of Narendra Reddy (kamaninaren...@gmail.com
 mailto:kamaninaren...@gmail.com)
 
 



Re: Questions about incomming SMS

2009-09-29 Thread seikath
omit-empty = true

its good idea to read the manual


Loïc Burdet wrote:
 Hello,
 
 I've a problem... little problem...
 I allready installed Kannel and sending SMS works well.
 My question is about incomming SMS.
 Each time I receive a new message on Kannel from a mobile phone, a
 response message is sent to the incomming number.
 I want to cancel this action and not to respond. I just want to receive
 the message without respond automatically.
 
 I see the group sms-service which I think is the key of my problem.
 How can I cancel this action ?
 
 Thanks for your answers.



Re: coding

2009-09-25 Thread seikath
Decode at the HTTP interface from UTF-8 to your encoding

example php:

$sms1251=preg_match(/UTF/i,$GLOBALS[_REQUEST][charset]) ? 
pg_escape_string(iconv($GLOBALS[_REQUEST][charset],
Windows-1251,$GLOBALS[_REQUEST][message])) : 
pg_escape_string($GLOBALS[_REQUEST][message]);

patrick meye wrote:
 Hi all,
 I successfully setting up kannel like sms gateway and it run
 perfectly.So i created a service that send sms to TV via another
 application that format is UTF-8.Service run ok but i have an encoding
 and format problem,cause some special charactèr are mal formated (i.e
 ex:é,à,è,ç,...etc).Is some one can help me,what can i do what setting add???
 Adding is my kannel.conf please help me. Sorry for my english i'm just
 learning english.
 
 Best regard!
 
 
 Découvrez toutes les possibilités de communication avec vos proches
 http://www.microsoft.com/windows/windowslive/default.aspx



Re: list

2009-09-23 Thread seikath
At the first posting there was noting like problem description, just general 
question for OTA

So:
http://kannel.org/download/kannel-userguide-snapshot/userguide.html
http://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4786
http://www.mail-archive.com/search?l=users%40kannel.orgq=OTA


 - Original Message -
 *From:* narendra reddy mailto:kamaninaren...@gmail.com
 *To:* users@kannel.org mailto:users@kannel.org
 *Sent:* Wednesday, September 23, 2009 9:06 AM
 *Subject:* list
 
 Hi List,
 
I posted some of my problems but  i am not getting even 
 single responce to my maul .is there  any thing wrong in my side
 .pls advice me .
 
 -- 
 Best Regards,
 narendra
 



Re: Best device for sending/receiving SMS on ATT in US?

2009-09-21 Thread seikath
Nagios and simple Fastrack serial modem

i use them since 2004 or so


Jeffrey T Eaton wrote:
 I'm looking to set up a monitoring system which can send alerts via SMS,
 and I'm looking for recommendations for a device which:
 
 - is known to work well on the ATT network in the US
 - is supported well with kannel
 - isn't a phone, but is just a simple serial/usb device, or even an
 ethernet-type device that can be accessed via HTTP or other simple
 protocol.
 
 I only care about the ability to send and recieve SMS messages over the
 air, and have my monitoring system easily interface with it.  I don't
 want or need to be able to make voice calls, or establish internet
 connections over the air.
 
 Any suggestions?
 
 -jeaton
 
 
 



Re: how can i remove kannel which was compiled from source

2009-09-16 Thread seikath
rm -fr /usr/local/kannel

and you may ask debian lists ?


freeburn wrote:
 i installed kannel from debian repositories. so i want to remove a
 previous installation which was compiled from the source. it was
 installed in a different directory(/usr/local/kannel). so when i issue 
 $make clean command, the installation in the /usr/local/kannel is not
 removed.
 
 how can i solve this?
 
 
 
 



Re: Out of box kannel appliance (2nd alpha)

2009-09-13 Thread seikath
Exactly :)

I use SqlBox with Postgresql, including some custom triggers for MT billing 
statuses
and small patch for sqlbox adding additional fields at the table initialization

If you want I can write some bash scripts about ?
monit .. I dont like it , do prefer external monitoring as Nagios, cant help 
here.



Michael Bochkaryov wrote:
 Hi Seik,
 
 Thanks for your offer.
 
 There are no problems with PostgreSQL itself.
 It's already packaged and is available in APT repo:
 apt-get install postgresql8.3-server
 
 More important things are:
 1. default PostgreSQL settings (and possibly some autotuning in
 postinstall scripts)
 2. update Kannel configuration to use PostgreSQL
 3. default sqlbox settings (I'm not active sqlbox user so help is welcome)
 4. out of box integration with monit (now it's ready for bearerbox and
 smsbox only)
 5. administrative utilities for all components
 
 
 -- 
 Regards,
 Michael Bochkaryov
 www.rattler.kiev.ua http://www.rattler.kiev.ua
 
 
 2009/9/13 seik s...@4636.org mailto:s...@4636.org
 
 If you want help with PostgreSQL I could help for  ?
 
 
 
 Michael Bochkaryov wrote:
  Hello,
 
  I've just prepared new version of ALT Linux based Kannel appliance.
  It's still in alpha stage and needs some work to became really out of
  box thing.
 
  However it works and ISO image is here:
  http://www.rattler.kiev.ua/DL/kannel-server-i586-20090913.iso
 
 
  Kannel build features:
  - version: CVS 21.07.09
  - some patches by Alejandro Guerrieri
  - sqlbox 0.7.2 (w/o deafult config yet)
  - mysql, postgresql, sqlite support
 
  Other features:
  - kernel 2.6.27
  - openvz virtualization support
  - apt-rpm package management
  - web administrative GUI
 
  TODO:
  - some cosmetics fixes (typos, texts, design)
  - ready sqlbox integration (depends on default config and DBMS )
  - install some contribs as services (at least monitoring)
  - some DBMS (postgresql?) installation and initialization for DLR
  storage and SQLbox
  - switch off portmap and haldaemon by default
  - lot of tests and debugging :-)
 
 
  --
  Regards,
  Michael Bochkaryov
  www.rattler.kiev.ua http://www.rattler.kiev.ua
 http://www.rattler.kiev.ua
 
 
 
 



Re: Throttling

2009-09-11 Thread seikath
give as the root

URGENT.

or, paste some config files and logs ?

its your choice


sapna singh wrote:
 Dear Team,
  
 I'm using kannel-1.4.3 for SMPP connectivity.
  
  
  
 I'm facing throttling error last 2 month.
 Plz resolve my issue.
  
 URGENT.
 
 -- 
 Regards
 Sapna



Re: Setup Kannel/Deb

2009-09-10 Thread seikath
anyone could install .deb package on Debian

then you will ask someone to configure it for you :p



EvdB wrote:
 Who wants to install Kannel for me on Debian?
 
 I tried but have no time to really get to know Kannel.
 Setup is simple; Kannel has to accept sms messages trough API (http) and
 send them trough API (http) to 1 (or more) providers.
 
 Please let me know if you are interested to do this for me?
 
 Thank you,
 
 Erwin
 



Re: @ sign in Message

2009-09-09 Thread seikath
send a message with @ in it like : [...@]
get the message from the SMSC, and get the code of the character the SMSC is 
using for the @ sign.

then before to proceed the SMS text, do a replace, the best is to use regexp 
... :)
same for MT traffic, before to inject the message at smsbox, regexp replace the 
@ with the character which the SMSC understands like @

the thread is in the kannel list, read it


Regards



gopal yendluri wrote:
 Hi,
 
 I am using Kannel gateway.
 
 Facing problem with @ sign in SMS.. can u please suggest me how to fix.
 
 
 Regards,
 
 GopalaKrishna



Re: + in destination

2009-09-04 Thread seikath
did you try to urlencode the + ?

the other approach is to mess with the npi-tone settings values.

satish wrote:
 Hi All
 Can any body help me to put + as prefix in destination . I am using
 this url for sending(sendsms)
 
 Example:
 http://127.0.0.1:13013/cgi-bin/sendsms?username=abcpassword=defto=+91from=xxtext=test%20messagesmsc=smsc_test
 
 when i am sending this url it not sending + appended with number
 what changes i need to add in configuration files for that problem
 
 My smsc configuration file is as
 
 group = smsc
 smsc = smpp
 smsc-id = smpp_g
 allowed-smsc-id = smpp_g
 host = localhost
 port = 2345
 receive-port = 2345
 #transceiver-mode = 0
 system-type = smpp
 #system-type = VMA
 smsc-username = xyx
 smsc-password = zzz
 source-addr-ton = 1
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 enquire-link-interval = 30
 #allowed-prefix = 0
 #denied-prefix = 0
 #max-pending-submits = 0
 #throughput = 0
 msg-id-type = 0
 source-addr-autodetect = yes
 thanks  regards
 Satish
 
 
 



Re: help needed in configuring Kannel

2009-08-14 Thread seikath
read the mailing list and the manual
when you have particular issues and you have debug logs please ask again :)


chandu wrote:
 
 Hii everyone,
 
 i have installed Kannel 1,.4.3 recently to my ubuntu 8.04.
 i want to test it for SMS Gateway  so need your help in configuring it.
 if any one have the working configuration file could you  pls send it to
 me or guide me how to configure,
 what the other hardware i needed to run the kannel As sms gateway
 is it works with CDMA Modems??
 Regards
 Chandu



Re: Fw: Re: Problem with dlrurl invocation

2009-07-24 Thread seikath

Check the kannel.log for DLR traffic.
Check your dlr-mask value ,  and check the dlr-url value, is it urlencoded ?
set the debug-level to 0
and set the proper msg-id-type type ...

then test again

Alejandro Guerrieri wrote:

Chirad,

Assuming the dlr was received on the bearerbox, it should be directed to 
smsbox, which will hit your url.


If instead of smsbox, the dlr got back into sqlbox, it will be stored on 
sqlbox and your url won't be hit.


Check on sent_sms and look if your dlr's are there.

On Fri, Jul 24, 2009 at 2:23 PM, Chirag Baraliya cd_baral...@yahoo.com 
mailto:cd_baral...@yahoo.com wrote:


Hi Alejandro,
 
I cant understand what you said, I checked it again, dlr created msg
comes in the BBlog 
but problem not solved,  Please explain in Brirf.
 
Chirag


--- On *Fri, 24/7/09, Alejandro Guerrieri
/alejandro.guerri...@gmail.com
mailto:alejandro.guerri...@gmail.com/* wrote:


From: Alejandro Guerrieri alejandro.guerri...@gmail.com
mailto:alejandro.guerri...@gmail.com
Subject: Re: Fw: Re: Problem with dlrurl invocation

To: Chirag Baraliya cd_baral...@yahoo.com
mailto:cd_baral...@yahoo.com
Cc: users@kannel.org mailto:users@kannel.org
Date: Friday, 24 July, 2009, 10:46 AM


Check if the dlr messages are being routed to smsbox, maybe are
being stored on sqlbox instead?

On Fri, Jul 24, 2009 at 6:56 AM, Chirag Baraliya
cd_baral...@yahoo.com
http://in.mc1124.mail.yahoo.com/mc/compose?to=cd_baral...@yahoo.com
wrote:


Dear Alejandro,
 
I am waiting for your replay.
 
Regards,

Chirag.
 


--- On *Tue, 21/7/09, Chirag Baraliya
/cd_baral...@yahoo.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=cd_baral...@yahoo.com/*
wrote:


From: Chirag Baraliya cd_baral...@yahoo.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=cd_baral...@yahoo.com


Subject: Re: Problem with dlrurl invocation
To: users@kannel.org
http://in.mc1124.mail.yahoo.com/mc/compose?to=us...@kannel.org
Cc: Alejandro Guerrieri alejandro.guerri...@gmail.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=alejandro.guerri...@gmail.com
Date: Tuesday, 21 July, 2009, 1:04 PM


 I have checked the Apache log, url is not being called.
I have tested this using cgi-bin/sendsms - thru smsbox -
in this case dlr-url is being called as seen in apache log.
 
Chirag.


--- On *Tue, 21/7/09, Alejandro Guerrieri
/alejandro.guerri...@gmail.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=alejandro.guerri...@gmail.com/*
wrote:


From: Alejandro Guerrieri
alejandro.guerri...@gmail.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=alejandro.guerri...@gmail.com
Subject: Re: Problem with dlrurl invocation
To: Chirag Baraliya cd_baral...@yahoo.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=cd_baral...@yahoo.com
Cc: users@kannel.org

http://in.mc1124.mail.yahoo.com/mc/compose?to=us...@kannel.org
Date: Tuesday, 21 July, 2009, 12:59 PM

Are you sure that your script is not being called?
Check on your apache logs to be sure.


On Tue, Jul 21, 2009 at 1:53 PM, Chirag Baraliya
cd_baral...@yahoo.com

http://in.mc1124.mail.yahoo.com/mc/compose?to=cd_baral...@yahoo.com
wrote:

Dear All Kannel user,

I am newly working with kannel, I have one
problem.  
I have one php script for inserting message in

the sqlbox send_sms table and that script also
inserts the row in the one another
table(smslog), in which I want to insert record
for message and when the dlrurl will be invoked,
I want to update that table (status field) for
delivered message using php script in dlrurl.
But when the dlr came, my table was not uadate
its status.
  I think that dlr.php script is not invoked.
But when I run this script manually
at that time it updates the status.

Attaching : smsboxlog file, Kannel.log file,
kannel config file(cd.conf), 

Re: Error 500 in Kannel's HTTP

2009-07-22 Thread seikath

I use Nagios to monitor bearerbox,  smsbox, smppbox and the sqlboxes of like 10 
kannel instances.
The usual response from the kannel status page has noting like the bellow log,
so first, make sure your admin port is different from the bearerbox port ...



Marcelo Olivas wrote:

Hi gurus!!  I'm getting the following error in bearerbox:

2009-07-21 02:01:52 [7125] [1] ERROR: Error writing 418 octets to fd 190:
2009-07-21 02:01:52 [7125] [1] ERROR: System error 32: Broken pipe

The error gives me an alert in my Nagios saying that all my connections 
(SMPP) are down.  I'm getting this error while using the status admin 
XML page.


With the smsbox I'm getting:

2009-07-21 02:01:35 [7205] [8] *ERROR: Couldn't fetch* 
http://localhost:9090/midc

gw/UpmobileSMSHandler?sender=xreceiver=xxxtext=texttime=2009-07-21+05:56:37smsc-id=TELCELSMS-I
D=0498316d-046a-4a4b-bf3c-92edf6b74cceDeliveryValue=-1DeliveryReportReply=Mv+s
e%3For+toca+el+corazon+d+mi+bordito+y+regresa+sus+pasos+a+nuestro+hogar+para+sie
mpre%2C+graciassendsms-user=defaultmessage-coding=0message-class-bits=-1mwi=
-1message-charset=UTF-8udh=billing=account=serviceid=%vsessionid=%wmeta-d
ata=%3Fsmpp%3F

The error is always happening at this time.  During this time I get the 
alert in my Nagios server, and in about 5-10 minutes everything seems fine. 


Can you help me??

Thanks,
Marcelo





Re: Sqlbox Dlrurl not being Invoked

2009-07-16 Thread seikath

I dont understand the ussue here

you have the DLR in the table with the DELIVRD status
IF you want to skip that part and your apache to handle the DLR, start the 
sqlbox AFTER the smsbox
and you may set the dlr-mask to 31 in a view to catch all the DLR statuses sent 
by the smsc.


Bharat Vasant wrote:

Enclosed snet_sms table snapshot file as required by you.

Bharat Vasant

 


*From:* Bharat Vasant [mailto:bha...@charteredinfo.com]
*Sent:* Wednesday, July 15, 2009 10:52 PM
*To:* 'users@kannel.org'
*Subject:* RE: Sqlbox Dlrurl not being Invoked
*Importance:* High

 


Awaiting any insights into the below issue..!!

Bharat K. Vasant

*From:* Bharat Vasant [mailto:bha...@charteredinfo.com]
*Sent:* Wednesday, July 15, 2009 5:42 PM
*To:* 'users@kannel.org'
*Cc:* 'Alejandro Guerrieri'
*Subject:* RE: Sqlbox Dlrurl not being Invoked
*Importance:* High

 


Dear Alejandro:

 


Thanks for your reply.

Attached logs.  Awaiting your insights about why dlrurl is not updating 
the delivery report in our table.  Is it being invoked !?


Bharat K. Vasant
*
**From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com]
*Sent:* Wednesday, July 15, 2009 2:55 PM
*To:* Bharat Vasant
*Cc:* users@kannel.org
*Subject:* Re: Sqlbox Dlrurl not being Invoked

 


Bharat,

 

sqlbox only pipes messages inserted on send_sms into kannel. Kannel then 
sends the messages and create/update/delete the DLR entries.


 

I'd start looking further on your kannel logs to see if the DLR's are in 
fact created. Also, make sure that you set dlr-mask and dlr-url on the 
sqlbox table when inserting.


 


Regards,

 


Alejandro

On Wed, Jul 15, 2009 at 8:43 AM, Bharat Vasant bha...@charteredinfo.com 
mailto:bha...@charteredinfo.com wrote:


I have checked Apache access_log and found that if I submit sms using 
 http://localhost:13013/cgi-bin/sendsms and provide dlrurl paramater, 
the access_log shows the dlrurl invoked on receipt of DLR


 

But if I try to send SMS by inserting in send_sms table (BB log as 
below), I am not seeing the dlr invoked in Apache access_log.


 

Please suggest me to debug non-invoke of dlrurl after sending sms by 
inserting directly to send_sms table.


 


BBLog:

2009-07-15 11:42:22 [5083] [6] DEBUG: SMPP[mysmsc] handle_pdu, got DLR

2009-07-15 11:42:22 [5083] [6] DEBUG: DLR[mysql]: Looking for DLR 
smsc=mysmsc, ts=60BB0EBB, dst=9198900n, type=1


2009-07-15 11:42:22 [5083] [6] DEBUG: sql: SELECT mask, service, url, 
source, destination, boxc FROM dlr WHERE smsc='mysmsc' AND ts='60BB0EBB';


2009-07-15 11:42:22 [5083] [6] DEBUG: Found entry, row[0]=7, row[1]=, 
row[2]=http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%A 
http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%25A, 
row[3]=BSSQL, row[4]=9198900n row[5]=sqlbox


2009-07-15 11:42:22 [5083] [6] DEBUG: DLR[mysql]: created DLR message 
for URL 
http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%A 
http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%25A


2009-07-15 11:42:22 [5083] [6] DEBUG: removing DLR from database

2009-07-15 11:42:22 [5083] [6] DEBUG: sql: DELETE FROM dlr WHERE 
smsc='mysmsc' AND ts='60BB0EBB' LIMIT 1;


 


Hope to get some early help from the group regarding the issue.

 


Bharat Vasant

 

*From:* Bharat Vasant [mailto:bha...@charteredinfo.com 
mailto:bha...@charteredinfo.com]

*Sent:* Tuesday, July 14, 2009 12:52 PM
*To:* 'users@kannel.org mailto:users@kannel.org'
*Subject:* Sqlbox Dlrurl not being Invoked
*Importance:* High

 

I am adding DlrUrl in Send_sms table while sending SMS by inserting row 
to Send_sms table (sqlbox) as  
http://localhost/dlr.php?msgid=$uuidstatus=%A 
http://localhost/dlr.php?msgid=$uuidstatus=%25A


 

On receipt of DLR my PHP script is not updating the corresponding Msg 
Status.  Where I can check whether Kannel/sqlbox is invoking Dlrurl or not ?


Bharat Vasant

 

 





Re: Throughput and Kannel

2009-07-15 Thread seikath

Kannel can handle much more than your application backend is able to process :)
Its because Kannel does not process the MO traffic, but just implements simple 
routing policies.

Do not worry for Kannel throughout abilities, make sure your application will 
not die killed by Kannel.
Get a decent box as hardware and do some stress tests.
Like inject 10 mln MO and see what will happen.





Jinson wrote:

Hello Nikos,

Thank you for the quick reply.

the 'throughput' variable is for limiting the number of messages 
submitting to the SMSC rite?


I'm asking about Kannel's throughout. How many messages can Kannel handle

Thanks
Jinson Abraham
MobME Wireless Solutions Pvt. Ltd
Cochin
+91 4846491646


2009/7/15 Nikos Balkanas nbalka...@gmail.com mailto:nbalka...@gmail.com

Hi,
 
Check the throughput variable in your smsc configuration in the

user's manual.
 
BR,

Nikos

- Original Message -
*From:* Jinson mailto:jin...@mobme.in
*To:* users mailto:users@kannel.org
*Sent:* Wednesday, July 15, 2009 1:26 PM
*Subject:* Throughput and Kannel

Hello Group,

Can somebody give me an idea about the throughput of Kannel. I
have 4 SMSC connections running on my server, it seems like lots
of messages are getting queued or taking time to send.

Is it dependant on the SMPP provider. Can we do something on
configuration to manage the throughput and message queues.


Thanks
Jinson Abraham
MobME Wireless Solutions Pvt. Ltd
Cochin
+91 4846491646






Re: Sqlbox Dlrurl not being Invoked

2009-07-15 Thread seikath
paste here the result from :
select * from sent_sms limit 10;


Bharat Vasant wrote:
 Awaiting any insights into the below issue..!!
 
 Bharat K. Vasant
 
 *From:* Bharat Vasant [mailto:bha...@charteredinfo.com]
 *Sent:* Wednesday, July 15, 2009 5:42 PM
 *To:* 'users@kannel.org'
 *Cc:* 'Alejandro Guerrieri'
 *Subject:* RE: Sqlbox Dlrurl not being Invoked
 *Importance:* High
 
  
 
 Dear Alejandro:
 
  
 
 Thanks for your reply.
 
 Attached logs.  Awaiting your insights about why dlrurl is not updating
 the delivery report in our table.  Is it being invoked !?
 
 Bharat K. Vasant
 *
 **From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com]
 *Sent:* Wednesday, July 15, 2009 2:55 PM
 *To:* Bharat Vasant
 *Cc:* users@kannel.org
 *Subject:* Re: Sqlbox Dlrurl not being Invoked
 
  
 
 Bharat,
 
  
 
 sqlbox only pipes messages inserted on send_sms into kannel. Kannel then
 sends the messages and create/update/delete the DLR entries.
 
  
 
 I'd start looking further on your kannel logs to see if the DLR's are in
 fact created. Also, make sure that you set dlr-mask and dlr-url on the
 sqlbox table when inserting.
 
  
 
 Regards,
 
  
 
 Alejandro
 
 On Wed, Jul 15, 2009 at 8:43 AM, Bharat Vasant bha...@charteredinfo.com
 mailto:bha...@charteredinfo.com wrote:
 
 I have checked Apache access_log and found that if I submit sms using
  http://localhost:13013/cgi-bin/sendsms and provide dlrurl paramater,
 the access_log shows the dlrurl invoked on receipt of DLR
 
  
 
 But if I try to send SMS by inserting in send_sms table (BB log as
 below), I am not seeing the dlr invoked in Apache access_log.
 
  
 
 Please suggest me to debug non-invoke of dlrurl after sending sms by
 inserting directly to send_sms table.
 
  
 
 BBLog:
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: SMPP[mysmsc] handle_pdu, got DLR
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: DLR[mysql]: Looking for DLR
 smsc=mysmsc, ts=60BB0EBB, dst=9198900n, type=1
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: sql: SELECT mask, service, url,
 source, destination, boxc FROM dlr WHERE smsc='mysmsc' AND ts='60BB0EBB';
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: Found entry, row[0]=7, row[1]=,
 row[2]=http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%A
 http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%25A,
 row[3]=BSSQL, row[4]=9198900n row[5]=sqlbox
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: DLR[mysql]: created DLR message
 for URL
 http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%A
 http://localhost/dlr.php?msgid=0a571843-bf7d-18c0-599a-c1ef05ab16a1status=%25A
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: removing DLR from database
 
 2009-07-15 11:42:22 [5083] [6] DEBUG: sql: DELETE FROM dlr WHERE
 smsc='mysmsc' AND ts='60BB0EBB' LIMIT 1;
 
  
 
 Hope to get some early help from the group regarding the issue.
 
  
 
 Bharat Vasant
 
  
 
 *From:* Bharat Vasant [mailto:bha...@charteredinfo.com
 mailto:bha...@charteredinfo.com]
 *Sent:* Tuesday, July 14, 2009 12:52 PM
 *To:* 'users@kannel.org mailto:users@kannel.org'
 *Subject:* Sqlbox Dlrurl not being Invoked
 *Importance:* High
 
  
 
 I am adding DlrUrl in Send_sms table while sending SMS by inserting row
 to Send_sms table (sqlbox) as 
 http://localhost/dlr.php?msgid=$uuidstatus=%A
 http://localhost/dlr.php?msgid=$uuidstatus=%25A
 
  
 
 On receipt of DLR my PHP script is not updating the corresponding Msg
 Status.  Where I can check whether Kannel/sqlbox is invoking Dlrurl or not ?
 
 Bharat Vasant
 
  
 
  
 



Re: how to start kannel as a deamon?

2009-07-09 Thread seikath
So ask someone familiar with the particular Linux distro you use.
NOTE - the following example WILL NOT work for you, its for Slackware,
and for custom installed kannel, you HAVE to delete and change most of the 
settings

example:
r...@bubu:[Thu Jul 09 10:37:03]:[~]$ cat /etc/rc.d/rc.kannel.clickatell
#!/bin/sh

bearer=/opt/kannel/sbin/bearerbox
smsbox=/opt/kannel/sbin/smsbox
sqlbox=/opt/kannel/sbin/sqlbox

bearerPID=/var/run/bearerbox.pid
smsboxPID=/var/run/smsbox.pid
sqlboxPID=/var/run/sqlbox.pid

mtelconf=/opt/kannel/etc/4636/wavecom.ttyS0.smskannel.conf
sqlconf=/opt/kannel/etc/sqlbox.conf

logfile=/var/log/kannel/start.restart.log
if [ -f ${mtelconf} ]
then
if [ ! -f ${bearerPID} ]
then
commnd=${bearer} -d -P -p ${bearerPID} ${mtelconf}
echo $(date) : starting bearerbox with command: ${commnd}  
${logfile} 21
${commnd}  ${logfile} 21
else
echo $(date) : There is existing bearerbox pid file: 
${bearerPID} : [$(cat ${bearerPID})]  ${logfile} 21
echo $(date) : Killing  bearerbox : [$(cat ${bearerPID})]  
${logfile} 21
kill $(cat ${bearerPID})
if [ -f ${bearerPID} ]
then
rm ${bearerPID}
fi
while [ $(ps ax | grep -i ${bearer} | grep -v grep -i 
${bearer}) !=   ]
do
  kill $(cat ${bearerPID})
sleep 1
done
commnd=${bearer} -d -P -p ${bearerPID} ${mtelconf}
echo $(date) : starting bearerbox with command: ${commnd}  
${logfile} 21
${commnd}  ${logfile} 21
fi
fi

sleep 2
if [ -f ${mtelconf} ]
then
if [ ! -f ${smsboxPID} ]
then
commnd=${smsbox} -d -P -p ${smsboxPID} ${mtelconf}
echo $(date) : starting smsbox with command: ${commnd}  
${logfile} 21
${commnd}   ${logfile} 21
else
echo $(date) : There is existing smsbox pid file: ${smsboxPID} 
: [$(cat ${smsboxPID})]  ${logfile} 21
echo $(date) : Killing  smsbox : [$(cat ${smsboxPID})]  
${logfile} 21
kill $(cat ${smsboxPID})
if [ -f ${smsboxPID} ]
then
rm ${smsboxPID}
fi
while [ $(ps ax | grep -i ${smsbox} | grep -v grep -i 
${smsbox}) !=   ]
do
  kill $(cat ${smsboxPID})
sleep 1
done
commnd=${smsbox} -d -P -p ${smsboxPID} ${mtelconf}
echo $(date) : starting smsbox with command: ${commnd}  
${logfile} 21
${commnd}   ${logfile} 21
fi
fi


if [ -f ${sqlconf} ]
then
if [ ! -f ${sqlboxPID} ]
then
commnd=${sqlbox} -d -P -p ${sqlboxPID} ${sqlconf}
echo $(date) : starting sqlbox with command: ${commnd}  
${logfile} 21
${commnd}   ${logfile} 21
else
echo $(date) : There is existing sqlbox pid file: ${sqlboxPID} 
: [$(cat ${sqlboxPID})]  ${logfile} 21
echo $(date) : Killing  sqlbox : [$(cat ${sqlboxPID})]  
${logfile} 21
kill $(cat ${sqlboxPID})
if [ -f ${sqlboxPID} ]
then
rm ${sqlboxPID}
fi
while [ $(ps ax | grep -i ${sqlbox} | grep -v grep -i 
${sqlbox}) !=   ]
do
  kill $(cat ${sqlboxPID})
sleep 1
done
commnd=${sqlbox} -d -P -p ${sqlboxPID} ${sqlconf}
echo $(date) : starting sqlbox with command: ${commnd}  
${logfile} 21
${commnd}   ${logfile} 21
fi
fi



ps ax | grep -i box



FADILI Hanae wrote:
 Hi,
 
 configue --enable-start-stop-daemon just allows kannel to start as a
 daemon independently from the terminal. But i'm searching if kannel can
 start by itself when the PC starts...
 I'm not good in linux, it's the first time i'm working with it so i
 don't know which script to use and how to use it...
 
 Thank you for the help:)
 
 
 Nikos Balkanas nbalka...@gmail.com a écrit :
 
 Hi,

 That + you might try:

 configure --enable_start_stop_daemon

 BR,
 Nikos
   - Original Message -
   From: Alejandro Guerrieri
   To: FADILI Hanae
   Cc: us...@vm1.kannel.org
   Sent: Wednesday, July 08, 2009 5:01 PM
   Subject: Re: how to start kannel as a deamon?


   You need an init script for that, it's not kannel's fault.


   There's some examples lying around, google a little bit for one  for
 your particular linux distro.


   Regards,


   Alejandro


   On Wed, Jul 8, 2009 at 3:54 PM, FADILI Hanae 
 fad...@enseirb-matmeca.fr wrote:


 Thank you but I used it. it just started kannel as a deamon 
 independatly from a terminal.
 I want to know if there is a solution that makes kannel start 
 directly when the 

Re: configuring kannel's CGI scripts

2009-07-09 Thread seikath
Its nothing to do with apache
apache listens on port  80
your kannel is binded to another one
there is no need to do anything , kannel http interface is ready to for
your request. The cgi urls mentioned in the manual are the default ones.
if you want different ones, read the manual and set the in the kannel config 
file



Moses Marimo wrote:
 dear all,
 
 how do i use the cgi scripts that come with kannel. I have an apache
 webserver. What configurations should be made in apache to serve
 kannel's cgi scripts
 



Re: Send SMS via XML

2009-07-07 Thread seikath
you use XML post request to cal the send-sms interface
its in the manual ...

abhishek jain wrote:
 Hi,
 I have a smpp smsbox and i am using kannel:
 
 I need to know how can i send multiple SMS(different texts) to
 different numbers in 1 request, so that the sms are send in less of
 time and even then have the delivery reports,
 I believe there must be a way via XML, but i do not know how?
 
 Please advice,
 Will appreciate prompt replies.



Re: Unplugging USB GSM Modem and replugging

2009-06-11 Thread seikath

the KISS solution :
at the head of the kannel start/stop script include short bash script to detect 
the latest device name of the modem
the script should remove if existing the old simlink and create new simlink to the real 
usb device named like /dev/MyUsbModem
use that in the kannel config


Dennis Low Weng Kin wrote:

Hi everyone,

I am running Kannel 1.4.3 in Fedora Core 10. For the moment, I am using 
a USB GSM Modem and in my setting, I mapped the device to /dev/ttyUSB0. 
However, if I unplugged and replug the GSM Modem to my PC, the port will 
change to ttyUSB1. Therefore, my Kannel will not be able to locate the 
device. Any suggestion? Or is it better to use Serial Modem?


Regards,
Low

 



See all the ways you can stay connected to friends and family 
http://www.microsoft.com/windows/windowslive/default.aspx




Re: How to set Kannel bearerbox and smsbox to run during startup

2009-06-04 Thread seikath

If you know how to start by hand, do simple start/stop script appropriate for 
your OS distro.
Or copy some from the net.
Or read the mailing lists.


Low Weng Kin wrote:

Hi,

I've installed Kannel using the tar.gz source to use the smsbox and 
everything is working fine for the moment.
I read through the documentation and browse through the internet for 
some idea to start the Kannel automatically during startup but failed to 
find any useful information. Can anyone help? Thanks in advance.


Regards,
Low


See all the ways you can stay connected to friends and family 
http://www.microsoft.com/windows/windowslive/default.aspx




Re: How to set Kannel bearerbox and smsbox to run during startup

2009-06-04 Thread seikath

in short:
1. check if the package installed is complied with start-stop-daemon option
2. if yes, find where is it and either fix the script either put it in the 
proper location ...
3. its not Kannel related issue, it is a box administration issue.
anyway, I paste here comment from alejandro guerrieri:

I'd recommend you to use the --daemonize and --parachute switches to startup 
the boxes.
Check on the userguide for further details, but that's the recommended way of 
starting the boxes.
Regards,
Alejandro



0. read the mailing lists, I think its good idea


Low Weng Kin wrote:
I found a script startup and I put it in /etc/init.d/. However, I can't 
seem to find the start-stop-daemon file when I start the kannel with 
service kannel start where kannel is my script name.

The following is my output:

Starting bearer service (gateway kannel 1.40): /etc/init.d/kannel: line 
41: /usr/sbin/start-stop-daemon: No such file or directory


Starting smsbox service (gateway kannel 1.40): /etc/init.d/kannel: line 
46: /usr/sbin/start-stop-daemon: No such file or directory


Please help ... urgent

  Date: Thu, 4 Jun 2009 09:59:11 +0300
  From: seik...@gmail.com
  CC: users@kannel.org
  Subject: Re: How to set Kannel bearerbox and smsbox to run during startup
 
  If you know how to start by hand, do simple start/stop script 
appropriate for your OS distro.

  Or copy some from the net.
  Or read the mailing lists.
 
 
  Low Weng Kin wrote:
   Hi,
  
   I've installed Kannel using the tar.gz source to use the smsbox and
   everything is working fine for the moment.
   I read through the documentation and browse through the internet for
   some idea to start the Kannel automatically during startup but 
failed to

   find any useful information. Can anyone help? Thanks in advance.
  
   Regards,
   Low
  
   


   See all the ways you can stay connected to friends and family
   http://www.microsoft.com/windows/windowslive/default.aspx
 


What can you do with the new Windows Live? Find out 
http://www.microsoft.com/windows/windowslive/default.aspx




Re: Kannel daemon

2009-06-02 Thread seikath

there are several types of start scripts,

you need to find them or write your own suitable for your distro
RH, Debian, Ubuntu ..
example for Slackware here:

http://217.75.128.61/media/kannel.monitoring/


Hemant Gmail wrote:

Hello Friends,

 

I have compiled the Kannel source with “--enable-start-stop-daemon” 
however I don’t see the script created for starting the service as daemon.


Can someone please guide me on how to achieve this?

 


Thanks,

Hemant.

 





Re: SQLBox with utf8 chars

2009-06-01 Thread seikath

on Insert
use the dcs value and some scripting language functions to
detect the encoding of the text and then just convert it from ucs-2be to your 
local encoding
then you could transliterate if you want

cheers




Benaiad wrote:

Hi,
I'm new to sqlbox and I'm trying to send and receive utf8 messages, but 
whenever I receive a message(MO in utf8 charset)  it is stored in hex 
values , and I don't know is it normal or I'm messing something!

I've tried the utf8 in table charset and msgdata field but it's the same

Frankly, I'm trying to use sqlbox and mysql triggers for production 
system, When a new message is inserted, a trigger (inside db engine) 
will be executed and store a response in the send_sms table.


Thanks  Best Regards.





Re: sqlbox and lampp

2009-05-22 Thread seikath
welcome to kannel community :)

Kaone Mathuba wrote:
 Hi Seikath,
 
 worked like magic!!! Thanks very much.
 
 Thanks Seikath, thanksJovan.
 
 Regards
 
 Kaone.
 
 On Fri, May 22, 2009 at 7:50 PM, seikath seik...@gmail.com
 mailto:seik...@gmail.com wrote:
 
 The easy approach is to do simlink of the actuoal location of the
 mysql.sock to the
 /var/lib/mysql/mysql.sock
 
 ln -s /opt/lampp/var/mysql/mysql.sock /var/lib/mysql/mysql.sock
 
 its safer in a view other apps could have the
 /opt/lampp/var/mysql/mysql.sock as default mysql.sock location
 
 Kaone Mathuba wrote:
  Hi list,
 
  I'm running kannel on openSUSE 11.1 with LAMPP. I have installed
 sqlbox.
  When I start it I get
  ERROR: MYSQL: Can't connect to local MySQL server through socket
  '/var/lib/mysql/mysql.sock' (2)
  how do I tell it to use /opt/lampp/var/mysql/mysql.sock instead.
 
 
  Regards
 
  Kaone.
 
 



Re: Reply: Reply: Message content in dlr

2009-05-19 Thread seikath

in short:

kannel dont care for the text body of the message in the dlr reports

this is just because you have the text in the send request, so you have it 
already.

IF you really want to text in the dlr url, its simploe as that:

/dlr.php?escape.codes.hereuniq_id=yourUnique_id=urlencodedd_text_body_here
so you will get the text as my_text value


Piyush wrote:

Hi Jinson,
Thanks for responding. I tried on all escape codes and none works for 
message content. There is something else that we need to do, which we 
dont know abt till yet :(


Regards,
Piyush Khandelwal
 
 
-- Original Message --

*From:* Jinsonjin...@mobme.in;
*Date:* May 19, 2009 05:20 PM
*To:* Piyushpiy...@ibibo.com;
*Cc:* Cezary Siwekcza...@thebestisp.co.uk; usersusers@kannel.org;
*Subject:* Re: Reply: Message content in dlr
 
http://kannel.org/download/1.4.3/userguide-1.4.3/userguide.html


Search for *Escape Codes*

On Tue, May 19, 2009 at 1:39 PM, Piyush piy...@ibibo.com 
mailto:piy...@ibibo.com wrote:


 I joined this mailing list very recently. Couldnt able to find any
thread disscussing about this issue.
Would appreciate, if u can give me some insight into how to set me
parameter for message content.

Thanks  regards,
Piyush Khandelwal
 
-- Original Message --

*From:* Cezary Siwekcza...@thebestisp.co.uk
mailto:cza...@thebestisp.co.uk;
*Date:* May 19, 2009 03:29 PM
*To:* usersusers@kannel.org mailto:users@kannel.org;
*Subject:* Re: Message content in dlr
 



  Hi All,
  Can anybody please tell me that what parameter(escape code) should I use 
  in dlr-url to see message content in dlr.

 

There is no escape code for message content. You can add this easily as your 
own HTTP/GET value. see the kannel documentation or search this mailing 
list.




 I am using mysql as dlr-storage. After sending message, I see a new record 
 being added in database. but when dlr is received that record is deleted. 
 How can I update that record instead of deleting.


This is how the dlr works. Create a separate table for your internal usage 
and update it when dlr received (dlr-url called)



Regards,
Cezary Siwek




ibibo Mail :: Get your mail box with Music, Skins, Greetings and
Stationery now! http://mail.ibibo.com/?from=footer



ibibo Mail :: Get your FREE mail box with Music, Skins, Greetings and 
Stationery now! http://mail.ibibo.com/?from=footer




Re: Reply: Reply: Reply: Message content in dlr

2009-05-19 Thread seikath


dlr_url value before the url_ecode

textinitial=My text here
string=urlencode(textinitial);
dlrurl=http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=61a82269e74079ae3d8e77af17df5fdecharset=%Ckannel_id=%Imy_text=${string};

senddlrUrl=urlencode(${dlrurl});

your cgi-bin/sendsms requet shoud be like:
url=http://localhost:port/cgi-bin/sendsms?username=XXXpassword=to=%2B${recipient}text=${string}dlr-url=${senddlrUrl}dlr-mask=31;

i cant explain more detailed of the above

Piyush wrote:

 Hi seikath,
Seems like its close to, what I am looking for.
But still I am unable to pass on data  from send request to my dlr-url. 
I would appreciate, if you can elaborate lil but more on it.


Regards,
Piyush Khandelwal
 
-- Original Message --

*From:* seikathseik...@gmail.com;
*Date:* May 19, 2009 06:46 PM
*To:* 
*Cc:* usersusers@kannel.org;

*Subject:* Re: Reply: Reply: Message content in dlr
 
in short:


kannel dont care for the text body of the message in the dlr reports

this is just because you have the text in the send request, so you have it 
already.

IF you really want to text in the dlr url, its simploe as that:

/dlr.php?escape.codes.hereuniq_id=yourUnique_id=urlencodedd_text_body_here
so you will get the text as my_text value


Piyush wrote:
  Hi Jinson,
  Thanks for responding. I tried on all escape codes and none works for 
  message content. There is something else that we need to do, which we 
  dont know abt till yet :(
  
  Regards,

  Piyush Khandelwal
   
   
  -- Original Message --

  *From:* Jinsonjin...@mobme.in;
  *Date:* May 19, 2009 05:20 PM
  *To:* Piyushpiy...@ibibo.com;
  *Cc:* Cezary Siwekcza...@thebestisp.co.uk; usersusers@kannel.org;
  *Subject:* Re: Reply: Message content in dlr
   
  http://kannel.org/download/1.4.3/userguide-1.4.3/userguide.html
  
  Search for *Escape Codes*
  
  On Tue, May 19, 2009 at 1:39 PM, Piyush piy...@ibibo.com 
  mailto:piy...@ibibo.com wrote:
  
   I joined this mailing list very recently. Couldnt able to find any

  thread disscussing about this issue.
  Would appreciate, if u can give me some insight into how to set me
  parameter for message content.
  
  Thanks  regards,

  Piyush Khandelwal
   
  -- Original Message --

  *From:* Cezary Siwekcza...@thebestisp.co.uk
  mailto:cza...@thebestisp.co.uk;
  *Date:* May 19, 2009 03:29 PM
  *To:* usersusers@kannel.org mailto:users@kannel.org;
  *Subject:* Re: Message content in dlr
   
  
  
Hi All,
Can anybody please tell me that what parameter(escape code) should I use 
in dlr-url to see message content in dlr.

   
  
  There is no escape code for message content. You can add this easily as your 
  own HTTP/GET value. see the kannel documentation or search this mailing 
  list.
  
  
  
   I am using mysql as dlr-storage. After sending message, I see a new record 
   being added in database. but when dlr is received that record is deleted. 
   How can I update that record instead of deleting.
  
  This is how the dlr works. Create a separate table for your internal usage 
  and update it when dlr received (dlr-url called)
  
  
  Regards,

  Cezary Siwek
  
  
  
  

  ibibo Mail :: Get your mail box with Music, Skins, Greetings and
  Stationery now! http://mail.ibibo.com/?from=footer
  
  
  
  ibibo Mail :: Get your FREE mail box with Music, Skins, Greetings and 
  Stationery now! http://mail.ibibo.com/?from=footer



ibibo Mail :: Get your mail box with Music, Skins, Greetings and 
Stationery now! http://mail.ibibo.com/?from=footer




Re: DLR for sms

2009-05-13 Thread seikath
in this mailing list there are like 50 posts about
search it

in short, you set dlr-mask=31, why to 31 ? read the manual: 
http://kannel.org/download/kannel-userguide-snapshot/userguide.html#DELIVERY-REPORTS
then you set dlr-url
NOTE: set the above mentioned parameters in the send-sms url you compose per 
each message.
in a view to make difference between several messages to identical recipient,
add one more parameter with unique ID in the DLR-URL
the dlr-url value should be  url encoded as well





Latitude Berlin wrote:
 Hi,
 
 I want to get delivery report (DLR) for each SMS I send via Kannel. How
 this can be done? Any conf requried?
 
 My idea is that on each SMS send, DLR should be sent to my application
 via HTTP POST/GET.
 
 Thanks
 - Latitude



Re: Couldn't fetch the DLR url

2009-05-07 Thread seikath

use sqlbox to handle all MO MT and DLR traffic
so no need to fetch DLR at all

hafez ahmad wrote:

Thanks all,

Juanin is right, what I mean if  kannel could not fetch the url, cause 
webserver down or heavy load or any other reasons, what kannel do with 
this senario?



Regards,
Hafez

On Thu, May 7, 2009 at 4:48 PM, Juan Nin jua...@gmail.com 
mailto:jua...@gmail.com wrote:


The patch Alejandro submitted is for retrying when Kannel doesn't find
a matching DLR

What Hafez is asking seems to me to be that once Kannel invokes the
dlr-url and fails (cause webserver is down or whatever) to have it
retry again


On Thu, May 7, 2009 at 10:28 AM, Alvaro Cornejo
cornejo.alv...@gmail.com mailto:cornejo.alv...@gmail.com wrote:
  Alejandro Guerreri has just commites a patch that allow kannel to
  retry dlr delivery a couple of days ago to cvs
 
  check it out
 
  Regards
 
  Alvaro
 
  On Thu, May 7, 2009 at 2:13 AM, hafez ahmad hafezad...@gmail.com
mailto:hafezad...@gmail.com wrote:
  HI All,
 
 
  If kannel could not fetch the DLR url when the DLR recived is
there any
  other retries to fetch the url again, I have this error
 
  009-05-07 10:07:29 [10838] [8] ERROR: Couldn't fetch
 

http://
 
 
 
  can you please advice,
 
  Regards,
  Hafez
 
 
 
 
  --
 

|-|
  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
http://www.perusms.NET www.smsglobal.com.mx
http://www.smsglobal.com.mx y
  www.pravcom.com http://www.pravcom.com
 
 



--
Juan Nin
3Cinteractive / Mobilizing Great Brands
http://www.3cinteractive.com




--
Hafez A.Ahmad
Amman-Jordan
mobile:962-785259011
  962-795708728
http://blog.hafezadnan.com




Re: deliver_sm pdu

2009-05-01 Thread seikath
Hello,

1. in the dlr you need only to specify ONE unique ID of yours in a view to 
match the DLR report with the MT message.
2. -1 means its not set.
3. if you set proper dlr-mask value, you will get the proper state of the MT 
message, if your SMSC is an usual one.

its all written in the manual.
and there are tons of examples in this mailing list, it worth to search it.
or Google a bit with proper search string



BeCauet wrote:
 Hello,
 
 1)
 In the dlr-url is a pity not being able to specify:
 
 - source_addr_ton
 - source_addr_npi
 - dest_addr_ton
 - dest_addr_npi
 - esm_class
 - protocol_id
 - priority_flag
 - schedule_delivery_time
 - validity_period
 - registered_delivery
 - replace_if_present_flag
 - network_error_code (PDU)
 - receipted_message_id
 
 
 2)
 
 data_coding and my log says:
 
 data_coding: 0 = 0x
 
 And kannel transfert:
 
 -1
 
 3)
 
 And delivery report is a pity we do not know directly the value of
 message_state ...
 
 message_state: 2 = 0x0002
 
 And kannel transfert:
 
 %d the delivery report value
 
 If you know how ...
 thank you
 
 



Re: Queue saving ?

2009-04-27 Thread seikath
the docs mean the MT traffic queued between the SMSC and the bearerbox,
not the MT DLR status info coming after the MT has been ACK-ed by the SMSC.

its a bit confusing, i know.
check out 
http://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN2934

so based on the above, as the previous posts recommended, either use external DB
or just set something like the following in the core config :

store-file = /opt/kannel/var/kannel.store

you may then check the status of NON SENT TO SMSC MT traffic via the web admin 
...
examples:
http://10.9.0.157:13000/store-status?user=seikpassword=passwd
http://10.9.0.157:13000/store-status.txt?user=seikpassword=s31k
http://10.9.0.157:13000/store-status.xml?user=seikpassword=s31k

the reason of external DB based storage is simple: file corruption on 
box/kannel crash

cheers


BeCauet wrote:
 sorry but even the documentation can only save the DLR in a DB, not the
 SMS queue?
 
 2009/4/27 Alvaro Cornejo cornejo.alv...@gmail.com
 mailto:cornejo.alv...@gmail.com
 
 you must define a storage type/location in your core config
 
 Regards
 
 Alvaro
 
 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
  Visitenos en www.perusms.NET http://www.perusms.NET
 www.smsglobal.com.mx http://www.smsglobal.com.mx y
 www.pravcom.com http://www.pravcom.com
 
 
 
 On Mon, Apr 27, 2009 at 11:37 AM, BeCauet beca...@gmail.com
 mailto:beca...@gmail.com wrote:
  Hello,
  When you stop (or crash) of Kannel, SMS queue is lost .. ?
  Is there way to fix this problem?
  mysql table?
 
  Mick
 
 
 



Re: find smpp server (sources)

2009-04-22 Thread seikath
there is smpp perl module
but you have to design the whole smpp smsc by yourself :)

BeCauet wrote:
 Hello!
 I looking for code (C, C++, PHP, Java, Python, Pascal/Kylix ...) able to
 make a server socket SMPP 3.4. So that Kannel can connect to it.
 thank you for your ideas!
 
 BR,
 Mickael



Re: High volume network connectivity

2009-04-21 Thread seikath

so true about Murphys SMS law ...

Falko Ziemann wrote:

Hello,

well, the most OPTIMAL hardware connection is surely SS7. But then 
kannel is out of the game and you need a real smsc. But high volume 
traffic with constant high traffic should be routed directly to the 
carriers/MNOs and no aggregators in between. So best take a phone, try 
to get some key-accounters of your local carriers and ask them for rates.


With a direct connection to the provider and an average commercial 
broadband connection to the Internet (SDSL 20 Mbit or something ... 
depending on your country and the connection-type to the carriers) 100 
sm/sec are no problem.


And, by the way: Murphys SMS law: real traffic is always 20% of what the 
customers tells you and 10% of what the marketing calculates...


Regards
Falko

Am 21.04.2009 um 03:35 schrieb Wade Hought:


Hello all,
 
I'm designing a high-volume sms application (MT  MO, plus reverse 
billing) and wondered if anyone had any recommendations about the most 
optimal hardware connection type you've used to attach to the telecom 
network(s).   I'm not in a position to describe the nature of the 
traffic as yet; but it is not spam and the system will not be acting 
as a gateway for anyone else.  The traffic could easily reach into 
100+ sms/sec range for 5-8hr periods in the evening. 
 
I understand this is a broad question to start with, but it seemed 
like a good place to start after seeing how much it would cost to push 
100k sms per day through a commercial gateway such as clickatell 
(which I've used on prior projects).
 
Thanks,

Wade Hought
 






Re: smsbox not starting

2009-04-17 Thread seikath

Hi,
whats the use of four instances ?
use one bearerbox to handle all the smsc connections ..


Elton Hoxha wrote:

Hi,

Actually I use 4 bearerbox instances separating my connections. I never 
had this type of error even using this configuration below.


group = core
admin-port = 13000
smsbox-port = 13010
sendsms-port = 13015

group = core
admin-port = 13000
smsbox-port = 13020
sendsms-port = 13016

group = core
admin-port = 13000
smsbox-port = 13030
sendsms-port = 13017

group = core
admin-port = 13000
smsbox-port = 13040
sendsms-port = 13018

By the way, is logical the above?

Elton


On Fri, Apr 17, 2009 at 2:38 PM, Milan P. Stanic m...@arvanta.net 
mailto:m...@arvanta.net wrote:


On Fri, 2009-04-17 at 14:32, Elton Hoxha wrote:
  I was running kannel for 2 weeks with no problems. Today I had to
change the
  conf file adding one other SMPP connection. After I started bearerbox
  binding all the clients, I started the smsbox but I noticed the
failure
  hours later
 
  2009-04-17 08:23:46 [27278] [0] INFO: Added logfile
  `/tmp/internal_kannel.log' with level `0'.
  2009-04-17 08:23:46 [27278] [0] INFO: Started access logfile
  `/tmp/internal_access.log'.
  2009-04-17 08:23:46 [27278] [0] INFO: HTTP: Opening server at
port 13000.
  2009-04-17 08:23:46 [27278] [0] ERROR: bind failed
  2009-04-17 08:23:46 [27278] [0] ERROR: System error 98: Address
already in use
   
 ^^


Something already is bounded to port 13000. Probably you have bearerbox
running and you trying to start another one (or more) instance.

  2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 1
  (gw/bb_http.c:httpadmin_run)
  2009-04-17 08:23:46 [27278] [0] DEBUG: starting smsbox connection
module
  2009-04-17 08:23:46 [27278] [0] INFO: BOXC: 'smsbox-max-pending'
not set,
  using default (100).
  2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 2
  (gw/bb_boxc.c:sms_to_smsboxes)
  2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 3
  (gw/bb_boxc.c:smsboxc_run)
 
  Which can be this address already in use? After starting
bearerbox it was
  normal.

--
Kind regards,  Milan






Re: smsbox not starting

2009-04-17 Thread seikath

i understand the idea,
but in reality, all modern smsc will keep the MO traffic in the queue till your 
esme bind again ...
so its safe to add new smsc and restart the bearerbox ...
and i dont think you add new smsc very often :)



Elton Hoxha wrote:
I use multiple instances because when I add other connections I dont 
want to affect the actual ones. So I dont need to stop and start all the 
connections, but just one bearerbox instance that holds some specific 
connections.




On Fri, Apr 17, 2009 at 3:12 PM, seikath seik...@gmail.com 
mailto:seik...@gmail.com wrote:


Hi,
whats the use of four instances ?
use one bearerbox to handle all the smsc connections ..


Elton Hoxha wrote:

Hi,

Actually I use 4 bearerbox instances separating my connections.
I never had this type of error even using this configuration below.

group = core
admin-port = 13000
smsbox-port = 13010
sendsms-port = 13015

group = core
admin-port = 13000
smsbox-port = 13020
sendsms-port = 13016

group = core
admin-port = 13000
smsbox-port = 13030
sendsms-port = 13017

group = core
admin-port = 13000
smsbox-port = 13040
sendsms-port = 13018

By the way, is logical the above?

Elton


On Fri, Apr 17, 2009 at 2:38 PM, Milan P. Stanic
m...@arvanta.net mailto:m...@arvanta.net
mailto:m...@arvanta.net mailto:m...@arvanta.net wrote:

   On Fri, 2009-04-17 at 14:32, Elton Hoxha wrote:
 I was running kannel for 2 weeks with no problems. Today I
had to
   change the
 conf file adding one other SMPP connection. After I
started bearerbox
 binding all the clients, I started the smsbox but I
noticed the
   failure
 hours later

 2009-04-17 08:23:46 [27278] [0] INFO: Added logfile
 `/tmp/internal_kannel.log' with level `0'.
 2009-04-17 08:23:46 [27278] [0] INFO: Started access logfile
 `/tmp/internal_access.log'.
 2009-04-17 08:23:46 [27278] [0] INFO: HTTP: Opening server at
   port 13000.
 2009-04-17 08:23:46 [27278] [0] ERROR: bind failed
 2009-04-17 08:23:46 [27278] [0] ERROR: System error 98:
Address
   already in use
 
^^


   Something already is bounded to port 13000. Probably you have
bearerbox
   running and you trying to start another one (or more) instance.

 2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 1
 (gw/bb_http.c:httpadmin_run)
 2009-04-17 08:23:46 [27278] [0] DEBUG: starting smsbox
connection
   module
 2009-04-17 08:23:46 [27278] [0] INFO: BOXC:
'smsbox-max-pending'
   not set,
 using default (100).
 2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 2
 (gw/bb_boxc.c:sms_to_smsboxes)
 2009-04-17 08:23:46 [27278] [0] DEBUG: Started thread 3
 (gw/bb_boxc.c:smsboxc_run)

 Which can be this address already in use? After starting
   bearerbox it was
 normal.

   --
   Kind regards,  Milan








Re: Looking for a kannel consultant

2009-04-17 Thread seikath
try commercial list as well
commerc...@kannel.org

William Maas wrote:
 Hello, 
 
 We are a media company located in central America and actually we
 looking for a kannel expert/consultant to improve our SMS platform.
 
  Interested ones please contact me at this list or directly to my email
 address   wm...@nuestrodiario.com.gt
 
 thanks 
 
 
 William Maas
 
 
 
 



Re: sqlbox mutex PANIC

2009-04-13 Thread seikath

try to setup the Kannel instance on Linux



simmetry67 wrote:

When attempting to run sqlbox, I'm receiving the following error:

PANIC: gwlib/thread.c:142: mutex_lock_real: Mana
ged to lock the mutex twice! (Called from
gwlib/conn.c:1273:openssl_locking_func
tion.)

My question is simple. Is there a solution to this issue?


The full output is below:

---

C:\Documents and Settings\Administrator2009-04-13 00:09:25 [4596] [0] INFO:
Deb
ug_lvl = -1, log_file = none, log_lvl = 0
2009-04-13 00:09:25 [4596] [0] DEBUG: Kannel sqlbox version `1.4.3'.
Build `Apr  8 2009 18:33:36', compiler `3.4.4 (cygming special, gdc 0.12,
using
dmd 0.125)'.
System CYGWIN_NT-5.2, release 1.7.0(0.210/5/3), version 2009-03-31 12:05,
machin
e i686.
Hostname mediaserver, IP 71.186.129.75.
Libxml version 2.7.3.
Using OpenSSL 0.9.8k 25 Mar 2009.
Compiled with MySQL 3.23.56, using MySQL 3.23.56.
Using native malloc.

2009-04-13 00:09:25 [4596] [0] INFO: MYSQL: Connected to server at
127.0.0.1.
2009-04-13 00:09:25 [4596] [0] INFO: MYSQL: server version
5.0.51b-community-nt,
 client version 3.23.56.
2009-04-13 00:09:25 [4596] [1] DEBUG: Thread 1 (sqlbox.c:sql_to_bearerbox)
maps
to pid 4596.
2009-04-13 00:09:25 [4596] [0] DEBUG: Started thread 1
(sqlbox.c:sql_to_bearerbo
x)
2009-04-13 00:09:26 [4596] [1] INFO: Connected to bearerbox at 127.0.0.1
port 13
005.
2009-04-13 00:09:26 [4596] [2] DEBUG: Thread 2 (sqlbox.c:bearerbox_to_sql)
maps
to pid 4596.
2009-04-13 00:09:26 [4596] [1] DEBUG: Started thread 2
(sqlbox.c:bearerbox_to_sq
l)
2009-04-13 00:09:26 [4596] [3] DEBUG: Thread 3 (sqlbox.c:function) maps to
pid 4
596.
2009-04-13 00:09:26 [4596] [0] DEBUG: Started thread 3 (sqlbox.c:function)
2009-04-13 00:09:26 [4596] [3] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:26 [4596] [3] INFO: Connected to bearerbox at 127.0.0.1
port 13
005.
2009-04-13 00:09:26 [4596] [4] DEBUG: Thread 4
(sqlbox.c:bearerbox_to_smsbox) ma
ps to pid 4596.
2009-04-13 00:09:26 [4596] [3] DEBUG: Started thread 4
(sqlbox.c:bearerbox_to_sm
sbox)
2009-04-13 00:09:26 [4596] [3] DEBUG: smsbox_to_bearerbox: got boxc_id
sqlbox
from 127.0.0.1
2009-04-13 00:09:27 [4596] [5] DEBUG: Thread 5 (sqlbox.c:function) maps to
pid 4
596.
2009-04-13 00:09:27 [4596] [0] DEBUG: Started thread 5 (sqlbox.c:function)
2009-04-13 00:09:27 [4596] [5] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:27 [4596] [5] INFO: Connected to bearerbox at 127.0.0.1
port 13
005.
2009-04-13 00:09:27 [4596] [6] DEBUG: Thread 6
(sqlbox.c:bearerbox_to_smsbox) ma
ps to pid 4596.
2009-04-13 00:09:27 [4596] [5] DEBUG: Started thread 6
(sqlbox.c:bearerbox_to_sm
sbox)
2009-04-13 00:09:27 [4596] [5] DEBUG: smsbox_to_bearerbox: got boxc_id
sqlbox
from 127.0.0.1
2009-04-13 00:09:28 [4596] [7] DEBUG: Thread 7 (sqlbox.c:function) maps to
pid 4
596.
2009-04-13 00:09:28 [4596] [0] DEBUG: Started thread 7 (sqlbox.c:function)
2009-04-13 00:09:28 [4596] [7] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:28 [4596] [7] INFO: Connected to bearerbox at 127.0.0.1
port 13
005.
2009-04-13 00:09:28 [4596] [8] DEBUG: Thread 8
(sqlbox.c:bearerbox_to_smsbox) ma
ps to pid 4596.
2009-04-13 00:09:28 [4596] [7] DEBUG: Started thread 8
(sqlbox.c:bearerbox_to_sm
sbox)
2009-04-13 00:09:28 [4596] [7] DEBUG: smsbox_to_bearerbox: got boxc_id
sqlbox
from 127.0.0.1
2009-04-13 00:09:29 [4596] [0] ERROR: cannot get flags for fd 31
2009-04-13 00:09:29 [4596] [0] ERROR: System error 9: Bad file descriptor
2009-04-13 00:09:29 [4596] [9] DEBUG: Thread 9 (sqlbox.c:function) maps to
pid 4
596.
2009-04-13 00:09:29 [4596] [0] DEBUG: Started thread 9 (sqlbox.c:function)
2009-04-13 00:09:29 [4596] [9] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:29 [4596] [9] INFO: Connected to bearerbox at 127.0.0.1
port 13
005.
2009-04-13 00:09:29 [4596] [10] DEBUG: Thread 10
(sqlbox.c:bearerbox_to_smsbox)
maps to pid 4596.
2009-04-13 00:09:29 [4596] [9] DEBUG: Started thread 10
(sqlbox.c:bearerbox_to_s
msbox)
2009-04-13 00:09:29 [4596] [9] DEBUG: smsbox_to_bearerbox: got boxc_id
sqlbox
from 127.0.0.1
2009-04-13 00:09:30 [4596] [11] DEBUG: Thread 11 (sqlbox.c:function) maps to
pid
 4596.
2009-04-13 00:09:30 [4596] [0] DEBUG: Started thread 11 (sqlbox.c:function)
2009-04-13 00:09:30 [4596] [11] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:30 [4596] [11] INFO: Connected to bearerbox at 127.0.0.1
port 1
3005.
2009-04-13 00:09:30 [4596] [12] DEBUG: Thread 12
(sqlbox.c:bearerbox_to_smsbox)
maps to pid 4596.
2009-04-13 00:09:30 [4596] [11] DEBUG: Started thread 12
(sqlbox.c:bearerbox_to_
smsbox)
2009-04-13 00:09:30 [4596] [11] DEBUG: smsbox_to_bearerbox: got boxc_id
sqlbox
 from 127.0.0.1
2009-04-13 00:09:31 [4596] [13] DEBUG: Thread 13 (sqlbox.c:function) maps to
pid
 4596.
2009-04-13 00:09:31 [4596] [0] DEBUG: Started thread 13 (sqlbox.c:function)
2009-04-13 00:09:31 [4596] [13] INFO: Client connected from 127.0.0.1
2009-04-13 00:09:31 [4596] [13] INFO: 

Re: Sqlbox

2009-03-26 Thread seikath
http://www.kannel.org/~aguerrieri/

about the how-to :
search the list , there are several threads about


narendra reddy wrote:
 Hi all,
 
 from where i can get the sqlbox source code .after download how can i do
 that one .can anybody give me some explain about sqlbox.how can i compile i
 mean in same kannel gateway folder or separate .and how can i add in the
 sqlbox things in kannel conf.
 




Re: regex for sms-service group

2009-03-17 Thread seikath
i believe the bellow will do the job
^[[:punct:][:space:][:cntrl:]]*_STOP

BUT, i hope you live in a country where Latin alphabet is the usual one

because non latin alphabets are encoded  and kannel simply cant parse
them except you define the regexp in hex encoded strings ..
this is interesting idea hm ...



Latitude Berlin wrote:
 Hi,
 
 I want to have keyword-regex in sms-service group to forward the incomming
 SMS messages (meetting the criteria) to a specific servlet.
 
 Example. m...@domain.com_STOP
 Regex: [:print:]*_STOP
 
 The regex I used didnt work. I would be greatful if someone can guide.
 
 thanks
 - Latitude
 




Re: concatenating incoming long SMS to one msg

2009-03-13 Thread seikath
it works on cvs-20070627 here,
i think the issues is just wrong placed settings in your configuration

the settings sms-combine-concatenated-mo are core group related.
example:

group = core
admin-port
sms-combine-concatenated-mo = please consult user doc here you set true
sms-combine-concatenated-mo-timeout = please consult user doc  this one could 
be omitted
etc core group settings


Latitude Berlin wrote:
 Hi,
 
 I want to receive concatenated messages in combined state via Kannel.
 Currently my Kannel server is delivering multiple sms messages. I
 googled this and found that I need to set the following property in conf:
 
 sms-combine-concatenated-mo = true
 
 I am using  Kannel 1.4.1 and I found that  ‘sms-combine-concatenated-mo’
 doesn’t work in 1.4.1 version.
 
 Please advise.
 
 Thanks
 - Nauman



Re: Kannel not load balancing after restart and messages get stuck in queue

2009-03-11 Thread seikath
Hi Alvaro,

so you deal with this just as I do, except I dont use the store-tool :)
I have only one smsc active this particular kannel instance.
Im stuck here, because you do use send-sms to inject traffic into bearerebox
when all the modems are ready to proceed.

I will take a look at logs of other kannel instances with more SMSC activated.



Alvaro Cornejo wrote:
 Hi Seikath
 
 As my previous mail states, Nikos is right on his guess about the
 queues being asigned to the 1st available smsc for the specific
 smsc-id destination.
 
 What I do when I have many messages in queue and can't wait for those
 messages being sent by only one modem (Max throughput I can reach here
 is aprox 480msg/hr) is:
 
 Stop kannel.
 delete all messages in queue (I use spool so I just delete the whole
 spool dir tree)
 Start Kannel.
 search my database for messages not sent.
 resubmit all messages found.
 
 Side Note:
 store-tool is a command line developed by Alejandro Guerreri that
 allow to list/export/delete individual messages of kannel MESSAGE
 queue. (http://www.blogalex.com/archives/category/kannel) THANKS ALEX
 
 Alvaro
 
 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.NET www.smsglobal.com.mx y
 www.pravcom.com
 
 
 
 On Tue, Mar 10, 2009 at 9:18 PM, seikath seik...@gmail.com wrote:
 Its a bug then, i think it should be old sql issue in the source related 
 to initiating the dlr db connection
 it should be executed once right after the startup

 an idea for debugging :
 wait for the unsent messages to appear, stop the kannel
 dump the table , drop/recreate it, the start the kannel
 send single sms, then inject the dump
 the results should point there to search .. ?

 have to say i have similar issues with sqlbox and some chinese/dont know the 
 brand smpp smsc
 time to time messages are stuck in the dlr table, and i need to restart 
 kannel,
 i see routing error in the kannel logs when this issue appears.
 so its related to non usual for kannel responce from the smsc by my opinion.

 my work arround : i stop the kannel daemon, run a script to regenerate the 
 messages from the db
 i truncate the table and then i start the kannel and execute the resulting 
 script created before hand ...

 fgrep kannel logs for errors ..

 wish you luck with this

 Alvaro Cornejo wrote:
 No, I'm using mysql for dlr storage since otherwise dlr are lost on
 kannel restart

 |-|
 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, Mar 10, 2009 at 8:15 PM, seikath seik...@gmail.com wrote:
 Hi,

 I am not aware of the store_tools.
 Anyway, I assume you use default kannel store file
 instead of db dlr storage, correct ?



 Alvaro Cornejo wrote:
 Hi List


 I've found the following 2 isues:

 1) I have several modems for the same operators 10 for op1 and 5 for
 op2. For some reason, some messages get stuck into kannel queue and
 are not sent to smsc without restarting kannel. I've used Alex
 store_tools and verify messages are in queue. All messages are sent
 using the same code and use AT-SMSCs.

 2) When I restart kannel QUEUED messages are sent  through only one
 at-smsc even if messages have a destination smsc-id specified in
 sendsms url call

 This is an snippet of the config I have:

 smsc-id = id1
 allowed-smsc = id1,id_op1

 smsc-id = id2
 allowed-smsc = id2,id_op1

 smsc-id = id3
 allowed-smsc = id3,id_op1

 smsc-id = id4
 allowed-smsc = id4,id_op2

 smsc-id = id5
 allowed-smsc = id5,id_op2

 etc...

 Note there is no smsc defined with smsc-id=id_op1 nor id_op2 in config 
 file.

 When sending the messages I use smsc-id=id_op1 or id_op2 into url so
 kannel load-balance through the smsc of corresponding operator and
 send the message. This works fine until I restart kannel.

 After kannel reset, All QUEUED messages are sent through ONLY ONE  of
 the smsc without load-balancing between smsc even though there are
 hundreds of queued messages; however if, at the same time, I send
 messages to any of the id_op1 or id_op2, this new messages are
 correctly load-balanced between smsc-at

 I use:

 Kannel bearerbox version `1.4.3'. Build `Feb 13 2009 17:32:59',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-13)'. System Linux, release
 2.6.20-1.2962.fc6, version #1 SMP Tue Jun 19 19:27:14 EDT 2007,
 machine i686.  IP 10.10.5.2. Libxml version 2.6.29. Using OpenSSL
 0.9.8b 04 May 2006. Compiled with MySQL 5.0.27, using MySQL

Re: dlr-url help

2009-03-11 Thread seikath

OK,

will not comment the reasons i have for the idea described bellow:
anyway.
how about voting,
the most annoying questions?

based on the winners  , lets create html/PDF presentations with
step by step instructions how to proceed in each case.

example:
1. kannel compile instructions for db support /linux/macos/solaris/
2. setting database driven dlr storage mysql/postgresql/oracle/sdb
3. dlr mask and dlr URL implementation /simple db table design and 
php/perl/java  dlr handler/
4. denied/forced smsc id implementation
5. does kannel work on windows and if not, why not.
? :)






Re: dlr-url help

2009-03-11 Thread seikath
Yes, they need to follow steps, they do not care to understand.
ppl are lazy to read, and even they tend to ignore our explanations.
most of them want just to copy paste several magical lines of code in a view to 
start everything they want :)

OR
someone from advanced users or group of users to create kannel 
installer/configurator
:)
id give it a try for slackware package including startup scripts, and some bash 
scripts installing the dlr database and dlr table
in fact, i will start this in a week, as my course in Spanish has been 
postponed ... :(

about the cigwin, as i really sux at windows, we would been someone with 
extensive experience in.

me shrugs

i saw in the years several attempts of aggregating kannel knowledge.
as far as i know this list and the nabble one are the best help resource
for those willing to read ... and think :p




Nikos Balkanas wrote:
 I dunno. Some of these are fairly detailed in the manual. People instead
 pick the easy solution, asking them away. You think that an audio-visual
 presentation would fair any better?
 
 AFAIK (5) is corrected. Seems cygwin got their act together and pthread
 locks are working, now.
 
 BR,
 Nikos
 - Original Message - From: seikath seik...@gmail.com
 Cc: mailing list kannel users@kannel.org
 Sent: Wednesday, March 11, 2009 7:40 PM
 Subject: Re: dlr-url help
 
 
 OK,

 will not comment the reasons i have for the idea described bellow:
 anyway.
 how about voting,
 the most annoying questions?

 based on the winners  , lets create html/PDF presentations with
 step by step instructions how to proceed in each case.

 example:
 1. kannel compile instructions for db support /linux/macos/solaris/
 2. setting database driven dlr storage mysql/postgresql/oracle/sdb
 3. dlr mask and dlr URL implementation /simple db table design and
 php/perl/java  dlr handler/
 4. denied/forced smsc id implementation
 5. does kannel work on windows and if not, why not.
 ? :)




 
 



Re: Not ACKED message found, will retransmit

2009-03-10 Thread seikath

Hello ppl,

I just detected similar issue:

2009-03-10 12:37:02 [23769] [10] WARNING: SMPP[sir]: Not ACKED message found, will retransmit. 
SENT96sec. ago, SEQ20582, DST+359888deleteddigitshere

I can confirm the issue is at the SMSC side, because the issue apeared after 
migration to a new SMPP proxy/loadbalancer the telco has implemented.

Hope to save some time of yours with this info.

cheers


hafez ahmad wrote:

Hi,



try to delete the receive-port from the config and set:
transceiver-mode = on



 I tried before but my operator disable the transceiver mode from his side.



I'm not sure how kannel handles the notification problem. The MT gets send
on the MTCONN while the DLR arrives on the MOCONN. I don't know if kannel
can assign the DLR to message when they arrive in two diffrent SMSCs, but I
don't think that this works. Maybe the same problem with ACKs ?!



 for the DLR that send using MT and received with another MO, I have it
before and I solved it using the DLR group id batch,

now every thing works fine, but I will monitor and update the list.

Regards and many thanks for help.
Hafez


Am 10.03.2009 um 10:00 schrieb hafez ahmad:

Dears Falko, Nikos,

Thanks for your kind help, my configuration was like that:

group = smsc
smsc = smpp
smsc-id = MOCONN
host = xxx.xxx.xxx.xxx
port = 0
receive-port = 8000
smsc-username = X
smsc-password = XXX
system-type = 
allowed-smsc-id = MOCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/mo.log

group = smsc
smsc = smpp
smsc-id = MTCONN
host = xxx.xxx.xxx.xxx
port = 8000
receive-port = 0
smsc-username = X
smsc-password = XXX
system-type = 
allowed-smsc-id = MTCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/mt.log

after that I make the transmitter and receiver in one SMSC group like that

smsc = smpp
smsc-id = MYCONN
host = xxx.xxx.xxx.xxx
port = 8000
receive-port = 8000
smsc-username = X
smsc-password = XXX
keepalive = 10
enquire-link-interval = 10
system-type = 
allowed-smsc-id = MYCONN
interface-version = 34
address-range = 
reconnect-delay = 10
source-addr-ton = 5
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
msg-id-type = 0x01
log-file = /var/log/conn.log

but I still get the error in the logs  until I changed the source-addr-npi
= 1 to be source-addr-npi = 5.

by the way is there different if I configure the transmitter and receiver
in one SMSC group or 2 SMSC group?


Thanks for help.
Regards,
Hafez



On Tue, Mar 10, 2009 at 1:32 AM, Falko Ziemann fal...@gmail.com wrote:


By the way, I just realised: transmitter and receiver? Are you using
SMPP 3.3 instead of 3.4? Have you configured the receiver and transmitter in
the same SMSC group? Normal SMPP 3.4 shouldn't have transmitter and
receiver but only one transceiver. If you use 3.3 with divided transmitter
and receiver connection, you need to configure both inside the same
smsc-group, otherwise kannel cannot associate the ACK. (Well, no smsc I have
seen so far could do this...)

Falko

Am 10.03.2009 um 00:26 schrieb Falko Ziemann:

I just saw this behavior once before. There a service provider routed the
ACK to another large account. So I send the message on MYMTCONN1 and
received the ACK on MYMTCONN2. That's not the case, or? I can't see it
from the log, the first line where kannel states the connection name is
missing.
But I really don't have a idea what this problem should have to do with
keep alives. Are you loosing the connection between the submit and the ACK?

Falko

Am 09.03.2009 um 21:13 schrieb Nikos Balkanas:

 Well, there is an enquire-link-interval which you could tweak. It
defaults to 30.

BR,
Nikos

- Original Message -
 *From:* hafez ahmad hafezad...@gmail.com
 *To:* Falko Ziemann fal...@gmail.com
 *Cc:* users@kannel.org
 *Sent:* Monday, March 09, 2009 3:43 PM
 *Subject:* Re: Not ACKED message found, will retransmit

Dears,

I still have the same problem, Any Ideas? , by they my operator advice me
that * * *use “ESME_QRYLINK” on both transmitter and receiver to keep
the connection live* may be that related to this error .

Please advice.

Regards,
Hafez

On Thu, Mar 5, 2009 at 4:17 PM, Falko Ziemann fal...@gmail.com wrote:


Hmm, sorry, no idea. Seems like kannel forgets about the ack...
 A hotfix would be to set wait-ack-expire = 0x02 in the smsc group.
That would make kannel waiting forever for the ACK and never retry.
Very dirty hack, but should do the job until someone comes around with a
better solution...

Regards
Falko

 Am 05.03.2009 um 13:37 schrieb hafez ahmad:

 Sorry, thats the correct

2009-03-03 21:00:16 [2825] [14] DEBUG: SMPP PDU 0xa732ad00 dump:

Re: Kannel not load balancing after restart and messages get stuck in queue

2009-03-10 Thread seikath
Hi,

I am not aware of the store_tools.
Anyway, I assume you use default kannel store file
instead of db dlr storage, correct ?



Alvaro Cornejo wrote:
 Hi List
 
 
 I've found the following 2 isues:
 
 1) I have several modems for the same operators 10 for op1 and 5 for
 op2. For some reason, some messages get stuck into kannel queue and
 are not sent to smsc without restarting kannel. I've used Alex
 store_tools and verify messages are in queue. All messages are sent
 using the same code and use AT-SMSCs.
 
 2) When I restart kannel QUEUED messages are sent  through only one
 at-smsc even if messages have a destination smsc-id specified in
 sendsms url call
 
 This is an snippet of the config I have:
 
 smsc-id = id1
 allowed-smsc = id1,id_op1
 
 smsc-id = id2
 allowed-smsc = id2,id_op1
 
 smsc-id = id3
 allowed-smsc = id3,id_op1
 
 smsc-id = id4
 allowed-smsc = id4,id_op2
 
 smsc-id = id5
 allowed-smsc = id5,id_op2
 
 etc...
 
 Note there is no smsc defined with smsc-id=id_op1 nor id_op2 in config file.
 
 When sending the messages I use smsc-id=id_op1 or id_op2 into url so
 kannel load-balance through the smsc of corresponding operator and
 send the message. This works fine until I restart kannel.
 
 After kannel reset, All QUEUED messages are sent through ONLY ONE  of
 the smsc without load-balancing between smsc even though there are
 hundreds of queued messages; however if, at the same time, I send
 messages to any of the id_op1 or id_op2, this new messages are
 correctly load-balanced between smsc-at
 
 I use:
 
 Kannel bearerbox version `1.4.3'. Build `Feb 13 2009 17:32:59',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-13)'. System Linux, release
 2.6.20-1.2962.fc6, version #1 SMP Tue Jun 19 19:27:14 EDT 2007,
 machine i686.  IP 10.10.5.2. Libxml version 2.6.29. Using OpenSSL
 0.9.8b 04 May 2006. Compiled with MySQL 5.0.27, using MySQL 5.0.27.
 Using native malloc.
 
 
 Any ideas?
 
 
 Regards
 
 Alvaro
 
 
 
 
 
 
 
 
 
 
 
 
 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.NET www.smsglobal.com.mx y
 www.pravcom.com
 
 
 



Re: Kannel not load balancing after restart and messages get stuck in queue

2009-03-10 Thread seikath
Its a bug then, i think it should be old sql issue in the source related to 
initiating the dlr db connection
it should be executed once right after the startup

an idea for debugging :
wait for the unsent messages to appear, stop the kannel
dump the table , drop/recreate it, the start the kannel
send single sms, then inject the dump
the results should point there to search .. ?

have to say i have similar issues with sqlbox and some chinese/dont know the 
brand smpp smsc
time to time messages are stuck in the dlr table, and i need to restart kannel,
i see routing error in the kannel logs when this issue appears.
so its related to non usual for kannel responce from the smsc by my opinion.

my work arround : i stop the kannel daemon, run a script to regenerate the 
messages from the db
i truncate the table and then i start the kannel and execute the resulting 
script created before hand ...

fgrep kannel logs for errors ..

wish you luck with this

Alvaro Cornejo wrote:
 No, I'm using mysql for dlr storage since otherwise dlr are lost on
 kannel restart
 
 |-|
 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, Mar 10, 2009 at 8:15 PM, seikath seik...@gmail.com wrote:
 Hi,

 I am not aware of the store_tools.
 Anyway, I assume you use default kannel store file
 instead of db dlr storage, correct ?



 Alvaro Cornejo wrote:
 Hi List


 I've found the following 2 isues:

 1) I have several modems for the same operators 10 for op1 and 5 for
 op2. For some reason, some messages get stuck into kannel queue and
 are not sent to smsc without restarting kannel. I've used Alex
 store_tools and verify messages are in queue. All messages are sent
 using the same code and use AT-SMSCs.

 2) When I restart kannel QUEUED messages are sent  through only one
 at-smsc even if messages have a destination smsc-id specified in
 sendsms url call

 This is an snippet of the config I have:

 smsc-id = id1
 allowed-smsc = id1,id_op1

 smsc-id = id2
 allowed-smsc = id2,id_op1

 smsc-id = id3
 allowed-smsc = id3,id_op1

 smsc-id = id4
 allowed-smsc = id4,id_op2

 smsc-id = id5
 allowed-smsc = id5,id_op2

 etc...

 Note there is no smsc defined with smsc-id=id_op1 nor id_op2 in config file.

 When sending the messages I use smsc-id=id_op1 or id_op2 into url so
 kannel load-balance through the smsc of corresponding operator and
 send the message. This works fine until I restart kannel.

 After kannel reset, All QUEUED messages are sent through ONLY ONE  of
 the smsc without load-balancing between smsc even though there are
 hundreds of queued messages; however if, at the same time, I send
 messages to any of the id_op1 or id_op2, this new messages are
 correctly load-balanced between smsc-at

 I use:

 Kannel bearerbox version `1.4.3'. Build `Feb 13 2009 17:32:59',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-13)'. System Linux, release
 2.6.20-1.2962.fc6, version #1 SMP Tue Jun 19 19:27:14 EDT 2007,
 machine i686.  IP 10.10.5.2. Libxml version 2.6.29. Using OpenSSL
 0.9.8b 04 May 2006. Compiled with MySQL 5.0.27, using MySQL 5.0.27.
 Using native malloc.


 Any ideas?


 Regards

 Alvaro












 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.NET www.smsglobal.com.mx y
 www.pravcom.com




 



Re: setup Kannel Mac OSX 10.4, Samba 75 Modem, daemon + parachute

2009-03-05 Thread seikath
regarding the MODEM implementation as SMSC for production invironment:
in general the mobile signal strength of a GMS/other modem could be extracted 
via AT commands
please keep in mind that once the modem is binded to kannel as smsc, it will 
not respond to external AT commands.
So its better FIRST to set the pin, then to check the signal and AFTER THAT in 
case the result is acceptable,
to proceed with the kannel startup

then, its very handy to monitor the log files for errors indicating the mobile 
network failure.
in 99% of the cases the signal will be back, but in the rest 1% the reason is 
not a technical one.
for example some mobile operators deactivate SIM cards after a time, in case 
they have no MO activity.
OR, your credit is OVER.. :) life sucks 

so plan the project and calculate the possible failures ... it will save you 
lots of time

cheers


Nikos Balkanas wrote:
 Hi,
 
 Please see inlined answers. For all answers check relevant info in the
 latest userguide.
 
 
 - Original Message - From: Jason Higbee
 ja...@covalentglobal.org
 To: users@kannel.org
 Sent: Thursday, March 05, 2009 6:43 PM
 Subject: setup Kannel Mac OSX 10.4, Samba 75 Modem, daemon + parachute
 
 
 Users,

 I'm planning a project so I am looking for advice and corrections on
 what I think Kannel can do.

 I have:

 Mac OS X 10.4.11
 Samba 75 (Siemens MC75) USB modem with the modem scripts
 - it can connect with another SMSC program on port ../tty.usbmodem1B11
 or ../cu.usbmodem1B11 (not sure the difference but both seem to work)
 I have compiled Kannel 1.4.2 on my Mac but haven't properly configured
 and used it as a SMSC to send and receive messages. I plan on
 recompling with Kannel 1.4.3 as the bug report suggests.
 I also have php scripts setup to receive the HTTP GET requests.
 
 There seems to be a confusion here. I presume you refer to DLRs (SMS
 delivery confirmations). Otherwise kannel doesn't have php builtin and
 can only use php to send HTTP requests (Push) .


 Here's what I  need Kannel to do:
 (1) forward the received messages through a HTTP GET across the internet;
 
 Yes, through sms-service.
 
 (2) to run as a Mac daemon so I can sleep the computer and it will
 still run.
 
 Mac is Unix. I imagine that anything running unattented will also run in
 sleep mode. This is feature in Unix systems for the past 30 years
 (daemons).
 
 (3) to tell me the signal strength of the modem (i.e. how many 'bars'
 so I know I'm not in a deadzone);
 
 Dunno. Maybe someone else can help. But this is not strictly a kannel
 issue. If the modem gets garbled messages, kannel cannot help (GIGO).
 
 (4) automatically restart itself if it loses connection to modem (I
 believe this is called parachute mode);
 
 No. It will restart only if process panics. But not to worry. It has a
 queue. If it looses connection to an SMSc, this SMSc is marked inactive.
 Other SMSc connections can pickup the traffic. In addition, kannel will
 try to reconnect to the inactive SMSc, according parameters set in the
 configuration.
 
 (5) and store messages received locally in a database (I believe this
 done through an addon called sqlbox; I use MAMP for a local instance
 of MySQL but would use anything that would work with this system).
 
 I don't know MAMP, but yes, you can do that with sqlbox. Other embedded
 choices are controlled through store-type paramater in core
 configuration and are file or spool (directory).
 
 So I am hoping Kannel can hit a home run and do all that! Please
 correct me if I'm wrong and point me in the right direction on these 5
 things  to create this Kannel system.

 Thanks.

 
 Best of luck,
 Nikos
 
 



Re: Dlr warning: Couldnot parse DLR string sscanf way,fallback to old way. Please report!

2009-03-03 Thread seikath
Hi,

Its NOT a critical issue,
i believe its something related to a particular smsc settings

in case you have time and no critical DLR involved services,
you may try to change msg-id-type value of this smsc account


cheers


Alvaro Cornejo wrote:
 Hi
 
 I'm receiving the following error in my SMPP log:
 
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783] handle_pdu, got DLR
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Couldnot
 parse DLR string sscanf way,fallback to old way. Please report!
 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: Looking for DLR
 smsc=telcel_sc3783, ts=1236113516, dst=MiSender, type=1
 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: SELECT mask, service, url,
 source, destination, boxc FROM tblkannel_dlr WHERE
 smsc='telcel_sc3783' AND ts='1236113516';
 2009-03-03 14:52:20 [6373] [6] DEBUG: Found entry, row[0]=31,
 row[1]=playsms,
 row[2]=http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%dslid=2854200uid=10smsc=%isender_id=MiSender,
 row[3]=0, row[4]=525527298936 row[5]=
 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: created DLR message
 for URL 
 http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%dslid=2854200uid=10smsc=%isender_id=MiSender
 2009-03-03 14:52:20 [6373] [6] DEBUG: removing DLR from database
 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: DELETE FROM tblkannel_dlr
 WHERE smsc='telcel_sc3783' AND ts='1236113516' LIMIT 1;
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Sending PDU:
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP PDU 0x9c54f10 dump:
 
 
 What is this?
 
 Regards
 
 Alvaro
 
 



Re: Dlr warning: Couldnot parse DLR string sscanf way,fallback to old way. Please report!

2009-03-03 Thread seikath
YES, you are right here, its not msg-id-type related,

Could you paste the PDU data as well ?

anyway,
take a look at http://doxygen.kannel.org/de/dfe/smsc__smpp_8c.html
line 01193
I assume the DLR string contains additional data,
I have experienced similar behavior with the some customized SMSC DLR, may be 
like Clickatell SMSC

usual DLR string looks like:
r...@dl360-1.seikath.net:[Wed Mar 04 01:00:23]:[/opt/kannel/logs]$ tail  
access.log | sed '/Receive DLR/!d' | sed '$,$!d'
2009-03-04 01:00:32 Receive DLR [SMSC:sir] [SVC:SANTA] [ACT:] [BINF:] 
[from:1916] [to:+359885100407] [flags:-1:-1:-1:-1:1] [msg:122:id:0062034476 
sub:001
dlvrd:001 submit date:0903040100 done date:0903040100 stat:DELIVRD err:000 
text:  ., 1 SMS  ] [udh:0:]

So, check the dlr string for additional data etc.

but again, its not critical as yours DLR are being processed.



Alvaro Cornejo wrote:
 Hi
 
 This is my smpp setup. msg-type is set to 1 because I get msg id in Hex
 and I send it in dec. So I think it is the correct value.
 
 group = smsc
 smsc = smpp
 smsc-id = telcel_sc3783
 host = a.b.c.d
 port = 8808
 transceiver-mode= true
 smsc-username   = user
 smsc-password   = pass
 ##throughput  = 10
 msg-id-type = 1
 system-type = smpp
 dest-addr-ton   = 2
 dest-addr-npi   = 1
 source-addr-ton = 2
 source-addr-npi = 1
 log-level   = 0
 log-file= /var/log/kannel/sc3783.log
 allowed-smsc-id = sc3783
 
 Other ideas??
 
 
 
 On Wed, 2009-03-04 at 00:32 +0200, seikath wrote:
 Hi,

 Its NOT a critical issue,
 i believe its something related to a particular smsc settings

 in case you have time and no critical DLR involved services,
 you may try to change msg-id-type value of this smsc account


 cheers


 Alvaro Cornejo wrote:
 Hi

 I'm receiving the following error in my SMPP log:

 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783] handle_pdu, got 
 DLR
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Couldnot
 parse DLR string sscanf way,fallback to old way. Please report!
 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: Looking for DLR
 smsc=telcel_sc3783, ts=1236113516, dst=MiSender, type=1
 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: SELECT mask, service, url,
 source, destination, boxc FROM tblkannel_dlr WHERE
 smsc='telcel_sc3783' AND ts='1236113516';
 2009-03-03 14:52:20 [6373] [6] DEBUG: Found entry, row[0]=31,
 row[1]=playsms,
 row[2]=http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%dslid=2854200uid=10smsc=%isender_id=MiSender,
 row[3]=0, row[4]=525527298936 row[5]=
 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: created DLR message
 for URL 
 http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%dslid=2854200uid=10smsc=%isender_id=MiSender
 2009-03-03 14:52:20 [6373] [6] DEBUG: removing DLR from database
 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: DELETE FROM tblkannel_dlr
 WHERE smsc='telcel_sc3783' AND ts='1236113516' LIMIT 1;
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Sending PDU:
 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP PDU 0x9c54f10 dump:


 What is this?

 Regards

 Alvaro


 
 



Re: Bulk sms

2009-02-20 Thread seikath
you USE the sendsms URL of Kannel,
yes it is possible.

narendra reddy wrote:
 HI All,
 
   HOW we can send bulk messages from the HTTP url.and can i add
 two text messages in the same url for one message to one number and
 another messages to another messages .it  is possible.
 
 -- 
 Best Regards,
 
 



Re: mysql

2009-02-18 Thread seikath
hi!!

in short, as we have mentioned several times, the dlr table is used to store 
the queue of messages
NOT sent to the SMSC. So once sent, the cooresponding dlr table record of a 
particular messages is DELETED.

In short, you should have EMPTY dlr table most of the time, in case your smsc 
connection is stable.

In case you want to store the DELVERY STATUSES of e SENT massage, you need 
something MORE to be done.
simple example:
needed daemons:
A db server of your choice, db table with a design according to your needs.
FIRST READ twice this manual, THEN ask what is the db design.

Web server, with script handling GET requests.
the script, in short to name it get.dlr.status.crap, will get the HTTP GET 
request values and will store them in
the db you have created.
NOW, WHAT info may Kannel provide for you ?
read here,
http://kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3607
Table 6-9. Parameters (Escape Codes)

in a view to make kannel feed the script with info about a sent massage,
you HAVE TO SET the dlr-mask more than 1:
why ? read bellow a quotation from the manual

dlr-mask
number (bit mask)Optional. Request for delivery reports with the state 
of the sent message. The value is a bit mask composed of: 1: Delivered to 
phone, 2:
Non-Delivered to Phone, 4: Queued on SMSC, 8: Delivered to SMSC, 16: 
Non-Delivered to SMSC. Must set dlr-url on sendsms-user group or use the 
dlr-url CGI variable.

so WHEN you know what info do you want from the SMSC reports,
you HAVE to SET unique dlr-url for each message
example:
http://localhost/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=3dbbe751d578416708726402f1866c5ccharset=%Ckannel_id=%I;
how come this is a unique dlr-url ?
because the smsID you create is unique for your system, i.e. each time you call 
the sendsms with another value for the dlr-url
ok NOW
you URLENCODE the value of the dlr-url when you compose the sendsms url

http://localhost:13005/cgi-bin/sendsms?username=pyropassword=pyrofrom=to=91971236987text=Test%20Messagecharset=UTF-16BEmclass=2coding=1pid=0dlr-mask=31
dlr-url=http%3A%2F%2Flocalhost%2Fdlr.pgsql.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D3dbbe751d578416708726402f1866c5c%26charset%3D%25C%26kannel_id%3D%25I

So, now WHEN the SMSC reports a status change of the SENT sms with id  
3dbbe751d578416708726402f1866c5c,
Kannel will parse the dlr-url and will initiate HTTP GET request at the dlr-url 
with the values received
from the SMSC

HERE you use your proficient skills in web and database programming and 
administration.
the called dlr.pgsql.php script could perform simple sql injection, or another 
more complicated task.

So again

FORGET about the dlr table used by kannel



pandu reddy wrote:
  hi !! 
 
 i'm using kannel and all works well(connection to the
 simulator(smpp), sms sending and receiving), but
 though i put the mysql storage i  find the sms
 in the table  for only  submit_sm.  send the messages through http we can set 
 the dlr-mask value.but how we can set a
 
 dlr_mask value for for deliver_sm.the deliver_sm messages will come through 
 simulator.So how we can inserted deliver_sm messages in table . 
 
  i want some  more fields in the  mysql dlr table like 
 message ,msg_type,date ,submit_time fields  in a one table . 
 
 is it possible?. i created in message  field in table test with simulator it 
 showing *zero* in the table.and added msg_type also it is also same 
 /_*ZERO*_/ in
  the table.how i can set this two parameters in  mysql dlr table.can i add 
 any fields in the config file.
 
 
  i am using below url for submit messages 
   
 http://localhost:13005/cgi-bin/sendsms?username=pyropassword=pyrofrom=to=91971236987text=Test%20Messagecharset=UTF-16BEmclass=2coding=1pid=0dlr-mask=31
  
 http://localhost:13005/cgi-bin/sendsms?username=pyropassword=pyrofrom=to=91971236987text=Test%20Messagecharset=UTF-16BEmclass=2coding=1pid=0dlr-mask=31
 
   
with this url how we can set dlr-mask value for 
 deliver_sm.wat is the dlr_mask value for SMPPSimulator.
 
 
 please help me 
 Thanks in Advance.
 
 Best Regards,
 



Re: [Q] Kannel Wiki

2009-02-17 Thread seikath

Hi Michel,

well, in short, go for it
we have talked about several times in the years
no result to provide efficient help so far :)

anyway, it a fact that we need such knowledge aggregation point for real.
I will support the idea, as at first time we could just extract
some quite helpful articles directly from the mail lists archives ..

cheers



Michael Bochkaryov wrote:

Hi dear All,

I understand that this question discussed here at least two times last year.
Anyway I'll try to suggest to launch wiki for Kannel related questions :-)

There are a lot of typical questions discussed in mailing list for a
long time and wiki may be more suitable way to explain such things.
Also wiki may be used as structured storage for information about
Kannel and related things like SMS, WAP, etc.

Of course, I can help with wiki engine installation and configuration
if necessary.
AFAIR DokuWiki installation already was available on wiki.kannel.org,
but now it's default page by nginx.





Re: Narendra

2009-02-15 Thread seikath

1. Do not mail dev list
2. Read the users@kannel.org list archives because the solution is there

IF you just need someone to do this for you,
mail commercial list.



narendra reddy wrote:



--  Hi ,
 
 
 from past two weeks i am strucking with database part.my messages 
are not inserted in my mysql table.can anybody suggest me in this 
issue.or any body please send me to config file .pls help me in this issue.
 
Best Regards,

 Reddy.
 




Re: Narendra

2009-02-15 Thread seikath

something more:

after reading the dev list,
i set your mail and the name as junk

cheers

seikath wrote:

1. Do not mail dev list
2. Read the users@kannel.org list archives because the solution is there

IF you just need someone to do this for you,
mail commercial list.



narendra reddy wrote:



--  Hi ,
 
 
 from past two weeks i am strucking with database part.my messages 
are not inserted in my mysql table.can anybody suggest me in this 
issue.or any body please send me to config file .pls help me in this 
issue.
 
Best Regards,

 Reddy.
 








  1   2   >