[OpenSIPS-Users] extract expires header value
Uwe Kastens
kiste at kiste.org
Thu Jun 18 15:39:29 CEST 2009
Hi,
This could match:
http://www.opensips.org/Resources/DocsCoreVar#toc17
3.14 Contact instance
$ct - reference to contact instance/body from the contact header. A
contact instance is display_name + URI + contact_params. As a Contact
header may contain multiple Contact instances and a message may contain
multiple Contact headers, an index was added to the $ct variable:
* $ct -first contact instance from message
* $(ct[n]) - the n-th contact instance form the beginning of
message, starting with index 0
* $(ct[-n]) - the n-th contact instance form the end of the message,
starting with index -1 (the last contact instance)
3.15 Fields of a contact instance
$ct,fields() - reference to the fields of a contact instance/body (see
above). Supported fields are:
* name - display name
* uri - contact uri
* q - q param (value only)
* expires - expires param (value only)
* methods - methods param (value only)
* received - received param (value only)
* params - all params (including names)
Examples:
* $ct.fields(uri) - the URI of the first contact instance
* $(ct.fields(name)[1]) - the display name of the second contact
instance
BR
uwe
Jayesh Nambiar schrieb:
> Hello,
>
> Thanks Uwe for the pointers.
> Is there a way to extract the expires value from the CONTACT header that
> comes in the REGISTER message.
>
> Thanks,
>
> --- Jay
--
kiste lat: 54.322684, lon: 10.13586
More information about the Users
mailing list