Re: WAP-Push with Nokia 6210

2010-06-15 Thread Thomas Sieh
Hi Nikos,

I have read you E-Mail again and have seen, that you wrote single sms, not 
simple sms, sorry.


The Problem occurs at every time. Not only after start or the first bulk.
i have already tested -- and did it again after your tip -- to set up 
need-sleep. I tried all variations of need-sleep and sendline-sleep.
this options don't make a difference. so I have set it up like at the 
compatibility site described for the nokia 6210: need-sleep = true.

I have done it again with your new patch. this time the first message was sent 
after only 2 errors. so i will attach the other logs, too.

here are the logfiles:



access ::
:

2010-06-15 15:19:28 Log begins
2010-06-15 15:19:29 Log begins
2010-06-15 15:19:29 Log begins
2010-06-15 15:21:01 send-SMS request added - sender:tester:+4915779** 
127.0.0.1 target:+4917649** request: 'das ist eine sms'
2010-06-15 15:23:10 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:] [FID:] 
[META:] [from:+4915779**] [to:+4917649**] [flags:-1:0:-1:-1:-1] 
[msg:16:das ist eine sms] [udh:0:]


smsc::
::


2010-06-15 15:19:28 [17069] [6] INFO: AT2[SMSC_01]: opening device
2010-06-15 15:19:28 [17069] [6] DEBUG: AT2[SMSC_01]: device opened. Telnet mode 
= 0
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: device opened
2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: Logging in
2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: init device
2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: speed set to 9600
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATZ^M
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT^M
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATF^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATF
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATE0^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATE0
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+IFC=2,2^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CPIN?^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- +CPIN: READY
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- 
AT+CSCA=+49177061^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGF=0^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CSMS=?^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CNMI=1,2,0,1,0^M
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- +CSMS: (0,1)
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:19:30 [17069] [6] INFO: AT2[SMSC_01]: AT SMSC successfully opened.
2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=29^M
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: --
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: -- 
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: -- 0011000D9194714669
2010-06-15 15:21:02 [17069] [6] DEBUG: AT2[SMSC_01]: -- 
**A710E4F0
2010-06-15 15:21:03 [17069] [6] DEBUG: AT2[SMSC_01]: -- 1C949ED341E5B4BB0C
2010-06-15 15:21:03 [17069] [6] DEBUG: AT2[SMSC_01]: -- 9AB7E7^Z
2010-06-15 15:21:03 [17069] [6] DEBUG: AT2[SMSC_01]: -- ERROR
2010-06-15 15:21:03 [17069] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-06-15 15:21:03 [17069] [6] DEBUG: AT2[SMSC_01]: send command status: -1
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=29^M
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- 
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- 0011000D9194714669
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- **A710E4F0
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- 1C949ED341E5B4BB0C
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- 9AB7E7^Z
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- 
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: -- ERROR
2010-06-15 15:22:05 [17069] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-06-15 15:22:05 [17069] [6] DEBUG: AT2[SMSC_01]: send command status: -1
2010-06-15 15:23:05 [17069] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-06-15 15:23:05 [17069] [6] DEBUG: AT2[SMSC_01]: 

Re: WAP-Push with Nokia 6210

2010-06-15 Thread Thomas Sieh
Hi,

when i interpret the logs correct the smsc ist opened at 15:19:30. 
At 15:21:01 i pushed a sms from webbrowser and the smsbox gave it 
directly to the bearerbox.
at 15:21:02 the smsc try to send the data, but raises an error.
from 15:21:03 to 15:22:03 the bearerbox tried to route the message.
The smsc tries again to send the message, successless.
At 15:22:05 the smsc tries again to send the data, but raises an error.
Then the bearerbox routes the message again until 15:23:05. this time 
the smsc sends the message successfully. 
is this correct?

then i don't understand what the smsbox should do after the initial
sending to the bearerbox. and why should be there an other message in 
the queue? isn't it the same message that kannel tries to send multiple
times and only at 15:23:05 with success?

I don't have removed any debug-infos! i never thouched the source apart 
from the patch you sent me. and this i have installed into a fresh 
downloaded cvs-kannel.

I have done another test and created a chronologic dependend chart of 
interaction between the boxes in openoffice format. i attached it. it's
really schort. maybe you see something between the lines or have one 
more idea. possibly the routing of the bearerbox?

i think you are right with the guess that there could be a problem with 
the phone. tomorrow i will try another cable. possibly i have luck :)

thanks,
thomas


On Tue, Jun 15, 2010 at 06:24:51PM +0300, Nikos Balkanas wrote:
 Hi,

 This is very confusing. In bb logs I see a successful transmission at  
 15:21:01. Yet I see no evidence of it in smsc logs. What's going on? 
 Besides I see in bb logs requeuing SMS at 15:21:03, without sending it 
 from smsbox, which means that when you started queue was not empty. Also 
 you removed debugs from gw/bb_smscconn.c.

 Please explain,
 Nikos
 - Original Message - From: Thomas Sieh ts...@gmx.de
 To: Nikos Balkanas nbalka...@gmail.com
 Cc: users@kannel.org
 Sent: Tuesday, June 15, 2010 6:00 PM
 Subject: Re: WAP-Push with Nokia 6210


 Hi Nikos,

 I have read you E-Mail again and have seen, that you wrote single sms, 
 not simple sms, sorry.


 The Problem occurs at every time. Not only after start or the first bulk.
 i have already tested -- and did it again after your tip -- to set up  
 need-sleep. I tried all variations of need-sleep and sendline-sleep.
 this options don't make a difference. so I have set it up like at the  
 compatibility site described for the nokia 6210: need-sleep = true.

 I have done it again with your new patch. this time the first message 
 was sent after only 2 errors. so i will attach the other logs, too.

 here are the logfiles:



 access ::
 :

 2010-06-15 15:19:28 Log begins
 2010-06-15 15:19:29 Log begins
 2010-06-15 15:19:29 Log begins
 2010-06-15 15:21:01 send-SMS request added - 
 sender:tester:+4915779** 127.0.0.1 target:+4917649** request: 
 'das ist eine sms'
 2010-06-15 15:23:10 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:] 
 [FID:] [META:] [from:+4915779**] [to:+4917649**]  
 [flags:-1:0:-1:-1:-1] [msg:16:das ist eine sms] [udh:0:]


 smsc::
 ::


 2010-06-15 15:19:28 [17069] [6] INFO: AT2[SMSC_01]: opening device
 2010-06-15 15:19:28 [17069] [6] DEBUG: AT2[SMSC_01]: device opened. 
 Telnet mode = 0
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: device opened
 2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: Logging in
 2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: init device
 2010-06-15 15:19:29 [17069] [6] INFO: AT2[SMSC_01]: speed set to 9600
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATZ^M
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT^M
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:29 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATF^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATF
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATE0^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- ATE0
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+IFC=2,2^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CPIN?^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- +CPIN: READY
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: --  
 AT+CSCA=+49177061^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGF=0^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- AT+CSMS=?^M
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: -- OK
 2010-06-15 15:19:30 [17069] [6] DEBUG: AT2[SMSC_01]: --  
 AT+CNMI=1,2,0,1,0^M
 2010

Re: WAP-Push with Nokia 6210

2010-06-13 Thread Thomas Sieh
Hi Nikos,

I have done some more tests. the Problem is, that when I send the first 
message, it is stored in the queue, but will not be send. regardless if 
it is a wap push message or a normal mo push sms. the same with
all other following messages. but then, for me not obviously, kannel sends
a few seconds after the last message the most other messages in the
queue, but not absolute all. mostly there are one or two left inside
the queue.

In summary I can say: kannel don't send the messages until one is
accepted. but then kannel sends the most of the other messages, too.

