impathuri / imsdroid

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

How to create this xcap headline #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.We need to put a xcap message,but there is a problem that the headline is not 
the expected headline.
2.
3.

What is the expected output? What do you see instead?
The expected output is "PUT 
/xcap-ap-service/org.openmobilealliance.pres-rules/users/sip:aladdin@ims.chinamo
bile.com/pres-rules/~~/ruleset/rule%5B@id=%22rcs_allow_services_anonymous%22%5D 
HTTP/1.1"

The result we see is "PUT 
/xcap-ap-service/org.openmobilealliance.pres-rules/users/sip:8616610004444@erics
son5.beijing.ims.chinaunicom.cn/pres-rules/~~/org.openmobilealliance.pres-rules/
ruleset/rule%5B@id=%22rcs_allow_services_anonymous%22%5D HTTP/1.1\r\n"

What version of the product are you using? On what operating system?
We are using IMSDroid/v1.1.327(doubango r519) on Android2.2 OS.

Please provide any additional information below.
The source code and Wireshark package is attached.

Original issue reported on code.google.com by yuwenbin...@gmail.com on 4 Jan 2011 at 3:09

Attachments:

GoogleCodeExporter commented 8 years ago
The right source code...

Original comment by yuwenbin...@gmail.com on 4 Jan 2011 at 3:13

Attachments:

GoogleCodeExporter commented 8 years ago
What should I do to get the expected headline?

Original comment by yuwenbin...@gmail.com on 4 Jan 2011 at 3:20

GoogleCodeExporter commented 8 years ago
The code produced what you have requested ;)
The AUID will always comes right after the node selector (~~).
BTW, if you are trying to dev. an RCS client the rules are not managed like 
this but per list.
You can download Boghe IMS/RCS client (http://code.google.com/p/boghe/) to 
understand how pres-rules are used in RCS v2.x and later. 

Original comment by boss...@yahoo.fr on 4 Jan 2011 at 5:38

GoogleCodeExporter commented 8 years ago
Also note that it's not mandatory to use the selector in order to produce a 
XCAP Url. You can do this:

stack.putElement("http://doubango.org:8080/xcap-ap-service/org.openmobileallianc
e.pres-rules/users/sip:aladdin@ims.chinamobile.com/pres-rules/~~/ruleset/rule%5B
@id=%22rcs_allow_services_anonymous%22%5D", payload, len);

Original comment by boss...@yahoo.fr on 4 Jan 2011 at 6:06

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 26 Jan 2011 at 10:55