[reSIProcate] createContents() of reSiprocate
Jason Fischl
jason at counterpath.com
Fri Aug 11 13:33:43 CDT 2006
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 at tcs.com <ajay.kaushik at tcs.com> 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 at 172.21.111.222\">\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 at tcs.com
> 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 at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>
More information about the resiprocate-devel
mailing list