I sent the messages with the following 2 commands:

lynx -dump http://localhost:13013/cgi-bin/sendsms?username=testerpassw
ord=foobarfrom=%2B49157to=%2B49176smsc=SMSC_01text=D
as+ist+eine+SMS

lynx -dump http://localhost:13013/cgi-bin/sendsms?username=testerpassw
ord=foobarfrom=%2B49157to=%2B49176udh=%06%05%04%0B%84
%23%F0smsc=SMSC_01text=%1B%06%01%AE%02%05%6A%00%45%C6%0C%03*.s
elfip.org/index.wml%00%01%03Das+ist+ein+kleiner+Test%00%01%01

thanks in advance

br,
thomas



following the full logs and the dependent config:

config ::
:

# kannel.conf

group = core
admin-port = 13000
admin-password = genap
status-password = genap
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
log-file = /var/log/kannel/bearerbox.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
wapbox-port = 13002
wdp-interface-name = *
store-type = spool
store-location = /var/spool/kannel

group = smsc
smsc-id = SMSC_01
smsc = at
modemtype = nokiaphone
speed = 9600
device = /dev/ttyUSB0
sms-center = +49177061
#keepalive = 20
log-file = /var/log/kannel/smsc.log
log-level = 0

group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
init-string = AT+CNMI=1,2,0,1,0;+CMEE=2
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

group = wapbox
bearerbox-host = localhost
log-file = /var/log/kannel/wapbox.log
log-level = 0
access-log = /var/log/kannel/access.log
syslog-level = none

group = smsbox
smsbox-id = sms_box
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = 0123456789+
global-sender = +49157
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log
sendsms-url = /cgi-bin/sendsms

group = sendsms-user
username = tester
password = foobar
user-allow-ip = *.*.*.*
max-messages = 2
concatenation = true

group = sms-service
keyword = default
catch-all = true
max-messages = 0
get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%b
accepted-smsc = SMSC_01

group = smsbox-route
smsc-id = SMSC_01
smsbox-id = sms_box

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 100
users = 1024
trusted-pi = true
ppg-allow-ip = *.*.*.*
ppg-smsbox-id = sms_box
default-smsc = SMSC_01

group = wap-push-user
ppg-username = tester
ppg-password = foobar
allow-ip = *.*.*.*
default-smsc = SMSC_01


access.logs ::
::

2010-06-13 15:40:06 Log begins
2010-06-13 15:40:07 Log begins
2010-06-13 15:40:07 Log begins
2010-06-13 15:40:27 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: 'Das ist eine SMS'
2010-06-13 15:40:47 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: 'Das ist eine SMS'
2010-06-13 15:40:56 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: 'Das ist eine SMS'
2010-06-13 15:41:05 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: ' UDH '
2010-06-13 15:41:24 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: ' UDH '
2010-06-13 15:41:39 send-SMS request added - sender:tester:+49157 
127.0.0.1 
  target:+49176 request: 'Das ist eine SMS'
2010-06-13 15:42:04 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:] 
  [FID:] [from:+49157] [to:+49176] [flags:-1:0:-1:-1:-1]
  [msg:16:Das ist eine SMS] [udh:0:]
2010-06-13 15:42:11 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:]
  [FID:] [from:+49157] [to:+49176] [flags:-1:0:-1:-1:-1]
  [msg:16:Das ist eine SMS] [udh:0:]
2010-06-13 15:42:35 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:]
  [FID:] [from:+49157] [to:+49176] [flags:-1:1:-1:-1:-1]
  
[msg:72:1B0601AE02056A0045C60C03626C61636B6C6973742E73656C6669702E6F72672F696E6465
  782E776D6C000103446173206973742065696E206B6C65696E65722054657374000101]
  [udh:7:0605040B8423F0]
2010-06-13 15:42:43 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:]
  [FID:] [from:+49157] [to:+49176] [flags:-1:1:-1:-1:-1]
  
[msg:72:1B0601AE02056A0045C60C03626C61636B6C6973742E73656C6669702E6F72672F696E64657
  82E776D6C000103446173206973742065696E206B6C65696E65722054657374000101]
  [udh:7:0605040B8423F0]
2010-06-13 15:43:03 Sent SMS [SMSC:SMSC_01] [SVC:tester] [ACT:] [BINF:]
  [FID:] 

Re: WAP-Push with Nokia 6210

2010-06-12 Thread Thomas Sieh
hi,

thank you for your interrest. Here are my logs again, beginning at the
point when I have sent the message. Posting regular messages is no problem. 
The PAP- and SI-file are generated in the send_wappush2.php script (see
below).

br,
thomas


-send_wappush2.php---
craetes pap and si and sends it to the ppg
?
// send_wappush2.php

//require config.php;

$phone  = '+49176'; // receiver
$push_url   = 'http://wap.google.com';
$text   = 'This is a test';
$smsc_id= 'SMSC_01';


send_wap_push($smsc_id, $phone, $push_url, $text);

function send_wap_push($smsc_id, $phone, $push_url, $text)
{
$host = 'localhost';
$port = '8080';
$url  =  http://.$host.:.$port;

//$ppg_user = 'testy';
//$ppg_pass = 'foobar';

$wap_push_id = time(); //pushID-.$phone.-.time();
$nl = \r\n;

$body = '--multipart-boundary'.$nl.
'Content-type: application/xml'.$nl.$nl.
'?xml version=1.0?'.$nl.
'!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN 
http://www.wapforum.org/DTD/pap_1.0.dtd; '.$nl.
'pap'.$nl.
'push-message push-id='.$wap_push_id.''.$nl.
'address address-value=WAPPUSH='.$phone.'/type=p...@localhost/'.$nl.
'quality-of-service priority=high delivery-method=unconfirmed 
network-required=true network=GSM bearer-required=true 
bearer=SMS/'.$nl.
'/push-message'.$nl.
'/pap'.$nl.$nl.
'--multipart-boundary'.$nl.
'Content-type: text/vnd.wap.si'.$nl.$nl.
'?xml version=1.0?'.$nl.
'!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN 
http://www.wapforum.org/DTD/si.dtd;'.$nl.
'si'.$nl.
'indication action=signal-high si-id='.$wap_push_id.' 
href='.$push_url.''.$text.'/indication'.$nl.
'/si'.$nl.
'--multipart-boundary--'.$nl;

$post = 'POST /wappush HTTP/1.1'.$nl.
'Host: '.$host.':'.$port.$nl.
//Authorization: Basic .base64_encode($ppg_user:$ppg_pass).$nl.
'X-Kannel-SMSC: '.$smsc_id.$nl.
'X-Kannel-Smsbox-Id: sms_box'.$nl.
'Content-Type: multipart/related; boundary=multipart-boundary; 
type=application/xml'.$nl.
'Content-Length: '.strlen($body).$nl.$nl.
$body;

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$reply = curl_exec($ch);
curl_close ($ch);

//print_r($reply. .$wap_push_id);
}

?
-


