Python PJSUA - Struggling with rpidf presence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

Just started playing with PJSIP and after the usual initial struggle to get
it up and working. I now have a good proof of concept.

However I am really struggling on getting the Presence to work. Our SIP
platform uses RFC 4480 which I can see is supported, but in the default
setup it looks like PJSIP is not reading the additional fields

this is what I am trying to extract from the XML:

<presence xmlns="urn:ietf:params:xml:ns:pidf"
 xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
 xmlns:rp="urn:ietf:params:xml:ns:pidf:rpid"
entity="pres:02xxxxxxxxx at domain.co.uk">
<tuple
id="wrP8h.Vvw7aZYC4gi5xCB.A7.3YeE8gA:UhbkuR5fTXHHVec4y5vh-Er9C7uG3T4f:1361743276261-0">
<status>
<basic>open</basic>
</status>
<rp:class>Summary</rp:class></tuple>
<dm:person
id="wrP8h.Vvw7aZYC4gi5xCB.A7.3YeE8gA:UhbkuR5fTXHHVec4y5vh-Er9C7uG3T4f:1361743276261-1">
<status>
<basic>open</basic>
</status>
<rp:user-input>active</rp:user-input>
<rp:activities>
<rp:unknown/>
</rp:activities>
</dm:person>
</presence>

I decided to use the Python and pjsua setup as it seemed like the easiest,
but I cannot seem to manage to get the presence to be read successfully. It
looks like there are API commands to define the extra fields to be parsed,
but I cannot find them documented for Python. Am I missing something or is
this a limitation of the Python APIs?

This must be something quite basic that all have come across, but I could
not find anything in the help pages

Many thanks
Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130304/85c71d28/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux