< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Registration event pkg: XML parsing of NOTIFY body


Hi,
After successful subscription to Registration Event package, I am receiving a Notify from the server and the onUpdateActive callback function is being called. Now, Im trying to parse the NOTIFY body(whose contentType is application/reginfo+xml) as the following:

Pidf* body = dynamic_cast<Pidf*>(notify.getContents());

getContents is not returning anything and a debug print from the stack says:

SipMessage::getContents: got content type (application/reginfo+xml) that is not known, returning as opaque application/octet-stream.

As getContents is not returning anything, I could not parse through the body of NOTIFY message.

Can anybody tell what does it take to make getContents return the actual body in NOTIFY message??

Thanks and regards,
Purna Chandar M