---wapbox
2010-06-12 10:53:13 [20219] [11] DEBUG: HTTP: Creating HTTPClient for 
`127.0.0.1'.
2010-06-12 10:53:13 [20219] [11] DEBUG: HTTP: Created HTTPClient area 0x1b3ee90.
2010-06-12 10:53:13 [20219] [14] INFO: PPG: Accept request /wappush from 
127.0.0.1
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: http_read_thread: pap multipart 
accepted
2010-06-12 10:53:13 [20219] [14] INFO: client address was +49176, 
accepted
2010-06-12 10:53:13 [20219] [14] DEBUG: PAP COMPILER: doing semantic analysis 
for address type a phone number
2010-06-12 10:53:13 [20219] [14] DEBUG: using defaults instead of anys 
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: http_read_thread: pap control 
entity compiled ok
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: transform_message: push message 
content and headers valid
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: push machine 0 created 
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: store_push_data: push machine 0 
appended to unit push list
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: send_push_response: telling pi
2010-06-12 10:53:13 [20219] [14] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
2010-06-12 10:53:13 [20219] [14] INFO: PPG: handle_push_message: push message 
accepted for processing
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: OTA request for unit push 
2010-06-12 10:53:13 [20219] [14] INFO: PPG: unconfirmed push delivered to OTA
2010-06-12 10:53:13 [20219] [14] DEBUG: PPG: destroying push machine 0
2010-06-12 10:53:13 [20219] [9] DEBUG: OTA: event arrived
2010-06-12 10:53:13 [20219] [9] DEBUG: OTA: made connectionless session service 
request
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP (UNIT): event arrived
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP_UNIT: Connectionless push accepted
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP: Mapping `application/vnd.wap.sic', 
WSP 1.2 to 0x002e.
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP: Mapping `Content-Length', WSP 1.3 
to 0x000d.
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP: Mapping `Encoding-Version', WSP 1.3 
to 0x0043.
2010-06-12 10:53:13 [20219] [2] DEBUG: WDP (wapbox): delivering 1 segments to 
bearerbox
2010-06-12 10:53:13 [20219] [2] DEBUG: WSP (UNIT): delivering to wdp
2010-06-12 10:53:13 [20219] [0] WARNING: Received other message than wdp/admin, 
ignoring!
2010-06-12 

Re: WAP-Push with Nokia 6210

2010-06-12 Thread Thomas Sieh
Sorry, i am NOT able to send normal SMS.



WAP-Push with Nokia 6210

2010-06-11 Thread Thomas Sieh
hi,

i use a nokia 6210 as smsc. when i try to send a wap push sms, i get a
generic error. the strange thing is that the message will be send 
after a restart of kannel. before that it don't leave the queue.

have someone of you an idea what could be wrong?

thx
thomas


here my conf and the logs...

SMSC:
.

2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CBC;+CSQ^M
2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CBC: 1,50
2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CSQ: 31,99
2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period:
24.0 hours
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=86^M
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 0051000D919471
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- F60004A7470605
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 040B8423F605AE
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 8DB8C39302056A0045
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- C60811033132373633
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 3031333739000C0377
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 61702E676F6F676C65
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 2E636F6D0001035468
2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 697320697320612074
2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: -- 657374000101
2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: -- ERROR
2010-06-12 02:09:41 [23967] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: send command status: -1
2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CBC;+CSQ^M
2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CBC: 1,50
2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CSQ: 31,99
2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- OK

wapbox:
...

2010-06-12 02:09:39 [24026] [14] INFO: PPG: Accept request /wappush from 
127.0.0.1
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: http_read_thread: pap multipart 
accepted
2010-06-12 02:09:39 [24026] [14] INFO: client address was +49176, 
accepted
2010-06-12 02:09:39 [24026] [14] DEBUG: PAP COMPILER: doing semantic analysis 
for address type a phone number
2010-06-12 02:09:39 [24026] [14] DEBUG: using defaults instead of anys 
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: http_read_thread: pap control 
entity compiled ok
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: transform_message: push message 
content and headers valid
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: push machine 0 created 
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: store_push_data: push machine 0 
appended to unit push list
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: send_push_response: telling pi
2010-06-12 02:09:39 [24026] [14] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
2010-06-12 02:09:39 [24026] [14] INFO: PPG: handle_push_message: push message 
accepted for processing
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: OTA request for unit push
2010-06-12 02:09:39 [24026] [14] INFO: PPG: unconfirmed push delivered to OTA
2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: destroying push machine 0
2010-06-12 02:09:39 [24026] [9] DEBUG: OTA: event arrived
2010-06-12 02:09:39 [24026] [9] DEBUG: OTA: made connectionless session service 
request
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP (UNIT): event arrived
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP_UNIT: Connectionless push accepted
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `application/vnd.wap.sic', 
WSP 1.2 to 0x002e.
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Content-Length', WSP 1.3 
to 0x000d.
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 to 
0x0011.
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Encoding-Version', WSP 1.3 
to 0x0043.
2010-06-12 02:09:39 [24026] [2] DEBUG: WDP (wapbox): delivering 1 segments to 
bearerbox
2010-06-12 02:09:39 [24026] [2] DEBUG: WSP (UNIT): delivering to wdp
2010-06-12 02:09:39 [24026] [0] WARNING: Received other message than wdp/admin, 
ignoring!
2010-06-12 02:09:39 [24026] [10] DEBUG: HTTP: Destroying HTTPClient area 
0x272a8e0.
2010-06-12 02:09:39 [24026] [10] DEBUG: HTTP: Destroying HTTPClient for 
`127.0.0.1'.

bearerbox:
..

2010-06-12 02:24:53 [23967] [7] DEBUG: sms_router: gwlist_len = 1
2010-06-12 02:24:53 [23967] [7] DEBUG: sms_router: handling message (0x1598d10 
vs 0x1598d10)
2010-06-12 02:24:53 [23967] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 02:24:53 [23967] [7] DEBUG: sms_router: handling message (0x1598d10 
vs 0x1598d10)
2010-06-12 02:24:53 [23967] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 02:24:53 [23967] [7] 

Re: WAP-Push with Nokia 6210

2010-06-11 Thread Thomas Sieh
additional information:
if there is more than one message in the queue, kannel will send the
later one directly. the older one is still in the queue. and if i send
some more wap push sms, kannel sends them all. but generaly i don't 
send as much sms, so it is not a solution :-/


On Sat, Jun 12, 2010 at 02:37:56AM +0200, Thomas Sieh wrote:
| hi,
| 
| i use a nokia 6210 as smsc. when i try to send a wap push sms, i get a
| generic error. the strange thing is that the message will be send 
| after a restart of kannel. before that it don't leave the queue.
| 
| have someone of you an idea what could be wrong?
| 
| thx
| thomas
| 
| 
| here my conf and the logs...
| 
| SMSC:
| .
| 
| 2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CBC;+CSQ^M
| 2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CBC: 1,50
| 2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CSQ: 31,99
| 2010-06-12 02:09:30 [23967] [6] DEBUG: AT2[SMSC_01]: -- OK
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period:
| 24.0 hours
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=86^M
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: send command status: 1
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 0051000D919471
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- F60004A7470605
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 040B8423F605AE
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 8DB8C39302056A0045
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- C60811033132373633
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 3031333739000C0377
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 61702E676F6F676C65
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 2E636F6D0001035468
| 2010-06-12 02:09:40 [23967] [6] DEBUG: AT2[SMSC_01]: -- 697320697320612074
| 2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: -- 657374000101
| 2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: -- ERROR
| 2010-06-12 02:09:41 [23967] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
| 2010-06-12 02:09:41 [23967] [6] DEBUG: AT2[SMSC_01]: send command status: -1
| 2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- AT+CBC;+CSQ^M
| 2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CBC: 1,50
| 2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- +CSQ: 31,99
| 2010-06-12 02:10:03 [23967] [6] DEBUG: AT2[SMSC_01]: -- OK
| 
| wapbox:
| ...
| 
| 2010-06-12 02:09:39 [24026] [14] INFO: PPG: Accept request /wappush from 
127.0.0.1
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: http_read_thread: pap multipart 
accepted
| 2010-06-12 02:09:39 [24026] [14] INFO: client address was +49176, 
accepted
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PAP COMPILER: doing semantic analysis 
for address type a phone number
| 2010-06-12 02:09:39 [24026] [14] DEBUG: using defaults instead of anys 
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: http_read_thread: pap control 
entity compiled ok
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: transform_message: push message 
content and headers valid
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: push machine 0 created 
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: store_push_data: push machine 0 
appended to unit push list
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: send_push_response: telling pi
| 2010-06-12 02:09:39 [24026] [14] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
| 2010-06-12 02:09:39 [24026] [14] INFO: PPG: handle_push_message: push message 
accepted for processing
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: OTA request for unit push
| 2010-06-12 02:09:39 [24026] [14] INFO: PPG: unconfirmed push delivered to OTA
| 2010-06-12 02:09:39 [24026] [14] DEBUG: PPG: destroying push machine 0
| 2010-06-12 02:09:39 [24026] [9] DEBUG: OTA: event arrived
| 2010-06-12 02:09:39 [24026] [9] DEBUG: OTA: made connectionless session 
service request
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP (UNIT): event arrived
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP_UNIT: Connectionless push accepted
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping 
`application/vnd.wap.sic', WSP 1.2 to 0x002e.
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Content-Length', WSP 1.3 
to 0x000d.
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Content-Type', WSP 1.3 
to 0x0011.
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP: Mapping `Encoding-Version', WSP 
1.3 to 0x0043.
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WDP (wapbox): delivering 1 segments to 
bearerbox
| 2010-06-12 02:09:39 [24026] [2] DEBUG: WSP (UNIT): delivering to wdp
| 2010-06-12 02:09:39 [24026] [0] WARNING: Received other message than 
wdp/admin, ignoring!
| 2010-06-12 02:09:39 [24026] [10] DEBUG: HTTP: Destroying HTTPClient area 
0x272a8e0.
| 2010-06-12 02:09:39 [24026] [10] DEBUG: HTTP

