Re: [reSIProcate] createContents() of reSiprocate
Take a look at this page for some help using Contents classes.
http://wiki.resiprocate.org/wiki/index.php?title=Bodies
To build a Pidf mime-type, you can also use the Pidf class (see Pidf.hxx)
On 8/11/06, ajay.kaushik@xxxxxxx <ajay.kaushik@xxxxxxx> wrote:
Hi all,
I'm using resiprocate Stack to build the Instant Messaging/Presence Server.
My problem is that when i use createContents function of Contents.cxx file
my prog crashes in that function.
Has anybody worked in that field.
here is how i'm using the creatContent function
Mime type("application","pidf+xml);
Data Contents(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"<presence
xmlns:impp=\"urn:ietf:params:xml:ns:pidf\"
entity=\"pres:preeti@xxxxxxxxxxxxxx\">\r\n"
"<tuple id=\"765\">\r\n"
"<status>\r\n"
"<basic>open</basic>\r\n"
"</status>\r\n"
"</tuple>\r\n"
"</presence\r\n"
"\r\n");
Contents *cont=Contents::createContents(type,contents);
when my prog steps into createContents it say assertion(!contents.mMine)
failed.
Is there any thing related to HeaderFieldValue also because while debugging
i found that hfv was not defined in that context.
May be i'm missing a small thing but my code crashes again n again.
If any body can provide me with the sample code for creating contents that
will be of great help to me.
Thanks in advance
Ajay Kaushik
Tata Consultancy Services Limited
Mailto: ajay.kaushik@xxxxxxx
Website: http://www.tcs.com=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel