I will have to defer to the list on this one, I have never used wapbox, but a quick look in the code suggests the error response you are seeing is related to the validation of the pap message.

Have a look in the log files and see if you can see any other messages, I would expect maybe something like :-

PPG: transform_message: push content erroneous, cannot accept

Or

PPG: transform_message: push content non transformable

Regards

Ben



On 26 Mar 2007, at 11:04, 开 颜 wrote:

Thanks for your reply!
I did not say it clearly.
I didn't send a SMS to kannel.I sent a wap push message to kannel by using pap protocol.The message as follow:

Content-Type: multipart/related; boundary=WPL38woVbhESdfalYevGqpdzLCs; type="application/xml"
User-Agent: Jakarta Commons-HttpClient/3.0-rc3
Host: 202.108.*.*:8080
Content-Length: 981

--WPL38woVbhESdfalYevGqpdzLCs
Content-Type: application/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http:// www.wapforum.org/DTD/pap_1.0.dtd"> <pap><push-message push-id="[EMAIL PROTECTED]" ppg-notify-requested- to="http://127.0.0.1:11111/pushMsg/pushMsg?"; progress-notes- requested="false"><address address-value="WAPPUSH=+8613488795088/ [EMAIL PROTECTED]"/><quality-of-servicepriority="medium" delivery-method="notspecified" network-required="false" bearer- required="false"/></push-message></pap>
--WPL38woVbhESdfalYevGqpdzLCs
Content-Type: text/vnd.wap.si; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http:// www.wapforum.org/DTD/si.dtd"> <si><indication href="http://localhost:8080/portal/viewMail.do? mailUID=UID4-1170043317" si-id="[EMAIL PROTECTED]" action="signal- medium">新邮件:test002,</indication></si>
--WPL38woVbhESdfalYevGqpdzLCs--


In above message,there are some Chinese in it.But kannel do not accept it.Kannel's response is :

<?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd";><pap><push- response push-id="[EMAIL PROTECTED]" sender-name="push1; WAP/1.3 (Kannel/1.4.0)" reply-time="2007-03-26T09:25:44Z" sender-address="/ cgi-bin/wap-push.cgi"><response-result code ="3006" desc="PPG was unable to perform a transformation of the message"></response- result></push-response></pap>

And kannel's debug information is : Input is not proper UTF-8, indicate encoding ! And I know that to support Chinese I should set the data_coding as UCS2.But I don't know how to set it in the smsc config file.Please help!



Regards

Yankai

Reply via email to