Re: need help

2010-06-08 Thread Thomas Sieh
hi,

have you tried

patch -p1  smppbox.patch

are you in the main directory of kannel source? is the patch in the same
directory?

br,
thomas


On Wed, Jun 09, 2010 at 05:16:27AM +0700, budi wibowo wrote:
| hi
| i downloaded the latest cvs of kannel and try to implement smppbpx patch
| from chimit
| and i got this error when i do patch
| 
| patch  smppbox.patch
| can't find file to patch at input line 8
| Perhaps you should have used the -p or --strip option?
| The text leading up to this was:
| --
| |Index: gwlib/cfg.def
| |===
| |RCS file: /home/cvs/gateway/gwlib/cfg.def,v
| |retrieving revision 1.142
| |diff -u -r1.142 cfg.def
| |--- gwlib/cfg.def  6 Dec 2009 17:24:14 -   1.142
| |+++ gwlib/cfg.def  7 May 2010 19:02:39 -
| --
| File to patch:
| Skip this patch? [y]
| Skipping patch.
| 1 out of 1 hunk ignored
| can't find file to patch at input line 34
| Perhaps you should have used the -p or --strip option?
| The text leading up to this was:
| --
| |Index: gwlib/conn.c
| |===
| |RCS file: /home/cvs/gateway/gwlib/conn.c,v
| |retrieving revision 1.88
| |diff -u -r1.88 conn.c
| |--- gwlib/conn.c   12 Jan 2009 16:46:54 -  1.88
| |+++ gwlib/conn.c   7 May 2010 19:02:39 -
| --
| File to patch:
| Skip this patch? [y]
| Skipping patch.
| 1 out of 1 hunk ignored
| can't find file to patch at input line 54
| Perhaps you should have used the -p or --strip option?
| The text leading up to this was:
| --
| |Index: gwlib/conn.h
| |===
| |RCS file: /home/cvs/gateway/gwlib/conn.h,v
| |retrieving revision 1.36
| |diff -u -r1.36 conn.h
| |--- gwlib/conn.h   12 Jan 2009 16:46:53 -  1.36
| |+++ gwlib/conn.h   7 May 2010 19:02:39 -
| --
| File to patch:
| Skip this patch? [y]
| Skipping patch.
| 1 out of 1 hunk ignored
| can't find file to patch at input line 62
| Perhaps you should have used the -p or --strip option?
| The text leading up to this was:
| --
| |--- Makefile   2010-05-07 22:17:30.0 +0200
| |+++ Makefile   2010-05-07 21:28:35.0 +0200
| --
| File to patch:
| Skip this patch? [y]
| Skipping patch.
| 1 out of 1 hunk ignored
| 
| 
| any help is highly appreciated
| 
| 
| 2010/6/7 Nikos Balkanas nbalka...@gmail.com
| 
|  Hi,
| 
|  As I  have explained in a previous mail. Download latest svn (or cvs). It
|  won't work with 1.4.3.
| 
|  Extract patch from archive and go to gateway directory.
| 
|  Then patch  {smppbox.patch}
| 
|  I hope you do not bother this list again for the same question, which
|  incidentally is a unix, not a kannel issue. You should consider whether you
|  have the minimum unix background needed for running kannel and/or smppbox.
| 
|  BR,
|  Nikos
| 
|  - Original Message - From: Kiran Reddy ki...@uniceltech.com
|  To: users@kannel.org
|  Sent: Monday, June 07, 2010 9:07 AM
|  Subject: need help
| 
| 
| 
|   Hi All,
| 
|  I am not able to install opensource smppbox with kannel. Can some one help
|  me to install kannel with opensource smppbox.
| 
|  I am using kannel 1.4.3 Stable version and i downloaded opensource
|  smppbox.
| 
| 
|  Regards,
|  
|  Kiran Reddy
| 
| 
| 
| 


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-07 Thread Thomas Sieh

hi,

but when you run the script by typing 
/Users/path/to/the/script/sms.sh x y z
n your console you get any output to 
the sms_messages.txt file?

Another thing you can try is typing in your terminal:

which bash

possibly you have to correct the path to your bash in the first row.

if you get a output into the file, then it should be a problem with
kannel.

i think you have make much changes in the sms.sh already. how it looks
currently? 

br,
thomas


On Mon, Jun 07, 2010 at 02:01:27PM +0200, Martin J. wrote:
| Wow, this was really timeconsuming challenge for me...
| 
| Had to spend plenty of hours on googling for the exec line to see how other 
people did it and nothing worked, including write permissions etc. etc
| 
| I even began to dig into the source code to try to see if there was/is a bug 
somewhere. I think the exec-code gets executed in ./gw/urltrans.c?
| 
| I was thinking about recompiling everything with debug flags (-o0 -g, AFAIR) 
and then set a breakpoint just before running the exec-code (btw: what should I 
remember if I recompile with full debug flags, if anything?)...
| 
| I finally succeeded by finding a piece of a configuration file that I stole 
from. Here's my new config-part regarding sms-service (and this solved my 
problem):
| 
| --
| group = sms-service
| keyword = default
| exec = ./sms.sh a=%a t=%t q=%q Q=%Q I=%I d=%d A=%A F=%F n=%n c=%c m=%m M=%M 
C=%C u=%u B=%B o=%o O=%O f=%f
| # if max-messages = 0, then error No reply sent, denied
| max-messages = 0
| #text = Thank you! I appreciate your sms...
| concatenation = true
| catch-all = yes
| #white-list = http://localhost/whitelist;
| --
| 
| After I have looked a bit in urltrans.c, I believe my problem was that I 
DIDN'T comment out the text-field and I guess that EITHER you have a 
text-reply (Thank you!. ...) OR you have an exec-statement... Am I right?
| 
| At least it works now using above config-file... I'm only a bit annoyed by 
the fact that in  my incoming sms text file, all blank spaces are made into 
plus / +'es and I think a plus / + is made into %2B - this looks stupid 
in plain text when I cat the file 
| 
| Well, these are just minor things which I guess I can live with (search and 
replace plus'es with blank spaces or something)...
| 
| 
| Any comments?
| 
| And thanks again! Now somebody else perhaps can use my experience, if they 
get the same problem as me with the malfunctioning exec-statement :-)
| 
| 
| 
| Regards,
| Martin
| 
| 
| On Jun 7, 2010, at 4:35 AM, Thomas Sieh wrote:
| 
|  this should not be your problem. if you execute the script by hand and
|  you don't get the corresponding output in the result file, there is a
|  problem with the script. I think with the permission from the
|  resultfile, if you have execute permissions to the script file.
|  
|  br,
|  thomas


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-07 Thread Thomas Sieh
hi,

