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

Purna Chandar M purnachandar.m at gmail.com
Tue Jul 10 07:48:14 CDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070710/bbdd8d62/attachment.htm>


More information about the resiprocate-devel mailing list