[reSIProcate] generate generic pidf
Mateus Bellomo
mateusbellomo at gmail.com
Fri Jul 15 22:12:43 CDT 2016
I found a way of doing it but I don't know if it's ideal:
- first I create a GenericPidfContents gPidf;
- then I'm creating a new Node dm and setting the mNamespacePrefix,
mTag,... of it;
- then I add this dm node to gPidf node: gPidf.getRootNodes().push_back(dm).
The gPidf is the way I was expecting (the order is not but I think this is
not relevant) but I'm doing all this stuff outside of GenericPidfContents
class (I'm doing this at resip/recon/UserAgent class to generate a pidf to
a PUBLISH sip message). What do you think about it?
2016-07-15 22:32 GMT-03:00 <slgodin at gmail.com>:
> Right - there are only methods for setting simple presence. You would
> need to add your own methods.
>
> Scott
>
> Sent from my iPhone
>
> On Jul 15, 2016, at 9:00 PM, Mateus Bellomo <mateusbellomo at gmail.com>
> wrote:
>
> Yes, it is at [1]. But the examples are all generated hard coded style: it
> is created a Data type with the xml passed as string. This is the only way
> of doing this? I thought I could do this using methods from [2].
>
>
> [1]
> https://github.com/resiprocate/resiprocate/blob/master/resip/stack/test/testGenericPidfContents.cxx
> [2]
> https://github.com/resiprocate/resiprocate/blob/master/resip/stack/GenericPidfContents.hxx
>
> 2016-07-15 21:56 GMT-03:00 <slgodin at gmail.com>:
>
>> I believe there is a testGenericPidfContents file under resip/test with
>> lots of examples.
>>
>> Scott
>>
>> Sent from my iPhone
>>
>> On Jul 15, 2016, at 8:08 PM, Mateus Bellomo <mateusbellomo at gmail.com>
>> wrote:
>>
>> Hello,
>>
>> I need to generate a pidf with new kind of tuples. In fact I would like
>> to generate a tuple like this:
>>
>> <dm:person id="p1234">
>> <rpid: activities/>
>> </dm:person>
>>
>> Using GenericPidfContents [1] I was able to add some namespaces at
>> presence tag, but now I need also to add this extra tuples.
>>
>> Any help would be greatly appreciated.
>>
>> Thanks.
>>
>> [1]
>> https://github.com/resiprocate/resiprocate/blob/master/resip/stack/GenericPidfContents.hxx
>>
>> _______________________________________________
>> resiprocate-devel mailing list
>> resiprocate-devel at resiprocate.org
>> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20160716/16915356/attachment.htm>
More information about the resiprocate-devel
mailing list