dvoina / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

Sending Remove PUBLISH which ask Expires:0 has a problem #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I want to set Expires:0,but Expires is still 86500
2.I call setExpires(0);  but it do not perform function.
3.

What is the expected output? What do you see instead?
Expires:0 is expected output.But I see Expires:86400

What version of the product are you using? On what operating system?
IMSDroid 1.1.343  on Android 2.2

Please provide any additional information below.
Attach my source code and message package from Wireshark.

com.hiyird.rcs.test and com.hiyird.rcs.config packages are my code.
In order to testing my PUBLISH code,I modify some code.
After Sign In and Registering success,when clicking exit,UE will send 
PUBLISH(initial PUBLISH),then click NO button of dialog "Are you sure you want 
to exit?",UE will send PUBLISH(remove PUBLISH, remove PUBLISH ask value of 
Expires header is 0). But in fact,Expires header of remove PUBLISH is still 
86400.
ScreenHome.java of org.doubango.imsdroid.Screens is modified.
else if(position == ScreenHome.itemExitPosition){
// send initial PUBLISH(Expires:86400)
// click "NO" button of "Are you sure you want to exit?" Dialog,then send 
// remove PUBLISH(should be Expires:0,but in fact Expires:86400)

PresenceService.java of com.hiyird.rcs.test is main code of sending PUBLISH

Original issue reported on code.google.com by nieyaol...@gmail.com on 17 Dec 2010 at 2:38

Attachments:

GoogleCodeExporter commented 9 years ago
To send such request, use "unPublish()" function.
According to your source code, you are trying to implement portrait-icon 
publication with xcap storage (GSMA RCS). For information, our Windows client 
(http://code.google.com/p/boghe/) support this function and you can check the 
source code. It's in Csharp but use the same API (Doubango).

Original comment by boss...@yahoo.fr on 20 Dec 2010 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 24 Dec 2010 at 12:34