[SR-Users] modify $re

Alex Balashov abalashov at evaristesys.com
Tue Jun 18 16:16:34 CEST 2013


On 06/18/2013 10:15 AM, Victor V. Kustov wrote:

> Hello!
>
> $re (Remote-Party-ID) is readonly. How can i modify it?

You can't, but you can remove the existing Remote-Party-ID:

    if(is_present_hf("Remote-Party-ID"))
       remove_hf("Remote-Party-ID");

Then add your own:

    append_hf("Remote-Party-ID: ...\r\n");

-- Alex

-- 
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list