<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p> during testing I need to remove a Via header</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">This is the code snippet</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">route[REPLACE_VIA] {</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> xlog ("L_INFO", "[REPLACE_VIA] Start of
block\n");</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> xlog ("L_INFO", "[REPLACE_VIA] $hdrc(Via) Via
headers\n");</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> if(remove_hf("Via")) {</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> xlog ("L_INFO", "[REPLACE_VIA]
removed Via\n");</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> }</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> else {</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> xlog ("L_INFO", "[REPLACE_VIA] did
not remove Via\n");</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> }</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> xlog ("L_INFO", "[REPLACE_VIA] $hdrc(Via) Via
headers\n");</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> and this is the logs output</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Sep 7 08:00:00 INFO: _LOG:
3a547f956d65fe985ba189916047fc320ae150ad: [REPLACE_RURI] Start
of block</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Sep 7 08:00:00 INFO: _LOG:
3a547f956d65fe985ba189916047fc320ae150ad: [REPLACE_VIA] Start of
block</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Sep 7 08:00:00 INFO: _LOG:
3a547f956d65fe985ba189916047fc320ae150ad: [REPLACE_VIA] 1 Via
headers</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Sep 7 08:00:00 INFO: _LOG:
3a547f956d65fe985ba189916047fc320ae150ad: [REPLACE_VIA] removed
Via</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">Sep 7 08:00:00 INFO: _LOG:
3a547f956d65fe985ba189916047fc320ae150ad: [REPLACE_VIA] 1 Via
headers</span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New""> </span></p>
<p class="MsoNormal"><span style="font-family:"Courier
New"">From the logs it looks like the remove_hf returns
true and we have the header removed, but its still counting the
Via header and the Via Header is still present when the INVIE is
releyed on</span></p>
<p class="MsoNormal"> Regards,</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">Richard<br>
</p>
</body>
</html>