Hi all, when I received a NOTIFY as this:
NOTIFY
sip:testuser2@xxxxxxxxxxxxxx:1506 SIP/2.0
Record-Route: <sip:222.185.245.45:8000;lr=on;ftag=942f620c>
Via: SIP/2.0/UDP 222.185.245.45:8000;branch=z9hG4bKb3c.58ab5075.0
Via: SIP/2.0/UDP 192.168.1.122:55418;received=
222.247.102.19;branch=z9hG4bK-d8754z-eb36bc535a43964e-1---d8754z-;rport=1197
Max-Forwards: 69
Contact: <sip:testuser1@xxxxxxxxxxxxxx:1197;rinstance=eedc4d9715a211ea>
To: "testuser2"<
sip:testuser2@xxxxxxxxxxxxxxxxxxxx:5060>;tag=5a01271d
From: "testuser1"<
sip:testuser1@xxxxxxxxxxxxxxxxxxxx:5060>;tag=942f620c
Call-ID: MWZiODcxNWU3YTg0NDdmMjY2NzU2MGVjNjg3Y2Y3Y2M.
CSeq: 3 NOTIFY
Content-Type: application/pidf+xml
User-Agent: Bria release 2.2 stamp 45414
Subscription-State: active;expires=3596
Event: presence
Content-Length: 397
<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:testuser1@xxxxxx'><tuple id='td346b629'><status><basic>open</basic></status></tuple><dm:person id='td346b629'>
<dm:note>Available</dm:note></dm:person></presence>
How to got the <dm::note> value ? I have read the stack/test/testpidf.cxx, but do not found any way.
there are my source code:
Pidf * pidf = dynamic_cast<Pidf *>(contents);
Data note = pidf->getTuples()[0].note;
But the note is empty.
Please help me and give me prompting.
Thanks