RE: [reSIProcate] accessing headers parameters
Check out: http://www.sipfoundry.org/reSIProcate/using.txt
and the test programs from the test directories for samples.
...
IntegerParameter expires = 0;
if(sipmessage->header(h_Contacts).front().exists(p_expires))
{
expires = sipmessage->header(h_Contacts).front().param(p_expires);
}
-----Original Message-----
From: Gianluca Martiniello [mailto:gianluca.martiniello@xxxxxxxxxxxx]
Sent: Tuesday, November 23, 2004 6:55 AM
To: ''ReSiprocate' resiprocate-devel'
Subject: [reSIProcate] accessing headers parameters
Hi,
I am trying to use resiprocate to implement a registrar server. I need
to access various headers parameters (e.g. "expires" parameter in
contact header) and I wonder if there is some way to get a parameter
value from an header.
For instance, when I need to get the header contact from a sip message
what I do is:
NameAddrs contacts = sipmessage->header(h_Contacts);
Is there a similar method to get the parameters associated to this
header? Something like:
IntegerParameter expires = contacts.parameter(p_expires);
Thanks in advance,
Gianluca
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel