Re: Statistics Sent / Received

2005-05-02 Thread Mohamed Sadok MOUHA




Hi Alejandro,



Thank you. I think that's the only solution available right now.

Do you have a sample of the perl script?



Thanks again

-

Mohamed



Le lun 02/05/2005 à 18:18, Alejandro Ramirez a écrit :

Im using the access log file... it works just fine. Im working a on a simple perl script using File::Tail which allows me to do billing to an SQL Server (using freetds..) in real time. Just try to set the access.log file to a more standard format (CSV compatible works well..).

It is really on my wish the CDR feature for Kannel!!


Good Luck!

Alejandro

-- Original Message --
From: Mohamed Sadok MOUHA <[EMAIL PROTECTED]>
Date:  02 May 2005 10:35:25 +0100

>Hi to all,
>
>I need to establish statistics for sent / received SMS messages for
>billing purposes. Any recommendation please? Right now I'm analyzing
>Kannel access log file, any tool to make this easier?
>
>Thanks,
>
>Sadok
>
>





-- 

	
	Mohamed Sadok MOUHA



Progress Engineering

Tel : +216 71 856 360

Fax : +216 71 856 820

WWW : http://www.progress.com.tn



Progress Engineering Dynamise LE WEB








Re: Correction for DLR_MYSQL issue for mass sending with AT modem