that the last line don't give a output is correct.
the $@ works like a stack. if you fetch the first argument it will be
removed and then the next one will be the first. if you want to access
the argument more than one time you should use variables to thore them.

if you want to handle sms by the first word you can create for each word
an own sms-service with the keyword like 

group = sms-service
keyword = xyz
exec = /.../xyz.sh ...

group = sms-service
keyword = abc
exec = /.../abc.sh ...

...

then %k is the first word
%s is the second one
and %r is the rest of the text.

possibly it should be an option for you.

to check if a sms comes in from a phone should be done in the script.
for example by a file per vote with the sender numbers...

the reason that you can see + instead of   and %2B instead of + ...
is the urlencoding... thats not a bug.
here is a list:
http://www.w3schools.com/tags/ref_urlencode.asp

i would replace the characters in your script.


an auto-generated receipt is also possible with kannel, i think. but i
can't currently remeber how.

br,
thomas




On Mon, Jun 07, 2010 at 04:09:21PM +0200, Martin J. wrote:
| Hi,
| 
| Yes, I understand most bash basics (and google what I don't understand) so I 
think everything more or less works, thanks:
| 
| ===
| 
| mac$ which bash
| /bin/bash
| 
| ===
| 
| cat sms.sh
| #!/bin/bash
| 
| for var in $@; do
|   echo $var | tee -a incoming_sms_messages.txt
| done
| echo --- | tee -a incoming_sms_messages.txt
| 
| #echo Sms received, parameters are: $@
| 
| ===
| 
| 
| The last echo line doesn't work... I get output into my file: 
incoming_sms_messages.txt, however it's strange that blank spaces are 
replaced by the +-sign... A bit annoying... I'm still thinking about 
recompiling everything with debug flags and set a breakpoint to see what is 
going on. I know C and C++, so I think there's a chance that I could fix the 
space - + problem and then also learn a bit :-)
| 
| 
| I'm also thinking about modifying my sms.sh script so that users for instance 
can vote (by sending an sms with keyword vote or something as first word) and 
the sms.sh script then automatically does something based on the contents of 
the sms (stores sms phone numbers, also it should be impossible to vote twice 
from the same phone number)... I think/hope I can do this myself - however, if 
you have any hints/clues, please let me know :-)
| 
| And then I want to use lynx to auto-generate a receipt based on the vote 
(thank you for your vote on )... That would be a nice assignment for me 
to do in the coming week :-)
| 
| 
| 
| Regards,
| Martin
| 
| On Jun 7, 2010, at 3:34 PM, Thomas Sieh wrote:
| 
|  
|  hi,
|  
|  but when you run the script by typing 
|  /Users/path/to/the/script/sms.sh x y z
|  n your console you get any output to 
|  the sms_messages.txt file?
|  
|  Another thing you can try is typing in your terminal:
|  
|  which bash
|  
|  possibly you have to correct the path to your bash in the first row.
|  
|  if you get a output into the file, then it should be a problem with
|  kannel.
|  
|  i think you have make much changes in the sms.sh already. how it looks
|  currently? 
|  
|  br,
|  thomas
|  
|  
|  On Mon, Jun 07, 2010 at 02:01:27PM +0200, Martin J. wrote:
|  | Wow, this was really timeconsuming challenge for me...
|  | 
|  | Had to spend plenty of hours on googling for the exec line to see how 
other people did it and nothing worked, including write permissions etc. etc
|  | 
|  | I even began to dig into the source code to try to see if there was/is a 
bug somewhere. I think the exec-code gets executed in ./gw/urltrans.c?
|  | 
|  | I was thinking about recompiling everything with debug flags (-o0 -g, 
AFAIR) and then set a breakpoint just before running the exec-code (btw: what 
should I remember if I recompile with full debug flags, if anything?)...
|  | 
|  | I finally succeeded by finding a piece of a configuration file that I 
stole from. Here's my new config-part regarding sms-service (and this solved my 
problem):
|  | 
|  | --
|  | group = sms-service
|  | keyword = default
|  | exec = ./sms.sh a=%a t=%t q=%q Q=%Q I=%I d=%d A=%A F=%F n=%n c=%c m=%m 
M=%M C=%C u=%u B=%B o=%o O=%O f=%f
|  | # if max-messages = 0, then error No reply sent, denied
|  | max-messages = 0
|  | #text = Thank you! I appreciate your sms...
|  | concatenation = true
|  | catch-all = yes
|  | #white-list = http://localhost/whitelist;
|  | --
|  | 
|  | After I have looked a bit in urltrans.c, I believe my problem was that I 
DIDN'T comment out the text-field and I guess that EITHER you have a 
text-reply (Thank you!. ...) OR you have an exec-statement... Am I right?
|  | 
|  | At least it works now using above config-file... I'm only a bit annoyed 
by the fact that in  my incoming sms text file, all blank spaces are made

Re: configure isn't creating a make

2010-06-07 Thread Thomas Sieh
have you installed make?
try in the console

which make

otherwise

search for make in synaptics or type 
sudo apt-get install make


On Mon, Jun 07, 2010 at 01:07:24PM -0400, Ian Ring wrote:
 I've run ./configure, and it spews out piles of stuff.
 The first time I ran it, I was missing libxml... so I installed that.  
 Now it seems to be configuring OK because I see the license information 
 at the end, no error messages, and one of the lines says config.status: 
 creating Makefile

 As instructed in the docs, I type make, and this is the response:

 -bash: make: command not found

 So what am I doing wrong?

 Some of the configure output says:
 checking for /blah blah blah ... no
 checking for /blah blah blah ... no
 checking for /blah blah blah ... no

 Are all of these things required? Most of them are yes, but there are 
 some no's scattered throughout.

 Apologies for being a relatively new Linux user

 Ian


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
hi,

if you want to receive messages you have to set up a sms-service in your
config. there are multiple ways. you can send the content via parameters
to a script (see exec) or to an url, for example (get-url). the content
of the message is accessible by the parameters like %b for full binary
message, %p for the sender-number... (see documentation).
two very simple examples:
1.
  exec = /home/thomas/sms.sh %q %Q %t %u %a %b

  sms.sh:
#!/bin/bash

for var in $@; do
  echo $var | tee -a /home/goofy/sms_message.txt
done
echo --- | tee -a /home/thomas/sms_message.txt

2.
  get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a

  http://127.0.0.1/receive_sms:

  ?php
$from = $_GET['from'];
$date = $_GET['date'];
$text = $_GET['text'];
echo The message - From: .$from., Date: .$date., Text: 
.$text.\r\n;
  



For sending sms in a script you can use lynx -dump ... for example or
the GET and POST commands.
For example:
lynx -dump 
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095text=insert+you+text+here;
your sending string should be inside a loop over an array with the
destination addresses.


BR,
Thomas


On Sun, Jun 06, 2010 at 05:04:08PM +0200, Martin J. wrote:
| Hi,
| 
| I have a newbie question: I just started to use Kannel and successfully made
| this work:
| 
| ./bearerbox -v 1 sms_GATEWAY_k700i.conf
| ./smsbox sms_GATEWAY_k700i.conf
| 
http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=30957095text=(insertyou
| text here)
| 
| So, I can send sms'es... Still haven't figured out how to receive them yet,
| however... My question is this: I'm volunteer in an organization and we
| talked about the possibility of having this kannel-software send out mass
| sms'es to multiple recipients... However, I don't want to type each sms
| message in the browser bar... I don't know much about http
| send/get/receive/whatever so I hoped I could just send sms'es from the
| terminal/console under Mac os X
| 
| How to send sms'es from terminal, so I can make a script to send same
| message to multiple sms recipients?
| 
| 
| Thanks...


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
hi again,

