RE: Mail to SMS with Kannel

2008-09-11 Thread fajar
Hello,

 

I'm using maildrop to support this, this the maildroprc file inside.

LOGDIR=/var/log

logfile $LOGDIR/maildroprc.log

 

cc $DEFAULT

to |/usr/sbin/parsing.pl

 

and this is the parsing.pl file inside..

 

#!/usr/bin/perl

use Shell;

#use strict;

use Mail::Internet;

use String::Rexx qw( :all );

use HTTP::Lite;

 

my $http = new HTTP::Lite;

#ambil header

my $header = Mail::Internet-new(*STDIN)-head()-header_hashref();

chomp $header-{$_}[0] foreach keys(%{$header});

 

#ambil subject,from,to daro header

my $subject = $header-{Subject}[0];

my $from = $header-{From}[0];

my $to = $header-{To}[0];

 

#ganti karakter2x yang tidak benar step 1

my $from1 = changestr('@',changestr('',$from,'\'),'\@');

my $to1 = changestr('@',changestr('',$to,'\'),'\@');

 

#ganti karakter2x yang tidak benar step 2

my $dari = bersihkan($from1);

my $ke = bersihkan($to1);

 

my $req =
$http-request(http://10.1.1.2:8080/am13/mailNotif?from=$darito=$ke;) or
die Unable to open connection to sms notify: $!;

 

sub bersihkan {

if ($_[$from] =~ m/(.+)\s\(.+)\@(.+)\/) {

my $from =~ m/(.+)\s\(.+)\@(.+)\/;

my $panjang = length($2.\@.$3);

my $from = substr($2.\@.$3, 0);

} else {

my $from = $_[$from];

}

};

 

exit 0;

 

cheers

 

Fajar

  _  

From: Joyce Gutierrez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2008 9:39 AM
To: Kannel users
Subject: Mail to SMS with Kannel

 

Hi guys,

I can now send SMS to phones with kannel. Now I am trying to integrate
Kannel with Postfix in a way that whenever a new message arrives at the
inbox it would be forwarded to the intended receivers to their mobile
phones

I have read some posts about this, and have tried using procmail and a perl
script to parse the email and forward it to my /cgi-bin/sendsms,,

here is my .procmailrc

TO=`formail -xTo:`
SUBJECT=`formail -xSubject: \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
SENDER=`formail -xFrom: \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
BODY= `formail -I  \
| expand | sed -e '1,/^$/ d' -e '1,/^$/ d'`
BODY=`formail -I  `
SENDER=`formail -rtzxTo:`
:0
| perl /home/sms/massms/newsms.pl $SENDER $TO $SUBJECT $BODY 
/home/sms/massms/maillog.txt


Unfortunately, whenever I test sending an email, the mail is just received
by the procmail and nothing happens anymore,, The log I specified in
.procmailrc just remains to be empty,

Could there be any other way to implement Mail to SMS? Or couold any body
point ut what possibly is my problem?
I hope somebody could help me,

Thanks in advance
Joyce

 

 



Bearerbox crash when using dlr

2008-09-11 Thread Shoeb Ahmed
Hi, I have kannel 1.4.1 running in Ubuntu 7.10 for a few months now. It
works perfectly. But recently when I tried to use dlr-url and dlr-mask when
sending SMS through http interface, bearerbox crashes everytime. I have
tried using both internal dlr storage and mysql dlr storage but that doesn't
seem to have any effect on it.

Below is the log of crash:

2008-09-11 12:36:16 [5394] [8] PANIC: Memory re-allocation failed
2008-09-11 12:36:16 [5394] [8] PANIC: System error 12: Cannot allocate
memory
2008-09-11 12:36:17 [5394] [8] PANIC:
/usr/local/sbin/bearerbox(gw_panic+0x107) [0x80c4517]
2008-09-11 12:36:17 [5394] [8] PANIC:
/usr/local/sbin/bearerbox(gw_native_realloc+0x7d) [0x80b8f3d]
2008-09-11 12:36:17 [5394] [8] PANIC: /usr/local/sbin/bearerbox [0x80c57a5]
2008-09-11 12:36:17 [5394] [8] PANIC:
/usr/local/sbin/bearerbox(octstr_insert_data+0x63) [0x80c7b23]
2008-09-11 12:36:17 [5394] [8] PANIC:
/usr/local/sbin/bearerbox(octstr_append_char+0x39) [0x80c7d49]
2008-09-11 12:36:17 [5394] [8] PANIC: /usr/local/sbin/bearerbox [0x8067e2b]
2008-09-11 12:36:17 [5394] [8] PANIC: /usr/local/sbin/bearerbox [0x806b19a]
2008-09-11 12:36:17 [5394] [8] PANIC: /usr/local/sbin/bearerbox [0x80baf31]
2008-09-11 12:36:17 [5394] [8] PANIC: /lib/tls/i686/cmov/libpthread.so.0
[0xb7f3e46b]
2008-09-11 12:36:17 [5394] [8] PANIC:
/lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb7bb973e]


When using debug log level, I get this about my smsc:

2008-09-11 12:58:32 [6041] [0] INFO: SMS resend retry set to 10.
2008-09-11 12:58:32 [6041] [0] INFO: DLR rerouting for smsc id FAKE
disabled.
2008-09-11 12:58:32 [6041] [0] DEBUG: Started thread 6
(gw/smsc/smsc_fake.c:fake_listener)
*2008-09-11 12:58:32 [6041] [0] INFO: DLR rerouting for smsc id smsc_warid
disabled.*
2008-09-11 12:58:32 [6041] [0] INFO: Added logfile
`/home/freebdsms/kannel_run/smsc.log' with level `1'.
2008-09-11 12:58:32 [6041] [0] INFO: AT2[smsc_warid]: configuration doesn't
show modemtype. will autodetect
2008-09-11 12:58:32 [6041] [0] DEBUG: Started thread 7
(gw/smsc/smsc_at.c:at2_device_thread)
*2008-09-11 12:58:32 [6041] [0] INFO: DLR rerouting for smsc id
smsc_banglalink disabled.*
2008-09-11 12:58:32 [6041] [0] INFO: Added logfile
`/home/freebdsms/kannel_run/smsc.log' with level `1'.
2008-09-11 12:58:32 [6041] [0] INFO: AT2[smsc_banglalink]: configuration
doesn't show modemtype. will autodetect
2008-09-11 12:58:32 [6041] [0] DEBUG: Started thread 8
(gw/smsc/smsc_at.c:at2_device_thread)
2008-09-11 12:58:32 [6041] [0] DEBUG: Started thread 9
(gw/bb_smscconn.c:sms_router)
2008-09-11 12:58:32 [6041] [0] INFO:

2008-09-11 12:58:32 [6041] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2008-09-11 12:58:32 [6041] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 6041.
2008-09-11 12:58:32 [6041] [6] DEBUG: Thread 6
(gw/smsc/smsc_fake.c:fake_listener) maps to pid 6041.
2008-09-11 12:58:32 [6041] [7] DEBUG: Thread 7
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 6041.
2008-09-11 12:58:32 [6041] [7] INFO: Logging thread `7' to logfile
`/home/freebdsms/kannel_run/smsc.log' with level `1'.
2008-09-11 12:58:32 [6041] [8] DEBUG: Thread 8
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 6041.
2008-09-11 12:58:32 [6041] [8] INFO: Logging thread `8' to logfile
`/home/freebdsms/kannel_run/smsc.log' with level `1'.
2008-09-11 12:58:32 [6041] [9] DEBUG: Thread 9 (gw/bb_smscconn.c:sms_router)
maps to pid 6041.
2008-09-11 12:58:32 [6041] [9] DEBUG: sms_router: time to sleep 30.00 secs.
2008-09-11 12:58:32 [6041] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 6041.
2008-09-11 12:58:32 [6041] [0] INFO: MAIN: Start-up done, entering mainloop
2008-09-11 12:58:32 [6041] [0] DEBUG: smsc_fake: start called
2008-09-11 12:58:32 [6041] [0] DEBUG: AT2[smsc_warid]: start called
2008-09-11 12:58:32 [6041] [0] DEBUG: AT2[smsc_banglalink]: start called
2008-09-11 12:58:32 [6041] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 6041.
2008-09-11 12:58:32 [6041] [9] DEBUG: sms_router: gwlist_len = 0
2008-09-11 12:58:32 [6041] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 6041.
2008-09-11 12:58:32 [6041] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 6041.
2008-09-11 12:58:33 [6041] [5] INFO: Client connected from 127.0.0.1

Is that dlr rerouting disabled any cause of this?

Here is the  url  I  am using for sending msg:
http://localhost:13013/cgi-bin/sendsms?username=***password=***to=***text=Hello+worlddlr-mask=7dlr-url=http://localhost/sms_sender/dlr_test.php?type=%dreciever=**

I've tried changing the dlr-url to one of my website hosted on a web server
but same thing happens.

Below is my configuration file:

#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% 

Sometime Kannel can't work

2008-09-11 Thread fu maoyu
Hi, All

I use Kannel connect with a GSM Modem to send and receive SMS. They are
working fine.
But sometimes, the Kannel doesn't work fine, it can't send and receive SMS.
If I met this problem. If I reset the Kannel, it can work most of time; but
sometime it still can't work although I reset it several times. Like now...
Does anybody also meet this problem?

Below is the error when it's disable:

2008-09-11 16:36:06 [2226] [8] DEBUG: boxc_receiver: sms received
2008-09-11 16:36:06 [2226] [8] DEBUG: send_msg: sending msg to box: 
127.0.0.1
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period:
24.0 hours
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
1
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
0011000B813129201170F3A705F4F29C0E00
2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
-1
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
1
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
0011000B813129201170F3A705F4F29C0E00
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
-1
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
0011000B813129201170F3A705F4F29C0E00
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
1
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
0011000B813129201170F3A705F4F29C0E00
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
-1
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
0011000B813129201170F3A705F4F29C0E00
2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR

Thanks
Aaron


Re: Sometime Kannel can't work

2008-09-11 Thread SELVAMANI GANDHIMATHI
Hi,

I faced the same problem on two circumstances...

One, when phone bills are not paid or validity period has expired.
Other one is when the SIM card is in roaming mode..(Not so sure with this..)





On Thu, Sep 11, 2008 at 8:43 AM, fu maoyu [EMAIL PROTECTED] wrote:

 Hi, All

 I use Kannel connect with a GSM Modem to send and receive SMS. They are
 working fine.
 But sometimes, the Kannel doesn't work fine, it can't send and receive SMS.
 If I met this problem. If I reset the Kannel, it can work most of time; but
 sometime it still can't work although I reset it several times. Like now...
 Does anybody also meet this problem?

 Below is the error when it's disable:

 2008-09-11 16:36:06 [2226] [8] DEBUG: boxc_receiver: sms received
 2008-09-11 16:36:06 [2226] [8] DEBUG: send_msg: sending msg to box: 
 127.0.0.1
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period:
 24.0 hours
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 1
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19^M
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command status:
 -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR

 Thanks
 Aaron



Re: Postgres DLR

2008-09-11 Thread Hugo Pérez Casanova
Thanks a lot.

I'll try that out.

Regards.

On Wednesday 10 September 2008 23:49, seikath wrote:
 set unique ID in the DLR URL for each message

 and the DLR URL script will fill a db with your design ...

 Hugo Pérez Casanova wrote:
  Hi.
 
  I have configured kannel and get it working properly.
 
  I have also configured postgres dlr but I can not find how to tell kannel
  to ask the smsc for dlrs and store them in the database.
 
  Any help?
 
  Regards.

-- 
IEE José Hugo Pérez Casanova



Re: Sometime Kannel can't work

2008-09-11 Thread Alvaro Cornejo
Hi fu

1st try to enable verbose responses from modem.
I have this kind of error from time to time, but in almost all the cases
was a modem hung. I finetune the modem init string and fixed somehow the
modem hung. However I still get the modem hung. 

btw, I use enfora 1218 modems

Regards
Alvaro

On Thu, 2008-09-11 at 16:43 +0800, fu maoyu wrote:
 Hi, All
 
 I use Kannel connect with a GSM Modem to send and receive SMS. They
 are working fine. 
 But sometimes, the Kannel doesn't work fine, it can't send and receive
 SMS. If I met this problem. If I reset the Kannel, it can work most of
 time; but sometime it still can't work although I reset it several
 times. Like now...
 Does anybody also meet this problem?
 
 Below is the error when it's disable:
 
 2008-09-11 16:36:06 [2226] [8] DEBUG: boxc_receiver: sms received
 2008-09-11 16:36:06 [2226] [8] DEBUG: send_msg: sending msg to box:
 127.0.0.1
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]:
 TP-Validity-Period: 24.0 hours
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
 +CMGS=19^M
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: 1
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
 +CMGS=19^M
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: 1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
 ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
 +CMGS=19^M
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: 1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
 ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
 status: -1
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
 ERROR
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
 0011000B813129201170F3A705F4F29C0E00
 2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
 2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
 ERROR
 
 Thanks
 Aaron
 




Re: Multiple connections

2008-09-11 Thread Daniel Camacho - PA
My solution was to implement the same kannel send table structure in 
another whatever table. plus a couplbe of fields (priority and status)


A cron job runs a perl script. wich evaluates the rows in this 
whatever table, and do some select-insert operations from this table 
to the kannel send table as suggested before


sangprabv wrote:

Hi,
If you use SqlBox, then my tips is to create another table in your DB
which used to store MTPUSH messages only. And run another SqlBox daemon
to listen to that table. 



Willy



  



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

begin:vcard
fn:Daniel Camacho
n:Camacho;Daniel
org:Promociones Acertadas, S.A.
adr:Plaza Tigo, 4to. Nivel;;Km. 9.5 Carretera a El Salvador;Guatemala;;;Guatemala
email;internet:[EMAIL PROTECTED]
title:Analista de Sistemas
tel;work:(502) 24281470
tel;cell:(502) 53781298
x-mozilla-html:TRUE
url:www.promocionesacertadas.com
version:2.1
end:vcard



RE: Sometime Kannel can't work

2008-09-11 Thread Alvaro Cornejo
Should be AT+CMEE= 0 to 2. 0 = disable, 1 medimum verbose, 2 maximum
verbose. 

This command is not supported in all modems... check your hw AT command
reference

Alvaro


On Thu, 2008-09-11 at 15:12 -0700, Christian Jensen wrote:
 What is the normal command to enable verbose?
 
 -Original Message-
 From: Alvaro Cornejo [EMAIL PROTECTED]
 Sent: September 11, 2008 3:00 PM
 To: fu maoyu [EMAIL PROTECTED]
 Cc: users@kannel.org users@kannel.org
 Subject: Re: Sometime Kannel can't work
 
 
 Hi fu
 
 1st try to enable verbose responses from modem.
 I have this kind of error from time to time, but in almost all the cases
 was a modem hung. I finetune the modem init string and fixed somehow the
 modem hung. However I still get the modem hung.
 
 btw, I use enfora 1218 modems
 
 Regards
 Alvaro
 
 On Thu, 2008-09-11 at 16:43 +0800, fu maoyu wrote:
  Hi, All
 
  I use Kannel connect with a GSM Modem to send and receive SMS. They
  are working fine.
  But sometimes, the Kannel doesn't work fine, it can't send and receive
  SMS. If I met this problem. If I reset the Kannel, it can work most of
  time; but sometime it still can't work although I reset it several
  times. Like now...
  Does anybody also meet this problem?
 
  Below is the error when it's disable:
 
  2008-09-11 16:36:06 [2226] [8] DEBUG: boxc_receiver: sms received
  2008-09-11 16:36:06 [2226] [8] DEBUG: send_msg: sending msg to box:
  127.0.0.1
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]:
  TP-Validity-Period: 24.0 hours
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
  +CMGS=19^M
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: 1
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
  0011000B813129201170F3A705F4F29C0E00
  2008-09-11 16:36:08 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: -1
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
  +CMGS=19^M
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: 1
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
  0011000B813129201170F3A705F4F29C0E00
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
  2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
  ERROR
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: -1
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT
  +CMGS=19^M
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
  0011000B813129201170F3A705F4F29C0E00
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: 1
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
  0011000B813129201170F3A705F4F29C0E00
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
  2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
  ERROR
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: send command
  status: -1
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=19
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- 
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
  2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
  ERROR
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: --
  0011000B813129201170F3A705F4F29C0E00
  2008-09-11 16:36:29 [2226] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR
  2008-09-11 16:36:29 [2226] [6] ERROR: AT2[/dev/ttyS0]: Generic error:
  ERROR
 
  Thanks
  Aaron