Here's the basic idea:
for(Tokens::iterator i=header(h_Privacys).begin(); i!=header(h_Privacys).end();++i)
{ if(i->isWellFormed())
{
// Do stuff with *i
}
}
Best regards, Byron Campen Try this: header(h_Privacys).pop_front() You can get value having in privacy header as header/critical/none/user
regards, kundan
On Tue, Jul 15, 2008 at 10:35 AM, Sandeep Ammaladinna < sammaladinna@xxxxxxxxxxxxx> wrote: Hi Kundan,
The below example what you have presented tells how to set the values for the Privacy header, but it does not say how to get it. Please tell me how to get the values from the header.
Thanks and Regards, -Sandeep A
-----Original Message----- From: Kundan Kumar [mailto:kundancs@xxxxxxxxx] Sent: Tuesday, July 15, 2008 10:32 AM To: Sandeep Ammaladinna Cc: resiprocate-devel@xxxxxxxxxxxxxxx; resiprocate-users@xxxxxxxxxxxxxxx Subject: Re: [reSIProcate] Parsing of headers in Resiprocate
You can try to access header values as: Token xyz.value() = "header/critical/none"; SharedPtr<SipMessage> msg->header(h_Privacys).push_back(xyz); Regards, kundan On Mon, Jul 14, 2008 at 4:18 PM, Sandeep Ammaladinna <sammaladinna@xxxxxxxxxxxxx> wrote: Hi,
Can anybody out there help me how to parse the below header:
Privacy : user,header,session,critical;
I guess to access the header we have to use something like "header(h_Privacys)", but what is the procedure to access the header values like "user", "header", "session" and "critical".
A simple example (along with APIs) would really help me.
Thanks and Regards, -Sandeep A _______________________________________________ resiprocate-devel mailing list resiprocate-devel@xxxxxxxxxxxxxxx https://list.resiprocate.org/mailman/listinfo/resiprocate-devel -- KUNDAN KUMAR..... -- KUNDAN KUMAR..... _______________________________________________ resiprocate-devel mailing list
|