Export to GitHub

imsdroid - issue #64

Bad presence document (rfc4479)


Posted on Sep 17, 2010 by Happy Lion

What steps will reproduce the problem? 1.Start IMSDroid and activate presence 2.Sign in

What is the expected output? What do you see instead? The presence document does not include the deviceID element as child od the device element as specified in RFC4479

What version of the product are you using? On what operating system? imsdroid-1.0.285

Comment #1

Posted on Sep 21, 2010 by Swift Cat

The client adds the device id as attribute of the device element (...). Could you please send the PUBLISH request. Thanks.

Comment #2

Posted on Sep 21, 2010 by Happy Lion

Hi,

First thanks for this great client.

Here is the published document attached as pcap

As you can see, this document contains the device element :

open

But according to RFC 4479 :

" Each element has a mandatory "id" attribute, which contains the occurrence identifier for the device. Like , contains any number of elements that indicate status and characteristic information. This is followed by , which contains the URN for the device ID for this device. " And here the is missing.

Considering that on android the urn could be :

"tel:"+(TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)..getDeviceId()

The device element should be :

open

<pdm:deviceID>tel:XXXXXXXXXXX</pdm:deviceID>

Regards

Attachments

Comment #3

Posted on Sep 21, 2010 by Swift Cat

As it's an URN it should be "urn:tel:XXXXXXXXXXX". Is it right?

Comment #4

Posted on Sep 21, 2010 by Happy Lion

Hi again

Yes, you're right, according to RFC2141, it must be something like :

urn:foo:XXXX

Regards

Comment #5

Posted on Sep 21, 2010 by Swift Cat

getDeviceId() returns the IMEI/MEID while getLine1Number() returns the MSISDN but only work on OS version 2.0 and later. Do you know how to get the phone number starting OS version 1.5? In the coming version the deviceID value will be "urn:tel:+33XXXXXXX" if the MSISDN is not null and "urn:imei:XXXXXX" otherwise.

Comment #6

Posted on Sep 21, 2010 by Swift Cat

SVN revision 288 solve the issue.

Comment #7

Posted on Sep 21, 2010 by Happy Lion

Thanks!

Comment #8

Posted on Sep 28, 2010 by Swift Cat

Fixed in 1.0.292.

Status: Fixed

Labels:
Type-Defect Priority-Medium