At first you have to declare the location, which will handle the
incoming messages. In your case you selected in your config at group = 
sms-service
get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a;.

You have to run an http server at your localhost. in its content root-directory
(for example in /var/www/) have to exist a script with the name 
receive_sms.php, 
if you use php. the file is very dependent on your environment - will
you store your messages in a database, in flat files, which data do you
need, ... the php script from my previous mail safes the parameter in
variables, with whom you can handle the content of the messages.
thats is!

if you would create a sms-service group with exec = /home/thomas/sms.sh %q %Q 
%t %u %a %b
instead of your get-url line, only then you have to use the sms.sh script
I have sent in the last mail.
In this case the config says that the incoming messages have to be
handled by the script sms.sh. in my example it was a little bash
script. you have to adjust the path in the config file accourding to the
destination of it in your filesystem. this basic script writes the
incoming message content into a flat file. you have to change the path
to the sms_message.txt according to your filesystem, too. 
The file you have pasted with cat containt my users home, not your :)
It should look like /Users/yourUserName/sms_message.txt on a mac.

if your http-server is online und you have started your kannel
(bearerbox and smsbox) you can open the link 
http://localhost:13000/store-status?password=bar;
there you can see your outgoing sms in the queue. 

i don't know the init string of your handset, but in the internet
someone wrote init-string = AT+CNMI=2,3,0,0,0  works.
you could try it.


BR,
Thomas



On Sun, Jun 06, 2010 at 07:35:53PM +0200, Martin J. wrote:
| Hello,
| 
| Thanks a lot (also to Rene K.). I somehow made it reply with the message:
| Could not fetch content, sorry, but I'll google that and look in the
| archive later about that...
| 
| Forgive me for the stupid question, but I still don't completely understand
| the 2 examples (exec and get-url)...
| 
| Re.1)
| /gateway/gw
| macbookpro:gw mac$ cat sms.sh
|  #!/bin/bash
| 
|for var in $@; do
|  echo $var | tee -a /home/goofy/sms_message.txt
|done
|echo
| 
| What do I do next/what do you do next? This is probably a very stupid
| question, but when does the sms.sh run? Will it be called from ./smsbox or
| ./bearerbox and do I need to modify my .conf-file?
| 
| 
| Re.2)
| I modified my .conf-file (get-url) and tried browsing to
| http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a but I think I have to
| struggle with my AT command list / init... I don't think I have the exact
| right init-list...
| 
| If anyone has any comments, here's my config-file...
| 
| 
| 
| 
| group = core
| admin-port = 13000
| smsbox-port = 13001
| 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
| 
| group = modems
| id = ericsson
| name = Sony Ericsson 
| detect-string = K700
| # AT+CMEE=1 gives extra error information!
| #
| # use this init-string for non sim-buffering
| #init-string = AT+CNMI=3,2,0,0;+CMEE=1
| # use this init-string for sim-buffering
| init-string = AT+CNMI=2,3,0,1,0;+CMEE=1
| keepalive-cmd = AT+CSQ
| reset-string = ATZ
| message-storage = ME
| broken = true
| 
| group = smsc
| smsc = at
| modemtype = ericsson
| device = /dev/cu.MartinsPhone-SerialPort2
| log-level = 0
| log-file = MJ_log_DELETE_THIS.txt
| #speed = 9600
| #validityperiod = 167
| 
| group = smsbox
| bearerbox-host = 127.0.0.1
| sendsms-port = 13013
| global-sender = 13013
| #sendsms-chars = 0123456789 +-
| #log-file = /tmp/smsbox.log
| #log-level = 0
| #access-log = /tmp/access.log
| 
| group = sendsms-user
| username = tester
| password = foobar
| #user-deny-ip = 
| #user-allow-ip = 
| 
| #group = sms-service
| #keyword = nop
| #text = You asked nothing and I did it!
| 
| # There should be always a 'default' service. This service is used when no
| # other 'sms-service' is applied.
| 
| group = sms-service
| keyword = default
| #text = No service specified
| get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a
| 
| 
| 
| 
| 
| Regards,
| Martin
| 
| 
| 
| On Jun 6, 2010, at 5:51 PM, Thomas Sieh wrote:
| 
| hi,
| 
| if you want to receive messages you have to set up a sms-service in your
| config. there are multiple ways. you can send the content via parameters
| to a script (see exec) or to an url, for example (get-url). the content
| of the message is accessible by the parameters like %b for full binary
| message, %p

Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
 [977] [6] ERROR: System error 1: Operation not permitted
| 2010-06-06 22:21:58 [977] [6] INFO: AT2[/dev/cu.MartinsPhone-SerialPort2]:
| Closing device
| 2010-06-06 22:21:58
| 
| 
| So: I think I need a new init-string and I hope that init-string can enable
| me to read text message and extract them from the phone... It's a good thing
| that it at least gets the CMTI notification, so it understands that it
| received a message
| 
| Any clues from here on?
| 
| Thanks for all the help...
| 
| 
| Regards,
| Martin
| 
| 
| 
| On Jun 6, 2010, at 8:53 PM, Thomas Sieh wrote:
| 
| hi again,
| 
| At first you have to declare the location, which will handle the
| incoming messages. In your case you selected in your config at group =
| sms-service
| get-url = http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a;.
| 
| You have to run an http server at your localhost. in its content
| root-directory
| (for example in /var/www/) have to exist a script with the name
| receive_sms.php,
| if you use php. the file is very dependent on your environment - will
| you store your messages in a database, in flat files, which data do you
| need, ... the php script from my previous mail safes the parameter in
| variables, with whom you can handle the content of the messages.
| thats is!
| 
| if you would create a sms-service group with exec = /home/thomas/sms.sh %q
| %Q %t %u %a %b
| instead of your get-url line, only then you have to use the sms.sh script
| I have sent in the last mail.
| In this case the config says that the incoming messages have to be
| handled by the script sms.sh. in my example it was a little bash
| script. you have to adjust the path in the config file accourding to the
| destination of it in your filesystem. this basic script writes the
| incoming message content into a flat file. you have to change the path
| to the sms_message.txt according to your filesystem, too.
| The file you have pasted with cat containt my users home, not your :)
| It should look like /Users/yourUserName/sms_message.txt on a mac.
| 
| if your http-server is online und you have started your kannel
| (bearerbox and smsbox) you can open the link 
| http://localhost:13000/store-status?password=bar;
| there you can see your outgoing sms in the queue.
| 
| i don't know the init string of your handset, but in the internet
| someone wrote init-string = AT+CNMI=2,3,0,0,0  works.
| you could try it.
| 
| 
| BR,
| Thomas
| 
| 
| 
| On Sun, Jun 06, 2010 at 07:35:53PM +0200, Martin J. wrote:
| | Hello,
| |
| | Thanks a lot (also to Rene K.). I somehow made it reply with the message:
| | Could not fetch content, sorry, but I'll google that and look in the
| | archive later about that...
| |
| | Forgive me for the stupid question, but I still don't completely
| understand
| | the 2 examples (exec and get-url)...
| |
| | Re.1)
| | /gateway/gw
| | macbookpro:gw mac$ cat sms.sh
| |  #!/bin/bash
| |
| |for var in $@; do
| |  echo $var | tee -a /home/goofy/sms_message.txt
| |done
| |echo
| |
| | What do I do next/what do you do next? This is probably a very stupid
| | question, but when does the sms.sh run? Will it be called from ./smsbox or
| | ./bearerbox and do I need to modify my .conf-file?
| |
| |
| | Re.2)
| | I modified my .conf-file (get-url) and tried browsing to
| | http://127.0.0.1/receive_sms?from=%qdate=%ttext=%a but I think I have to
| | struggle with my AT command list / init... I don't think I have the exact
| | right init-list...
| |
| | If anyone has any comments, here's my config-file...
| |
| |
| | 
| |
| | group = core
| | admin-port = 13000
| | smsbox-port = 13001
| | 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
| |
| | group = modems
| | id = ericsson
| | name = Sony Ericsson 
| | detect-string = K700
| | # AT+CMEE=1 gives extra error information!
| | #
| | # use this init-string for non sim-buffering
| | #init-string = AT+CNMI=3,2,0,0;+CMEE=1
| | # use this init-string for sim-buffering
| | init-string = AT+CNMI=2,3,0,1,0;+CMEE=1
| | keepalive-cmd = AT+CSQ
| | reset-string = ATZ
| | message-storage = ME
| | broken = true
| |
| | group = smsc
| | smsc = at
| | modemtype = ericsson
| | device = /dev/cu.MartinsPhone-SerialPort2
| | log-level = 0
| | log-file = MJ_log_DELETE_THIS.txt
| | #speed = 9600
| | #validityperiod = 167
| |
| | group = smsbox
| | bearerbox-host = 127.0.0.1
| | sendsms-port = 13013
| | global-sender = 13013
| | #sendsms-chars = 0123456789 +-
| | #log-file = /tmp/smsbox.log
| | #log-level = 0
| | #access-log = /tmp/access.log
| |
| | group = sendsms-user
| | username = tester
| | password = foobar

Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
hi,

