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 10:53:13 [20219] [10] DEBUG: HTTP: Destroying HTTPClient area 
0x1b3ee90.
2010-06-12 10:53:13 [20219] [10] DEBUG: HTTP: Destroying HTTPClient for 
`127.0.0.1'.
-----------------------------------------------------------------------------------------



-------------------------------smsc------------------------------------------------------
2010-06-12 10:53:38 [20160] [6] DEBUG: AT2[SMSC_01]: --> AT+CBC;+CSQ^M
2010-06-12 10:53:38 [20160] [6] DEBUG: AT2[SMSC_01]: <-- +CBC: 1,90
2010-06-12 10:53:38 [20160] [6] DEBUG: AT2[SMSC_01]: <-- +CSQ: 31,99
2010-06-12 10:53:38 [20160] [6] DEBUG: AT2[SMSC_01]: <-- OK
2010-06-12 10:54:00 [20160] [6] DEBUG: AT2[SMSC_01]: --> AT+CBC;+CSQ^M
2010-06-12 10:54:00 [20160] [6] DEBUG: AT2[SMSC_01]: <-- +CBC: 1,90
2010-06-12 10:54:00 [20160] [6] DEBUG: AT2[SMSC_01]: <-- +CSQ: 31,99
2010-06-12 10:54:00 [20160] [6] DEBUG: AT2[SMSC_01]: <-- OK
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: TP-Validity-Period: 24.0 
hours
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> AT+CMGS=86^M
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: <-- 
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: <-- >
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: send command status: 1
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 0051000D919471****
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> ****F60004A7470605
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 040B8423F0000605AE
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 8DB8C39302056A0045
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> C60811033132373633
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 3332373933000C0377
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 61702E676F6F676C65
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 2E636F6D0001035468
2010-06-12 10:54:18 [20160] [6] DEBUG: AT2[SMSC_01]: --> 697320697320612074
2010-06-12 10:54:19 [20160] [6] DEBUG: AT2[SMSC_01]: --> 657374000101
2010-06-12 10:54:19 [20160] [6] DEBUG: AT2[SMSC_01]: <-- ERROR
2010-06-12 10:54:19 [20160] [6] ERROR: AT2[SMSC_01]: Generic error: ERROR
2010-06-12 10:54:19 [20160] [6] DEBUG: AT2[SMSC_01]: send command status: -1
...
------------------------------------------------------------------------------------------



------------------------------bearerbox---------------------------------------------------
first logentries after sending the wappush...
2010-06-12 10:53:07 [20160] [2] DEBUG: HTTP: Creating HTTPClient for 
`127.0.0.1'.
2010-06-12 10:53:07 [20160] [2] DEBUG: HTTP: Created HTTPClient area 0xe41fc0.
2010-06-12 10:53:07 [20160] [3] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
2010-06-12 10:53:13 [20160] [15] DEBUG: boxc_receiver: got sms from wapbox
2010-06-12 10:53:13 [20160] [15] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:16 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:16 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: gwlist_len = 1
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:16 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:16 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:16 [20160] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2010-06-12 10:53:17 [20160] [3] DEBUG: HTTP: Resetting HTTPClient for 
`127.0.0.1'.
2010-06-12 10:53:46 [20160] [7] DEBUG: sms_router: gwlist_len = 1
2010-06-12 10:53:46 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:46 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:46 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:53:46 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:53:46 [20160] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2010-06-12 10:54:16 [20160] [7] DEBUG: sms_router: gwlist_len = 1
2010-06-12 10:54:16 [20160] [7] DEBUG: sms_router: handling message (0xe4a910 
vs 0xe4a910)
2010-06-12 10:54:16 [20160] [7] DEBUG: Message routed successfully.
2010-06-12 10:54:17 [20160] [1] DEBUG: Timeout for fd:53 appeares.
2010-06-12 10:54:17 [20160] [1] DEBUG: HTTP: Destroying HTTPClient area 
0xe41fc0.
2010-06-12 10:54:17 [20160] [1] DEBUG: HTTP: Destroying HTTPClient for 
`127.0.0.1'.
2010-06-12 10:54:19 [20160] [7] DEBUG: sms_router: handling message (0xe4e090 
vs 0xe4e090)
2010-06-12 10:54:19 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:54:19 [20160] [7] DEBUG: sms_router: handling message (0xe4e090 
vs 0xe4e090)
2010-06-12 10:54:19 [20160] [7] DEBUG: re-queing SMS not-yet-to-be resent
2010-06-12 10:54:19 [20160] [7] DEBUG: sms_router: time to sleep 30.00 secs.
...
------------------------------------------------------------------------------------------


-----------------------------------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 = +491770610000
my-number = +49157********
log-file = "/var/log/kannel/smsc.log"
log-level = 0
keepalive = 20

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
max-messages = 0
get-url = http://127.0.0.1/receive_sms?from=%q&date=%t&text=%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
---------------------------------------------------------------------------------------




Hi,

Can you post regular messages? It is extremely difficult to help you in a 
threaded environment, since attachments are not preserved in responses.

Please:

1) Repost original logs inline (not as attachments)
2) Post PAP and SI documents
3) Post detailed bb logs from the moment of first submission (with failed 
route command)

BR,
Nikos

Reply via email to