Re: Help: pap hearder error in content entity
"Guanghua Hou" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear sir,
Following is the PAP I sent.Please confirm: is it a right place for the 'x-wap-application-id' is appended?
"\r\n\r\n"
"--asdlfkjiurwgasf\r\n"
"Content-Type: application/xml\r\n\r\n"
"<?xml version=\"1.0\"?>"
"<!DOCTYPE pap PUBLIC \"-//WAPFORUM//DTD PAP//EN\""
" \"http://www.wapforum.org/DTD/pap_1.0.dtd\">"
"<pap>"
"<push-message push-id=\"[email protected]\""
" deliver-before-timestamp=\"2002-11-01T06:45:00Z\""
" deliver-after-timestamp=\"2000-02-27T06:45:00Z\""
" progress-notes-requested=\"false\">"
"<address address-value=\"WAPPUSH=+358408676001/"
"[email protected]\">"
"</address>"
"<quality-of-service"
" priority=\"low\""
" delivery-method=\"confirmed\""
" network-required=\"true\""
" network=\"GSM\""
" bearer-required=\"true\""
" bearer=\"SMS\">"
"</quality-of-service>"
"</push-message>"
"</pap>\r\n\r\n"
"--asdlfkjiurwgasf\r\n"
"Content-Type: text/vnd.wap.si\r\n"
"X-Wap-Application-Id: x-wap-application:wml.ua\r\n\r\n"
"<?xml version=\"1.0\"?>"
"<!DOCTYPE si PUBLIC \"-//WAPFORUM//DTD SI 1.0//EN\" "
" \"http://www.wapforum.org/DTD/si.dtd\">"
"<si>"
"<indication href=\"http://wap.iobox.fi\""
" si-id=\"[email protected]\""
" action=\"signal-high\""
" created=\"1999-06-25T15:23:15Z\""
" si-expires=\"2002-06-30T00:00:00Z\">"
"Want to test a fetch?"
"</indication>"
"</si>\r\n\r\n"
"--asdlfkjiurwgasf--\r\n\r\n"
"");
Would you pls tell me how to send a patch?
Best Regards,
Guanghua Hou
----- Original Message -----
From: Aarno Syvänen
To: Guanghua Hou
Cc: [email protected]
Sent: Tuesday, July 30, 2002 2:27 PM
Subject: Re: Help: pap hearder error in content entity
Guanghua Hou kirjoittaa tiistaina, 30. heinäkuuta 2002, kello 07:53:
Dear sir,
1. When I modified the test_ppg.c, a error happens:
If delivery-method is changed into 'confirmed', the push message can't be sent.I debug the Kannel1.2.0, the header X-Wap-Application-Id is needed. But when I add this header, it can't be parased.The mime_parase() function in pap_request_thread can't indentify X-Wap-Application-Id header.
I delete the first 'if' in pass_extension_header() of wap_push_pap_mime.c.The x-wap-application-Id is ok now.
It seems that you but X-WAP-Application-Id to wrong place. It is *not* a multipart part header !
2. When X-Wap-Application-Id's value is 'x-wap-application:wml.ua', delivery-method is 'confirmed' and there is no session for this terminal, error happens:
'coded_appid_value' is 2 in function handle_push_message of wap_push_ppg.c. Thus coriented_possible is 0. So no session is created. A warning "wrong appid" is generated.
This is as it should be, wml.ua is a wrong application id here.
BTW, I have adsked the question about port number encoding error in SIA PDU before.
Can you send a patch ? I will apply the patch to CVS. After some successful patches, you would get
commit rights yourself.
Btw, I start coding WTP SAR later this week. Then I would look after ppg bugs, too.
A