have you set execution permission for the script?

BR,
Thomas


On Mon, Jun 07, 2010 at 03:36:59AM +0200, Martin J. wrote:
| Hi,
| 
| Ok, now I'm closer than ever... the link below has +rw and now smsbox
| reads the message and my phone number, when it receives an sms... The
| only thing I'm missing now, is that for some reason the exec-script
| isn't run... See my other post...
| 
| 
| Regards,
| Martin
| 
| 2010/6/7 Nikos Balkanas nbalka...@gmail.com:
|  Hi,
| 
|  Please make sure that:
| 
|  /dev/cu.MartinsPhone-SerialPort2
| 
|  has read/write permissions for kannel user (or any other user you run kannel
|  under). In ubuntu systems you just need to assign group dial to kannel user.
| 
|  BR,
|  Nikos


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
hi,

If you run the script from the terminal the variables %q %t %u can't be
resolved. you should see %q %t %u instead in the file. 
But if you send a message per sms to your k700, they should be replaced
by the sender, the time and the UDH.

have you got write permission to the file with the content? you could 
create it as the user who executes the script and check for
write permissions.

BR,
Thomas

On Mon, Jun 07, 2010 at 04:07:49AM +0200, Martin J. wrote:
| On Mon, Jun 7, 2010 at 3:59 AM, Thomas Sieh ts...@gmx.de wrote:
|  hi,
| 
|  have you set execution permission for the script?
| 
|  BR,
|  Thomas
| 
| Hi,
| 
| Yep, that's not the problem... I typed in:
| /Users/mac/Documents/gateway/gw/sms.sh in the terminal and in ran. I
| also tried two config-file versions:
| 
| 1) exec = /Users/mac/Documents/gateway/gw/sms.sh %q %t %u
| 2) exec = /Users/mac/Documents/gateway/gw/sms.sh %q %t %u
| 
| (with and without / including and excluding the double ticks  ).
| Still: No luck - I don't understand this...
| 
| 
| Regards,
| Martin


signature.asc
Description: Digital signature


Re: Newbie: How to send multiple messages to sms recipients?

2010-06-06 Thread Thomas Sieh
this should not be your problem. if you execute the script by hand and
you don't get the corresponding output in the result file, there is a
problem with the script. I think with the permission from the
resultfile, if you have execute permissions to the script file.

br,
thomas




On Mon, Jun 07, 2010 at 04:24:47AM +0200, Martin J. wrote:
| BTW:
| 
| I have one idea, but I hope it doesn't have anything to do with that...
| 
| I didn't wanted Kannel to install all kinds of garbage in /usr/bin and
| /etc or wherever it wanted to install itself. Therefore I didn't do a
| make install, just make and I'm running the binaries right out from
| sub-directory gw...
| 
| This means I'm running ./bearerbox -v 1 config_file.conf + ./smsbox
| config_file.conf BUT if these executables try to look for some other
| parts of itself in /usr/bin or wherever, then this is probably why it
| doesn't work for me...
| 
| Any developers here that knows if this is my problem with exec?
| 
| 
| Regards,
| Martin
| 
|  the following  error looks a little bit like not enough permissions.
|  i'm not sure, but i would try to open the permissions to your device
|  (the file in /dev/...) and try it again. or better make the kannel-user
|  owner of the device.
| 
|  2010-06-06 22:21:30 [977] [6] ERROR: System error 1: Operation not
|  permitted
| 
|  maybe this is the problem.
| 
|  When smsbox receives and sms it writes:
| 
|  == 2010-06-07 03:27:23 [2050] [4] INFO: Starting to service HERE'S
|  MY EXACT TEXT/SMS MESSAGE FROM MY OTHER MOBILE PHONE! from == +45
|  HERE'S ORIGINATOR PHONE NUMBER to 1234
|  == 2010-06-07 03:27:23 [2050] [4] DEBUG: formatted text answer:
|  Thank you! I appreciate your sms...
|  == 2010-06-07 03:27:23 [2050] [4] INFO: No reply sent, denied.
| 
|  Thank you! I appreciate your sms... is my text-entry under group =
|  sms-service and I've set max-messages = 0, which causes the No reply
|  sent, denied so everything's fine - EXCEPT one little thing in line
|  124 below:
| 
|  =
|  119 2010-06-07 03:47:59 [2111] [6] INFO:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     AT SMSC successfully
|  opened.
|  120 2010-06-07 03:47:59 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     -- OK
|  121 2010-06-07 03:48:25 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     -- +CMTI: ME,24
|  122 2010-06-07 03:48:25 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     +CMTI incoming SMS
|  indication: +CMTI: ME,24
|  123 2010-06-07 03:48:27 [2111] [6] INFO:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     CMTI received, but no
|  message-storage is set in confiuration.setting now to     ME
|  124 2010-06-07 03:48:27 [2111] [6] INFO: System error 2: No such file
|  or directo    ry
|  125 2010-06-07 03:48:27 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     -- AT+CPMS=ME^M
|  126 2010-06-07 03:48:27 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     -- +CPMS:
|  24,98,0,100,24,98
|  127 2010-06-07 03:48:27 [2111] [6] DEBUG:
|  AT2[/dev/cu.MartinsPhone-SerialPort2]:     -- OK
|  =
| 
| 
|  I'm very sure the line (124) saying: INFO: System error 2: No such
|  file or directory has something to do with my exec-function
|  failing... Here's my config-file, I hope somebody has any suggestions,
|  because then everything will work perfectly, I think :-)
| 
| 
|  - new config file
|  -
|  # CORE
|  #
|  # There is only one core group and it sets all basic settings
|  # of the bearerbox (and system). You should take extra notes on
|  # configuration variables like 'store-file' (or 'store-dir'),
|  # 'admin-allow-ip' and 'access.log'
| 
|  group = core
|  admin-port = 13000
|  smsbox-port = 13001
|  admin-password = bar
|  #status-password = foo
|  #admin-deny-ip = 
|  #admin-allow-ip = 
|  log-file = kannel.log.txt
|  log-level = 0
|  box-deny-ip = *.*.*.*
|  box-allow-ip = 127.0.0.1
|  #unified-prefix = +358,00358,0;+,00
|  access-log = access_core.log.txt
|  store-file = kannel.store.txt
|  #ssl-server-cert-file = cert.pem
|  #ssl-server-key-file = key.pem
|  #ssl-certkey-file = mycertandprivkeyfile.pem
| 
|  group = modems
|  id = ericsson
|  name = Sony Ericsson 
|  detect-string = K700
|  # AT+CMEE=1 gives extra error information!
|  #
|  init-string = AT+CNMI=2,1,0,0,0;+CMEE=1
|  #keepalive-cmd = AT+CSQ
|  reset-string = ATZ
|  #message-storage = ME
|  #broken = true
| 
| 
|  #-
|  # SMSC CONNECTIONS
|  #
|  # SMSC connections are created in bearerbox and they handle SMSC specific
|  # protocol and message relying. You need these to actually receive and send
|  # messages to handset, but can use GSM modems as virtual SMSCs
| 
|  group = smsc
|  smsc = at
|  modemtype = ericsson
|  device = /dev/cu.MartinsPhone-SerialPort2
|  log-level = 0
|  log-file = 