2005-05-02 Thread Stipe Tolj
info.ubichip IMAP wrote:
As has been required for many people,
please find here my corrections for the ts bug in mysql. I 'm not sure it is
the better way to publish correction, let me know if there is a another
place.
Correction are  very simple, "update/insert/delete" process are now based on
"smsc AND ts AND destination number", so there is no chance to retrieve the
same triplet, only if you want to smsspam a phone number !!!
I have still problem with modem for DLR success ratio (see my previous email
in mailing list ), I apprecaite a lot if someone make some improvement on
the smsc_at driver. Does someone have rewrite it ?
first of all, thanks for sending in "corrections".
We prefer to receive patches in 'diff -u' format as attachement (not inlined) to
the devel@ mailing list. Please prefix your subject with '[PATCH]'.
[Why? Simple. Because we don't want to get your full source file out of the mail
and get it 'diffed' on our own. Patch contributors should try to tend to keep
the ammount of work for the core developers minimal, so they are enlighted "the
easy way" that you patch does what it should do]. ;)
This way the developers are more likely to drop their eyes on your changes and
get a positive voting for commiting it to cvs.
Please also describe what functional logic change is implied and why.
Thanks in advance.
Stipe
mailto:stolj_{at}_wapme.de
---
Wapme Systems AG
Vogelsanger Weg 80
40470 Düsseldorf, NRW, Germany
phone: +49.211.74845.0
fax: +49.211.74845.299
mailto:info_{at}_wapme-systems.de
http://www.wapme-systems.de/
---



Re: Compatibility with MySQL v4.1.11 ?

2005-05-02 Thread Enver ALTIN
Hey,

On Mon, 2005-05-02 at 21:25 +0200, Stephane Rosa wrote:
> [emeanoc01:~/sources/gateway-1.4.0] (238) > rpm -qa | grep -i mysql 

This issue has been fixed a while ago by renaming all list_* functions
in gwlib to gwlist_*. Please use CVS HEAD. It's fairly stable.

-HTH
-- 
.O.
..O   Enver ALTIN   |   http://skyblue.gen.tr/
OOO   Software developer @ Parkyeri | http://www.parkyeri.com/


signature.asc
Description: This is a digitally signed message part


Correction for DLR_MYSQL issue for mass sending with AT modem

2005-05-02 Thread info.ubichip IMAP
As has been required for many people,

please find here my corrections for the ts bug in mysql. I 'm not sure it is
the better way to publish correction, let me know if there is a another
place.
Correction are  very simple, "update/insert/delete" process are now based on
"smsc AND ts AND destination number", so there is no chance to retrieve the
same triplet, only if you want to smsspam a phone number !!!

I have still problem with modem for DLR success ratio (see my previous email
in mailing list ), I apprecaite a lot if someone make some improvement on
the smsc_at driver. Does someone have rewrite it ?

Thanks a lot.





/* 
 * The Kannel Software License, Version 1.0
 *
 * Copyright (c) 2001-2004 Kannel Group
 * Copyright (c) 1998-2001 WapIT Ltd.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in
 *the documentation and/or other materials provided with the
 *distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *if any, must include the following acknowledgment:
 *   "This product includes software developed by the
 *Kannel Group (http://www.kannel.org/)."
 *Alternately, this acknowledgment may appear in the software itself,
 *if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Kannel" and "Kannel Group" must not be used to
 *endorse or promote products derived from this software without
 *prior written permission. For written permission, please
 *contact [EMAIL PROTECTED]
 *
 * 5. Products derived from this software may not be called "Kannel",
 *nor may "Kannel" appear in their name, without prior written
 *permission of the Kannel Group.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * 
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Kannel Group.  For more information on
 * the Kannel Group, please see .
 *
 * Portions of this software are based upon software originally written at
 * WapIT Ltd., Helsinki, Finland for the Kannel project.
 */

/*
 * dlr_mysql.c
 *
 * Implementation of handling delivery reports (DLRs)
 * for MySql database
 *
 * Andreas Fink <[EMAIL PROTECTED]>, 18.08.2001
 * Stipe Tolj <[EMAIL PROTECTED]>, 22.03.2002
 * Alexander Malysh <[EMAIL PROTECTED]> 2003
*/

#include "gwlib/gwlib.h"
#include "gwlib/dbpool.h"
#include "dlr_p.h"


#ifdef HAVE_MYSQL
#include 

/*
 * Our connection pool to mysql.
 */
static DBPool *pool = NULL;

/*
 * Database fields, which we are use.
 */
static struct dlr_db_fields *fields = NULL;


static void mysql_update(const Octstr *sql)
{
int state;
DBPoolConn *pc;

#if defined(DLR_TRACE)
 debug("dlr.mysql", 0, "sql: %s", octstr_get_cstr(sql));
#endif

pc = dbpool_conn_consume(pool);
if (pc == NULL) {
error(0, "MYSQL: Database pool got no connection! DB update
failed!");
return;
}

state = mysql_query(pc->conn, octstr_get_cstr(sql));
if (state != 0)
error(0, "MYSQL: %s", mysql_error(pc->conn));

dbpool_conn_produce(pc);
}

static MYSQL_RES* mysql_select(const Octstr *sql)
{
int state;
MYSQL_RES *result = NULL;
DBPoolConn *pc;

#if defined(DLR_TRACE)
debug("dlr.mysql", 0, "sql: %s", octstr_get_cstr(sql));
#endif

pc = dbpool_conn_consume(pool);
if (pc == NULL) {
error(0, "MYSQL: Database pool got no connection! DB update
failed!");
return NULL;
}

state = mysql_query(pc->conn, octstr_get_cstr(sql));
if (state != 0) {
error(0, "MYSQL: %s", mysql_error(pc->conn));
} else {
result = mysql_store_result(pc->conn);
}

dbpool_conn_produce(pc);

return result;
}

static void dlr_mysql_shutdown()
{
   

Compatibility with MySQL v4.1.11 ?

2005-05-02 Thread Stephane Rosa

Hi,

I have an issue in compiling MySQL support
on RedHat SE. I have a fully functional
installation of MySQL v4 as per :

[emeanoc01:~/sources/gateway-1.4.0]
(238) > rpm -qa | grep -i mysql
MySQL-shared-standard-4.1.11-0.rhel3
[emeanoc01:~/sources/gateway-1.4.0]
(239) > mysql_config
Usage: /usr/local/mysql/bin/mysql_config
[OPTIONS]
Options:
       
--cflags         [-I/usr/local/mysql/include -mcpu=pentiumpro]
       
--include        [-I/usr/local/mysql/include]
       
--libs           [-L/usr/local/mysql/lib -lmysqlclient
-lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files
-lnss_dns -lresolv]
       
--libs_r         [-L/usr/local/mysql/lib -lmysqlclient_r
-lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv
-lc -lnss_files -lnss_dns -lresolv]
       
--socket         [/tmp/mysql.sock]
       
--port           [3306]
       
--testuser       [anonymous]
       
--version        [4.1.11]
       
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lpthread -lcrypt -lnsl
-lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns
-lresolv -lrt]

The ./configure stage works perfect.
But then the make has an issue:

[emeanoc01:~/sources/gateway-1.4.0]
(240) > gmake
==
gcc -D_REENTRANT=1 
-I. 
-Igw -D_XOPEN_SOURCE=600
-D_BSD_SOURCE 
-I/usr/kerberos/include 
-I/usr/include/libxml2 
-I/usr/include/openssl 
-I/usr/local/mysql/include/mysql

-o gw/dlr_mysql.o -c gw/dlr_mysql.c

==

gw/dlr_mysql.c:74:25: mysql/mysql.h:
No such file or directory
gw/dlr_mysql.c:109: syntax
error before '*' token
gw/dlr_mysql.c: In function
`mysql_select':
gw/dlr_mysql.c:112: `MYSQL_RES'
undeclared (first use in this function)
gw/dlr_mysql.c:112: (Each
undeclared identifier is reported only once
gw/dlr_mysql.c:112: for each
function it appears in.)
gw/dlr_mysql.c:112: `result'
undeclared (first use in this function)
gw/dlr_mysql.c: In function
`dlr_mysql_get':
gw/dlr_mysql.c:170: `MYSQL_RES'
undeclared (first use in this function)
gw/dlr_mysql.c:170: `result'
undeclared (first use in this function)
gw/dlr_mysql.c:171: `MYSQL_ROW'
undeclared (first use in this function)
gw/dlr_mysql.c:171: syntax
error before "row"
gw/dlr_mysql.c:192: `row'
undeclared (first use in this function)
gw/dlr_mysql.c: In function
`dlr_mysql_messages':
gw/dlr_mysql.c:253: `MYSQL_RES'
undeclared (first use in this function)
gw/dlr_mysql.c:253: `result'
undeclared (first use in this function)
gw/dlr_mysql.c:254: `MYSQL_ROW'
undeclared (first use in this function)
gw/dlr_mysql.c:254: syntax
error before "row"
gw/dlr_mysql.c:269: `row'
undeclared (first use in this function)

I thought that the issue was just because
the mysql/ directory was hardcoded
in the include call, so I did a quick
fix but it still doesn't work after that with other
compilation issues :

[emeanoc01:~/sources/gateway-1.4.0]
(241) > cd /usr/local/mysql/include; ln -s . mysql
[emeanoc01:~/sources/gateway-1.4.0]
(242) > gmake
==
gcc -D_REENTRANT=1 
-I. 
-Igw -D_XOPEN_SOURCE=600
-D_BSD_SOURCE 
-I/usr/kerberos/include 
-I/usr/include/libxml2 
-I/usr/include/openssl 
-I/usr/local/mysql/include/mysql

-o gw/dlr_mysql.o -c gw/dlr_mysql.c

==

In file included from /usr/local/mysql/include/mysql/mysql/mysql.h:62,
       
         from gw/dlr_mysql.c:74:
/usr/local/mysql/include/mysql/mysql/my_list.h:32:
conflicting types for `list_delete'
gwlib/list.h:179: previous
declaration of `list_delete'
gmake: *** [gw/dlr_mysql.o]
Error 1

Anybody could help me on that ? Thanks!
Stephane



Re: error bind failed

2005-05-02 Thread Yasser Sultan
hi
Thanks for the reply
I did a fresh install of kannel on another system running Fedora core 2 but 
I am still getting this error ?

and there isn't any orther box ruuning
I googled a bit and may be someome can help by reading these messages
http://forums.fedoraforum.org/archive/index.php/t-26887.html
Regards
Yasser

From: "Rodrigo Cremaschi" <[EMAIL PROTECTED]>
To: "Yasser Sultan" <[EMAIL PROTECTED]>, 
Subject: Re: error bind failed
Date: Mon, 2 May 2005 14:37:45 -0300
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox) already 
running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - From: "Yasser Sultan" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I am 
using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 
(gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 
(gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration 
shows mode   mtype 
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem 
definitio   ns from 

2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) maps to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, 
quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) term inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 
(gw/bb_boxc.c:sms_to_smsboxes) ma ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) 
maps t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) 
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0x70916

//config file/
group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
# SERVICES
group = sms-service
keyword = nop
text = "its working yarr"
# there should be default always
group = sms-service
keyword = default
text = "No service specified"
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: Multiple connections to single SMSC

2005-05-02 Thread David Abbott
There's also the issue of DLR handling - isn't the good thing about using
different username and password is that at least it is a failsafe way of
getting DLRs back to the sending box, otherwise they'll end up getting
rejected by Kannel ?
Me too, two connections to the same SMPP, both over the same VPN link
to the same IP and port, using different username and password and,
knowing the market, I suppose it's to the same
three-letter-branded-cellco than Rodrigo does ;)
I don't know why do they want to do it that way (with other cellcos,
we usually have one SMPP link and route many shortcut numbers over the
same link without the overhead of mantaining many links for the same
provider) but since they are the ones writing the rules we can't argue
that much about it anyway and so far it worked ok for us.
Regarding question A, if you want to connect many boxes to the same
SMSC, you'll have to keep in mind that:
1. You cannot run more than one bearerbox for the same setup on the
same machine. The bearerbox connecting to the SMSC cannot be
replicated without installing a new copy of Kannel (maybe you could
install many copies of kannel and assign them different ports for the
bearerbox, I suppose... never tried it)
2. You could run many instances of kannel (bearerboxes) on different
machines and configure each one to make an http request to a single
web server. I think you _should_ be able to connect them to the same
SMSC, as long as the other party allows your IP's to connect.
Regards,
On 4/27/05, Rodrigo Cremaschi <[EMAIL PROTECTED]> wrote:
> Hi Michael:
>
>I can answer to your (B) question with a YES. I have 3 SMPP 
connections
> to a single SMSC, same IP, same port, but different username/password 
for
> each one of them.
>
>Regards,
>
> Rodrigo Cremaschi.
>
> - Original Message -
> From: "Michael Bildner" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, April 26, 2005 6:23 PM
> Subject: Multiple connections to single SMSC
>
> >I am not too familiar with the underlying protocols,
> > but is it possible to make multiple connections to a
> > single SMSC (mainly with the SMPP protocol).
> >
> > The two scenarios that I'm concerned with are:
> > (A) Multiple boxes each running a single SMS gateway
> > and each gateway wants to connect to the same SMSC.
> > (B) Single box running a gateway that wants to make
> > multiple connections to the same SMSC (perhaps using
> > different username/passwords).
> >
> > Are these scenarios possible?
> > Thanks.
> > Michael
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>

--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters




Re: external dlr-storage to Mysql couldn't be set

2005-05-02 Thread Alexander Malysh
Hi,
just try latest cvs snapshot...
Thanks,
Alex
chouaieb ben Smail schrieb:
hi again, 
First of all, i'd like to thank you for your
explanation and support, Mr Sadok, but the external
dlr-storage (Mysql) isn't yet set when compiling since
an other error is generated (as you could see below)
even after changing the occurence of list_delete to
gw_list_delete in the specified *.c,*.h from
directories (/gwlib, /gw):

libwap.a(wsp_push_client.o): In function
`push_client_machine_destroy':
wsp_push_client.o(.text+0xa62): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`machine_destroy':
wsp_session.o(.text+0x348a): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_method_event':
wsp_session.o(.text+0x45e5): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_push_event':
wsp_session.o(.text+0x4aac): undefined reference to
`list_delete_equal'
libwap.a(wtp_init.o): In function
`init_machine_destroy':
wtp_init.o(.text+0x358): undefined reference to
`list_delete_equal'
libwap.a(wtp_resp.o)(.text+0x2032): more undefined
references to `list_delete_equal' follow
collect2: ld a retourné 1 code d'état d'exécution
make: *** [gw/wapbox] Erreur 1
 So, i ask you kindly if you could propose me a
solution for that, 
All the best,

chouaieb ben smail 



	
		
__ 
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/





Re: error bind failed

2005-05-02 Thread Rodrigo Cremaschi
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox) already 
running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - 
From: "Yasser Sultan" <[EMAIL PROTECTED]>
To: 
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I am 
using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 
(gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 
(gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration 
shows mode   mtype 
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem 
definitio   ns from 

2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) maps 
to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, 
quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) term 
inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 
(gw/bb_boxc.c:sms_to_smsboxes) ma 
ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) 
maps t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) 
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0x70916

//config file/
group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
# SERVICES
group = sms-service
keyword = nop
text = "its working yarr"
# there should be default always
group = sms-service
keyword = default
text = "No service specified"
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: Statistics Sent / Received

2005-05-02 Thread Alejandro Ramirez

Im using the access log file... it works just fine. Im working a on a simple 
perl script using File::Tail which allows me to do billing to an SQL Server 
(using freetds..) in real time. Just try to set the access.log file to a more 
standard format (CSV compatible works well..).

It is really on my wish the CDR feature for Kannel!!


Good Luck!

Alejandro

-- Original Message --
From: Mohamed Sadok MOUHA <[EMAIL PROTECTED]>
Date:  02 May 2005 10:35:25 +0100

>Hi to all,
>
>I need to establish statistics for sent / received SMS messages for
>billing purposes. Any recommendation please? Right now I'm analyzing
>Kannel access log file, any tool to make this easier?
>
>Thanks,
>
>Sadok
>
>



external dlr-storage to Mysql couldn't be set

2005-05-02 Thread chouaieb ben Smail
hi again, 
First of all, i'd like to thank you for your
explanation and support, Mr Sadok, but the external
dlr-storage (Mysql) isn't yet set when compiling since
an other error is generated (as you could see below)
even after changing the occurence of list_delete to
gw_list_delete in the specified *.c,*.h from
directories (/gwlib, /gw):


libwap.a(wsp_push_client.o): In function
`push_client_machine_destroy':
wsp_push_client.o(.text+0xa62): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`machine_destroy':
wsp_session.o(.text+0x348a): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_method_event':
wsp_session.o(.text+0x45e5): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_push_event':
wsp_session.o(.text+0x4aac): undefined reference to
`list_delete_equal'
libwap.a(wtp_init.o): In function
`init_machine_destroy':
wtp_init.o(.text+0x358): undefined reference to
`list_delete_equal'
libwap.a(wtp_resp.o)(.text+0x2032): more undefined
references to `list_delete_equal' follow
collect2: ld a retourné 1 code d'état d'exécution
make: *** [gw/wapbox] Erreur 1


 So, i ask you kindly if you could propose me a
solution for that, 
All the best,

chouaieb ben smail 







__ 
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/



error bind failed

2005-05-02 Thread Yasser Sultan
hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I am using 
fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 
(gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 
(gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration shows 
mode   mtype 
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem 
definitio   ns from 
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) 
mapsto pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, 
quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) 
term   inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 
(gw/bb_boxc.c:sms_to_smsboxes) ma   
ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) 
maps t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) 
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0x70916

//config file/
group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
# SERVICES
group = sms-service
keyword = nop
text = "its working yarr"
# there should be default always
group = sms-service
keyword = default
text = "No service specified"
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




RE: DLR success issue

2005-05-02 Thread info.ubichip IMAP
Did someone remember about FAQ about keepalive and sim buffering FAQ ?

Regards

-Original Message-
From: Aarno Syvanen [mailto:[EMAIL PROTECTED]
Sent: lundi 2 mai 2005 09:51
To: info.ubichip IMAP
Cc: users@kannel.org
Subject: Re: DLR success issue


Are numbers you are using allocated ? Non-allocated numbers would
explain your failure ratio.

Aarno

On 29.4.2005, at 14:47, info.ubichip IMAP wrote:

> Hello,
>
> I'm running Kannel 1.4.2 (and mySQL) with a pool of Nokia 12 modems. 
> I'm
> using this gateway for sending sms.
> I got some troubles when I have some mass sending, the success (SMS 
> that
> arrive successful on the handset) ratio is not constant and some time 
> is
> under 30% (usually it come to 75/85%).
>
>
> example :
> Total MT = 1297
> Total MO = 1990
> Dont
> _
> Total MO NACK = 58
> Total MO Non Delivered = 27
> Total MO ACK = 1240
> Total MO Buffered = 146
> Total MO Success = 519
>
> I make a correction in the kannel code in order to remove the bug with
> multiple senders and the limitation of 255 ts : the DLR are updated 
> based on
> ts AND destination AND smsc. I could provide this code for people who 
> want
> it.
>
> My concern is the actual ratio is not so good and I don't know why.
>
> here is my modem.cong and the extract of the setup of kannel.conf for 
> the
> smsc AT.
>
> Does someone have idea about the keepalive paramaters (I setup it to 6 
> sec)?
> What about sim buffering ?
>
> Thanks for your help.
>
>
> group = smsc
> smsc = at
> smsc-id = Titi2
> allowed-smsc-id = toto;titi2
> #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
> nokiaphone | ericsson
> modemtype = nokia12
> device = /dev/ttyS7
> pin = 
> # validity period is 167 (24 hours+ x jours)
> validityperiod = 169
> # ping du modem toutes les 60s
> keepalive = 6
> # numero de tel de ce GSM
> my-number = 00336
> #throughput = 2
> sim-buffering = true
> # pour ISO 8859-1
> #alt-charset = "ASCII"
>
>
>
>
> # Modems configuration
> #
> # Example and default values
> #
> # group = modems
> # id = "my-id"
> # name = "my-name"
> # detect-string = "MODEM"
> # detect-string2 = "" [Default]
> # init-string = "AT+CNMI=1,2,0,0,0" [Default]
> # speed = 9600 [Default]
> # enable-hwhs = "AT+IFC=2,2" [Default]
> # need-sleep = false [Default]
> # no-pin = false [Default]
> # no-smsc = false [Default]
> # sendline-sleep = 100 [Default, miliseconds]
> # keepalive-cmd = "AT" [Default]
> # broken = false [Default]
> # message-storage = "SM"
> # enable-mms = false [Default]
>
>
> # If modemtype=auto, try everyone and defaults to this one
> group = modems
> id = generic
> name = "Generic Modem"
>
> group = modems
> id = wavecom
> name = Wavecom
> detect-string = "WAVECOM"
>
> group = modems
> id = premicell
> name = Premicell
> detect-string = "PREMICEL"
> no-pin = true
> no-smsc = true
>
> group = modems
> id = siemens_tc35
> name = "Siemens TC35"
> detect-string = "SIEMENS"
> detect-string2 = "TC35"
> init-string = "AT+CNMI=1,2,0,1,1"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> need-sleep = true
>
> group = modems
> id = siemens_m20
> name = "Siemens M20"
> detect-string = "SIEMENS"
> detect-string2 = "M20"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> keepalive-cmd = "AT+CBC;+CSQ"
> need-sleep = true
>
> group = modems
> id = siemens_sl45
> name = "Siemens SL45"
> detect-string = "SIEMENS"
> #detect-string2 = "SL45"
> #init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
> init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
> keepalive-cmd = "AT+CBC;+CSQ"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> need-sleep = true
> #message-storage = "ME"
> message-storage = "SM"
>
> group = modems
> id = nokiaphone
> name = "Nokia Phone"
> detect-string = "Nokia Mobile Phone"
> need-sleep = true
> keepalive-cmd = "AT+CBC;+CSQ"
> enable-mms = true
>
> group = modems
> id = nokia12
> name = "Nokia 12"
> detect-string = "Nokia"
> need-sleep = true
> #keepalive-cmd = "AT+CBC;+CSQ"
> keepalive-cmd = "AT+CSQ"
> enable-mms = true
> # init-string = "AT+CNMI=2,2,0,1,1"
> init-string = "ATE0+CNMI=2,0,0,1,0"
> message-storage = "SM"
> no-pin =true
>
>
> group = modems
> id = sagem
> name = "Sagem"
> detect-string = "Sagem"
> need-sleep = true
> #keepalive-cmd = "AT+CBC;+CSQ"
> #enable-mms = true
> init-string = "AT+CNMI=2,0,0,1,0"
> enable-hwhs = "AT&k3"
> speed = 9600
> message-storage = "SM"
>
>
> group = modems
> id = wave2
> name = "wave2"
> detect-string = "WAVECOM"
> need-sleep = true
> keepalive-cmd = "AT+CBC;+CSQ"
> #enable-hwhs = "AT+IFC=2,2"
> #enable-mms = true
> init-string = "ATE0+CNMI=2,1,0,1,1"
> speed = 9600
> message-storage = "SM"
>
>
>
> group = modems
> id = falcom
> name = "Falcom"
> detect-string = "Falcom"
> no-smsc = true
>
> group = modems
> id = ericsson_r520m
> name = "Ericsson R520m"
> detect-string = "R520m"
> init-string = "AT+CNMI=3,2,0,0"
>
> group = modems
> id = ericsson_t68
> name = "Ericsson T68"
> detect-string = "T68"
> init-string = "AT+CNMI=3,3"
> keepalive-cmd = "AT+CB

Re : external dlr-storage to Mysql couldn't be set

2005-05-02 Thread Mohamed Sadok MOUHA




Hi,



you may change source code of Kannel and recompile it. Just modify any occurence of list_delete by gw_list_delete (in gw/*.c *.h and gwlib/*.c  *.h). 



@+

Sadok




external dlr-storage to Mysql couldn't be set

2005-05-02 Thread chouaieb ben Smail
hi,
i'm asking about why i couldnt't use the external DLR
storage (MySQL) in the core configuration, when i
execute the bearerbox with the config-file indicating
dlr-storage=mysql, the result is shown below: 

[EMAIL PROTECTED] gw]$ ./bearerbox -v 1 smstest.conf
2005-04-30 11:04:51 [6481] [0] INFO: Debug_lvl = 1,
log_file = , log_lvl = 0
2005-04-30 11:04:51 [6481] [0] PANIC: DLR: storage
type ''mysql'' is not supported!
2005-04-30 11:04:51 [6481] [0] PANIC:
./bearerbox(gw_panic+0x175) [0x80c9c9f]
2005-04-30 11:04:51 [6481] [0] PANIC:
./bearerbox(dlr_init+0x1ee) [0x805d296]
2005-04-30 11:04:51 [6481] [0] PANIC:
./bearerbox(main+0x18d) [0x805260b]
2005-04-30 11:04:51 [6481] [0] PANIC:
./bearerbox(__libc_start_main+0xa4) [0x420158d4]
2005-04-30 11:04:51 [6481] [0] PANIC:
./bearerbox(SSL_write+0x51) [0x8051699]

so i tried to reconfigure the gateway  
./configure --with-mysql
--with-mysql-dir=/var/lib/mysql
i have the following error in makefile (sorry there is
some words written in frensh, i gave translation
between "": 


Dans le fichier inclus à partir de " in the included
file from" 
/usr/include/mysql/mysql.h:62,
  à partir de "from" gw/dlr_mysql.c:74:
/usr/include/mysql/my_list.h:32: types conflictuels
pour "conflictuals types for" « list_delete »
gwlib/list.h:179: déclaration précédente de "previous
statement of" « list_delete »
make: *** [gw/dlr_mysql.o] Erreur 1

So could you help me for that i should do, how to
reconfigure the gateway...  

all the best thanx for your help,










__ 
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/



Statistics Sent / Received

2005-05-02 Thread Mohamed Sadok MOUHA




Hi to all,



I need to establish statistics for sent / received SMS messages for billing purposes. Any recommendation please? Right now I'm analyzing Kannel access log file, any tool to make this easier?



Thanks,



Sadok




opening HTML Pages in gateway

2005-05-02 Thread Yasser Sultan
Hi
I am runnig kannel wap gateway through the winwap browser over LAN
I have a question
What happens when we try to access a HTML (or something other than WML like 
PHP, ASP etc ) page through the kannel gateway ?what are the default 
settings for it ?

does it strip down the page content or does it simply refuse a connection ?
Thanks
Talk about Love/Friendship and get Relationship Advice at Latestngreatest 
Forums
http://www.latestngreatest.net/cgi-bin/Blah/Blah.pl/Blah.pl

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: DLR success issue

2005-05-02 Thread info.ubichip

What do you mean by allocated numbers?
Numbers are MSISDN in France, and so are dialing ones.

Could be other issue like sms class, or sim full?

Thanks for your heelp

- Message d'origine -
De: "Aarno Syvänen"<[EMAIL PROTECTED]>
Env: 02/05/05 09:51:28
À: "info.ubichip IMAP"<[EMAIL PROTECTED]>
Cc: "users@kannel.org"
Objet: Re: DLR success issue
  Are numbers you are using allocated ? Non-allocated numbers would
explain your failure ratio.

Aarno

On 29.4.2005, at 14:47, info.ubichip IMAP wrote:

> Hello,
>
> I'm running Kannel 1.4.2 (and mySQL) with a pool of Nokia 12 modems. 
> I'm
> using this gateway for sending sms.
> I got some troubles when I have some mass sending, the success (SMS 
> that
> arrive successful on the handset) ratio is not constant and some time 
> is
> under 30% (usually it come to 75/85%).
>
>
> example :
> Total MT = 1297
> Total MO = 1990
> Dont
> _
> Total MO NACK = 58
> Total MO Non Delivered = 27
> Total MO ACK = 1240
> Total MO Buffered = 146
> Total MO Success = 519
>
> I make a correction in the kannel code in order to remove the bug with
> multiple senders and the limitation of 255 ts : the DLR are updated 
> based on
> ts AND destination AND smsc. I could provide this code for people who 
> want
> it.
>
> My concern is the actual ratio is not so good and I don't know why.
>
> here is my modem.cong and the extract of the setup of kannel.conf for 
> the
> smsc AT.
>
> Does someone have idea about the keepalive paramaters (I setup it to 6 
> sec)?
> What about sim buffering ?
>
> Thanks for your help.
>
>
> group = smsc
> smsc = at
> smsc-id = Titi2
> allowed-smsc-id = toto;titi2
> #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
> nokiaphone | ericsson
> modemtype = nokia12
> device = /dev/ttyS7
> pin = 
> # validity period is 167 (24 hours+ x jours)
> validityperiod = 169
> # ping du modem toutes les 60s
> keepalive = 6
> # numero de tel de ce GSM
> my-number = 00336
> #throughput = 2
> sim-buffering = true
> # pour ISO 8859-1
> #alt-charset = "ASCII"
>
>
>
>
> # Modems configuration
> #
> # Example and default values
> #
> # group = modems
> # id = "my-id"
> # name = "my-name"
> # detect-string = "MODEM"
> # detect-string2 = "" [Default]
> # init-string = "AT+CNMI=1,2,0,0,0" [Default]
> # speed = 9600 [Default]
> # enable-hwhs = "AT+IFC=2,2" [Default]
> # need-sleep = false [Default]
> # no-pin = false [Default]
> # no-smsc = false [Default]
> # sendline-sleep = 100 [Default, miliseconds]
> # keepalive-cmd = "AT" [Default]
> # broken = false [Default]
> # message-storage = "SM"
> # enable-mms = false [Default]
>
>
> # If modemtype=auto, try everyone and defaults to this one
> group = modems
> id = generic
> name = "Generic Modem"
>
> group = modems
> id = wavecom
> name = Wavecom
> detect-string = "WAVECOM"
>
> group = modems
> id = premicell
> name = Premicell
> detect-string = "PREMICEL"
> no-pin = true
> no-smsc = true
>
> group = modems
> id = siemens_tc35
> name = "Siemens TC35"
> detect-string = "SIEMENS"
> detect-string2 = "TC35"
> init-string = "AT+CNMI=1,2,0,1,1"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> need-sleep = true
>
> group = modems
> id = siemens_m20
> name = "Siemens M20"
> detect-string = "SIEMENS"
> detect-string2 = "M20"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> keepalive-cmd = "AT+CBC;+CSQ"
> need-sleep = true
>
> group = modems
> id = siemens_sl45
> name = "Siemens SL45"
> detect-string = "SIEMENS"
> #detect-string2 = "SL45"
> #init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
> init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
> keepalive-cmd = "AT+CBC;+CSQ"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> need-sleep = true
> #message-storage = "ME"
> message-storage = "SM"
>
> group = modems
> id = nokiaphone
> name = "Nokia Phone"
> detect-string = "Nokia Mobile Phone"
> need-sleep = true
> keepalive-cmd = "AT+CBC;+CSQ"
> enable-mms = true
>
> group = modems
> id = nokia12
> name = "Nokia 12"
> detect-string = "Nokia"
> need-sleep = true
> #keepalive-cmd = "AT+CBC;+CSQ"
> keepalive-cmd = "AT+CSQ"
> enable-mms = true
> # init-string = "AT+CNMI=2,2,0,1,1"
> init-string = "ATE0+CNMI=2,0,0,1,0"
> message-storage = "SM"
> no-pin =true
>
>
> group = modems
> id = sagem
> name = "Sagem"
> detect-string = "S

Re: DLR success issue

2005-05-02 Thread Aarno Syvänen
Are numbers you are using allocated ? Non-allocated numbers would
explain your failure ratio.
Aarno
On 29.4.2005, at 14:47, info.ubichip IMAP wrote:
Hello,
I'm running Kannel 1.4.2 (and mySQL) with a pool of Nokia 12 modems. 
I'm
using this gateway for sending sms.
I got some troubles when I have some mass sending, the success (SMS 
that
arrive successful on the handset) ratio is not constant and some time 
is
under 30% (usually it come to 75/85%).

example :
Total MT = 1297
Total MO = 1990
Dont
_
Total MO NACK = 58
Total MO Non Delivered = 27
Total MO ACK = 1240
Total MO Buffered = 146
Total MO Success = 519
I make a correction in the kannel code in order to remove the bug with
multiple senders and the limitation of 255 ts : the DLR are updated 
based on
ts AND destination AND smsc. I could provide this code for people who 
want
it.

My concern is the actual ratio is not so good and I don't know why.
here is my modem.cong and the extract of the setup of kannel.conf for 
the
smsc AT.

Does someone have idea about the keepalive paramaters (I setup it to 6 
sec)?
What about sim buffering ?

Thanks for your help.
group = smsc
smsc = at
smsc-id = Titi2
allowed-smsc-id = toto;titi2
#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson
modemtype = nokia12
device = /dev/ttyS7
pin = 
# validity period is 167 (24 hours+ x jours)
validityperiod = 169
# ping du modem toutes les 60s
keepalive = 6
# numero de tel de ce GSM
my-number = 00336
#throughput = 2
sim-buffering = true
# pour ISO 8859-1
#alt-charset = "ASCII"

# Modems configuration
#
# Example and default values
#
# group = modems
# id = "my-id"
# name = "my-name"
# detect-string = "MODEM"
# detect-string2 = "" [Default]
# init-string = "AT+CNMI=1,2,0,0,0" [Default]
# speed = 9600 [Default]
# enable-hwhs = "AT+IFC=2,2" [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = "AT" [Default]
# broken = false [Default]
# message-storage = "SM"
# enable-mms = false [Default]
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true
group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true
group = modems
id = siemens_sl45
name = "Siemens SL45"
detect-string = "SIEMENS"
#detect-string2 = "SL45"
#init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
init-string = "AT+CNMI=1,2,2,2,1;+CMGF=0"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
#message-storage = "ME"
message-storage = "SM"
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true
group = modems
id = nokia12
name = "Nokia 12"
detect-string = "Nokia"
need-sleep = true
#keepalive-cmd = "AT+CBC;+CSQ"
keepalive-cmd = "AT+CSQ"
enable-mms = true
# init-string = "AT+CNMI=2,2,0,1,1"
init-string = "ATE0+CNMI=2,0,0,1,0"
message-storage = "SM"
no-pin =true
group = modems
id = sagem
name = "Sagem"
detect-string = "Sagem"
need-sleep = true
#keepalive-cmd = "AT+CBC;+CSQ"
#enable-mms = true
init-string = "AT+CNMI=2,0,0,1,0"
enable-hwhs = "AT&k3"
speed = 9600
message-storage = "SM"
group = modems
id = wave2
name = "wave2"
detect-string = "WAVECOM"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
#enable-hwhs = "AT+IFC=2,2"
#enable-mms = true
init-string = "ATE0+CNMI=2,1,0,1,1"
speed = 9600
message-storage = "SM"

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
no-smsc = true
group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"
group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true
group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"




Re: ringtones, images... all that stuff.

2005-05-02 Thread Aarno Syvänen
I agree, if the file is small, only one or two sms. But if it is
greater, cost of these sms will be quite high. SI induces a
wap fetch, a quite different thing.

Aarno

On 29.4.2005, at 00:47, Linkas wrote:

But hey... you don't need a PPG to send a SI :-D
I mean, I do send SI without PPG :-D
Most of the phone do not accept SL (such as nokia) so I think it's not useful.

So, the SI is a Service Indication that means it sends just the URL to fetch the ringtone/logo from.

J

Alejandro J. Ramírez wrote: 
 
 
Hello All!
 
    I’ve been reading a LOT of the mails of this mailing list… and thanks to that I’ve been able to set up the PPG, and send a simple wap push. Now… the one million dollar question. How can I send a ringtone? I mean SEND the ringtone… not just be able to send the URL for the mobile to fetch (im talking Midi now..i imagine simple SKC ringtones can be sent as VCARDs). I have read about MBUNI which seems really really nice. But before I get into that I wished to ask you guys… can I send a midi ringtone using simple SI, or SLs with the PPG?  If so please post a sample XML that does that.
 
Thank you Kannel boys & girls.
 
 
Alejandro Ramírez