[SR-Users] Adding parameter to headers

Daniel-Constantin Mierla miconda at gmail.com
Fri Feb 24 08:32:32 CET 2012


Hello,

On 2/22/12 8:38 AM, Uri Shacked wrote:
> Hi,
> I need to add a parameter to the contact header. suppose to look like:
> Contact: <sip:anonymous at domain:port;param1=XXX;param2=YYY>
> How do I add the parameters?
> Should i concatenate the $ct with the parameters?
> Or is there a better way?
$ct is not writtable. You can remove existing header and add a new one 
built as you wish, based on the old one. Alternative, use a subst 
expression which will match on contact header.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list