WAP-Push with Nokia 6210 as SMSC

2010-05-23 Thread Thomas Sieh
Hi @all,

I have got a Nokia 6210 as SMSC. When I send a WAP Push message to the
PPG I get a unforseeable number of Generic Errors - up to 30 - and then 
it will send the message successfully. What could be the Problem?
I have tryed already to change sleep-times and other modem options 
without success.

BR,
Thomas

The error messages:
...
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- ERROR
2010-05-23 20:18:32 [11694] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: -1
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=94^M
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- ERROR
2010-05-23 20:19:35 [11694] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: -1
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=94^M
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
2010-05-23 20:20:38 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
2010-05-23 20:20:38 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: -- +CMGS: 36
2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: -- OK
2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 0


My Configuration:

group = smsc
smsc-id = SMSC_01
smsc = at
modemtype = nokiaphone
speed = 19200
device = /dev/ttyUSB0
sms-center = +49177061
my-number = +491577xx
log-file = /var/log/kannel/smsc.log
log-level = 0
keepalive = true

group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
#need-sleep = true
#sendline-sleep = 1000
init-string = AT+CNMI=1,2,0,1,0
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 100
users = 1024
trusted-pi = true
ppg-allow-ip = *.*.*.*
ppg-smsbox-id = sms_box
default-smsc = SMSC_01

group = wap-push-user
ppg-username = tester
ppg-password = foobar
allow-ip = *.*.*.*
default-smsc = SMSC_01



signature.asc
Description: Digital signature


Re: WAP-Push with Nokia 6210 as SMSC

2010-05-23 Thread Thomas Sieh
Hi @all again,

I found the mistake by myself... keepalive = true is not a valid value. After
changing to 5 it works fine. How stupid :)

Thanks
Thomas

On Sun, May 23, 2010 at 08:41:15PM +0200, Thomas Sieh wrote:
| Hi @all,
| 
| I have got a Nokia 6210 as SMSC. When I send a WAP Push message to the
| PPG I get a unforseeable number of Generic Errors - up to 30 - and then 
| it will send the message successfully. What could be the Problem?
| I have tryed already to change sleep-times and other modem options 
| without success.
| 
| BR,
| Thomas
| 
| The error messages:
| ...
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
| 2010-05-23 20:18:31 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
| 2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
| 2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
| 2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: -- ERROR
| 2010-05-23 20:18:32 [11694] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
| 2010-05-23 20:18:32 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: -1
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=94^M
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
| 2010-05-23 20:19:34 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
| 2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
| 2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
| 2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: -- ERROR
| 2010-05-23 20:19:35 [11694] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
| 2010-05-23 20:19:35 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: -1
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- AT+CMGS=94^M
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: -- 
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 1
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --0051000D9194714669
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --4494F60004A74F0605
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --040B8423F605AE
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --8DC0C39302056A0045
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --C60811033132373436
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --3337333837000C0377
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --61702E676F6F676C65
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --2E636F6D0001035468
| 2010-05-23 20:20:37 [11694] [6] DEBUG: AT2[SMSC_01]: --697320697320612066
| 2010-05-23 20:20:38 [11694] [6] DEBUG: AT2[SMSC_01]: --75636B696E67207465
| 2010-05-23 20:20:38 [11694] [6] DEBUG: AT2[SMSC_01]: -- 7374000101
| 2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: -- +CMGS: 36
| 2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: -- OK
| 2010-05-23 20:20:43 [11694] [6] DEBUG: AT2[SMSC_01]: send command status: 0
| 
| 
| My Configuration:
| 
| group = smsc
| smsc-id = SMSC_01
| smsc = at
| modemtype = nokiaphone
| speed = 19200
| device = /dev/ttyUSB0
| sms-center = +49177061
| my-number = +491577xx
| log-file = /var/log/kannel/smsc.log
| log-level = 0
| keepalive = true
| 
| group = modems
| id = nokiaphone
| name = Nokia Phone
| detect-string = Nokia Mobile Phone
| #need-sleep = true
| #sendline-sleep = 1000
| init-string = AT+CNMI

Re: Motorola Razr V3 SMS Receive

2010-05-13 Thread Thomas Sieh
On Wed, May 12, 2010 at 09:03:04PM +0300, Nikos Balkanas wrote:
 Hi,

 Your email reached us as a series of attachments. Weird.

crazy :)


 No. I mean sending from your Motorolla mobile, that is used as a modem, 
 to another mobile, that can accept wap pushes. Have you tried it?

How to send wap push from mobile without terminal? 
To avoid misunderstanding. I connected minicom to my Razr v3
and sent a push message to an wap push enabled handset.



 BR,
 Nikos


signature.asc
Description: Digital signature


Re: Motorola Razr V3 SMS Receive

2010-05-12 Thread Thomas Sieh
On Wed, May 12, 2010 at 08:15:11AM +0300, Nikos Balkanas wrote:
 Hi,

 You mentioned that this is a phone, not a dedicated modem. Have you tried 
 pushing wap phone to phone? Some of the destination phones are not setup 
 to receive ppg by default.

I have configured the receiver handset to accept wap push. you are
talking from sending a push-message from a terminal like minicom?
It seems that the Phone is not able to send push messages. If I try to
send it there is no reaction. i don't get a result if it was send or
not. If I send a normal Message thats ok.



 BR,
 Nikos
 - Original Message - From: Thomas ts...@gmx.de
 To: users@kannel.org
 Sent: Wednesday, May 12, 2010 2:19 AM
 Subject: Re: Motorola Razr V3 SMS Receive



 Hello list,

 I am able to configure Kannel to work with my Motorola Razr as a modem
 via USB cable and everything seems fine.  I can send SMS with no
 problem.

 The issue I have is I cannot receive SMS into Kannel.  The phone
 receives the message but not Kannel, is there a way to pull it into
 Kannel or maybe a config option I missed?

 Is the init-string complete?

 Here is my modem.conf entry for the Motorola



 Thanks,
 Steve Totaro
 http://www.asteriskhelpdesk.com
 KB3OPB




 Hi Steve,

 I can send and receive SMS with my Motorola RAZR V3.
 But I'm currently not able to send WAP Push messages
 and I can't say if this is not possibly the reason for it.
 Maybe the phone is not able to send Messages with UDH?!?

 I am using the following init-string:

 init-string = AT+CMEE=2;+CNMI=3,1,0,0,0

 Hope you can solve you issues with this info.
 If you can send WAP Push, please give me a sign ;)

 Best regards
 Thomas



signature.asc
Description: Digital signature