[pjsip] pjsip Presence

Benny Prijono bennylp at pjsip.org
Wed May 28 09:46:17 EDT 2008

On Wed, May 28, 2008 at 10:03 PM, André Teixeira
<coelho at wit-software.com> wrote:
> Hi,
> I'm trying to use pjsip presence to manage IM conference chat rooms.
> The problem is that when the SUBSCRIBE is sent it automaticaly contains
> Accept: application/pidf+xml, application/xpidf+xml.
> and I need to send  'conference-info+xml' in the NOTIFY.
> Every time a NOTIFY is sent containing conference-info+xml, pjsip
> responds with a 488 Not acceptable here.
> Is there a way to allow pjsip accept other content-types? such as the
> application/conference-info+xml that i MUST use?

Hi André,

In pjsip we have two layers of abstractions to handle event
subscription (on top of the usual dialog layer, transaction layer,
etc). The lower layer is evsub.c which handles the generic logic of
subscription (establishment, refreshing, etc.). Then on top of that,
we have event specific packages which handle specific event type and
content type. In pjsip, currently we only have one event package, that
is presence (presence.c).

So if you'd like to implement new type of event (and new content
type), you'd have to register new event package to evsub.c. This would
be similar to how presence.c is implemented, and IMO it shouldn't be
too hard either. For more information about the concept and how the
event subscription framework is implemented, please see the PJSIP
Developer's Guide PDF where these are explained in much more detail.


More information about the pjsip mailing list