Hi,
Wap push is snet over wapbox. Can you configure with debug and send the
result of re-attempt ?
Aarno
On 02 Jan 2008, at 10:12, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
Hi,
I should be able to check it on my SMPP log if it reach their site
for
processing. But so far nothing reach there. Will the request also will
reach smsbox in order to send out to SMPP server?
Regards,
SoNG
-----Original Message-----
From: Aarno Syvanen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 02, 2008 4:51 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: sending out Wap Push SMS problem
Hi,
First thing to check is anything leaves your computer. A ethereal
dump, for instance.
Aarno
On 02 Jan 2008, at 08:39, <[EMAIL PROTECTED]> wrote:
Hi,
I been setting up my Kannel SMS gateway to send out WAP Push SMS
message.
I been getting below message on wapbox.log.
2008-01-02 15:29:56 [3493] [14] INFO: PPG: Accept request </
wappush> from
<192.168.8.228>
2008-01-02 15:29:56 [3493] [14] INFO: client address was <
+XXXXXXXXX>,
accepted
2008-01-02 15:29:56 [3493] [14] INFO: reverting to default bearer and
network
2008-01-02 15:29:56 [3493] [14] INFO: PPG: handle_push_message: push
message accepted for processing
2008-01-02 15:29:56 [3493] [14] INFO: PPG: unconfirmed push
delivered to
OTA
2008-01-02 15:29:56 [3493] [0] WARNING: Received other message than
wdp/admin, ignoring!
It seem like from the message the push request has been successfully
received & processed. But the problem is i never manage to receive
any sms
on my mobile no. I have check my SMPP connection service log, no
request
have been received either. I been using below php code in sending
out WAP
Push sms.
<?
$country_code = '12';
$phone = '1234567890';
$push_url = 'http://wap.google.com';
$text = 'This is a test';
$smsc_id = 'mySMSCid';
send_wap_push($smsc_id, $country_code, $phone, $url, $text);
function send_wap_push($smsc_id, $country_code, $phone, $push_url,
$text)
{
$host = 'xxx.xxx.xxx.xxx';
$port = '8080';
$url = "http://$host:$port";
//$ppg_user = 'foo';
//$ppg_pass = 'bar';
$wap_push_id = function_that_generates_a_unique_id();
$body = "--multipart-boundary\r\n".
"Content-type: application/xml\r\n\r\n".
'<?xml version="1.0"?>'."\r\n".
'<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP
1.0//EN"'."\r\n".
'"http://www.wapforum.org/DTD/pap_1.0.dtd" >'."\r\n".
'<pap>'."\r\n".
'<push-message push-id="'.$wap_push_id.'">'."\r\n".
'<address
address-value="WAPPUSH=+'.$country_code.$phone.'/TYPE=PLMN <at>
ppg.nokia.com"/>'."\r\n".
'<quality-of-service delivery-method="unconfirmed"
network="GSM"
bearer="SMS"/>'.
"</push-message>\r\n".
"</pap>\r\n\r\n".
"--multipart-boundary\r\n".
"Content-type: text/vnd.wap.si\r\n\r\n".
'<?xml version="1.0"?>'."\r\n".
'<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI
1.0//EN"'."\r\n".
'"http://www.wapforum.org/DTD/si.dtd">'."\r\n".
"<si>\r\n".
'<indication action="signal-high"
si-id="'.$wap_push_id.'"
href="'.$push_url.'">'.$text.'</indication>'."\r\n".
"</si>\r\n".
"--multipart-boundary--\r\n";
$post = "POST /wappush HTTP/1.1\r\n".
"Host: $host:$port\r\n".
//"Authorization: Basic ".base64_encode("$ppg_user:
$ppg_pass")."\r\n";
"X-Kannel-SMSC: $smsc_id\r\n".
'Content-Type: multipart/related;
boundary=multipart-boundary;
type="application/xml"'."\r\n".
"Content-Length: ".strlen($body)."\r\n".
"\r\n".
$body;
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$reply = curl_exec($ch);
curl_close ($ch);
print_r($reply);
}
?>
Regards,
SoNG