Ali,

With the exception of a few, pseudovariables that expose parts of a SIP message (such as $ct) are read-only, so you cannot assign values to them.

Why are you manipulating the Contact header? This is not something proxies should ordinarily do.

But, assuming you really want to/know what you're doing:

‎remove_hf("Contact");
append_hf("Contact: <sip:...>\r\n");

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

Sent from my BlackBerry.