<div dir="ltr">Hello Team, <div>I am trying to remove Route Header (seems like preloaded) remove_hf("Route") but it's not being removed.</div><div><br></div><div>i tried to put it in several places on the code but no success</div><div><br></div><div><div style="color:rgb(248,248,242);background-color:rgb(39,40,34);font-family:"Courier New",Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div>
<div style="line-height:19px"><div> if (is_method(<span style="color:rgb(230,219,116)">"INVITE"</span>)) </div><div> { </div><div> if (is_present_hf(<span style="color:rgb(230,219,116)">"Route"</span>))</div><div> {</div><div> xlog(<span style="color:rgb(230,219,116)">"removing Route Header: $(hdr(Route)[0])\n"</span>)<span style="color:rgb(136,132,111)">;</span></div><br><div> remove_hf(<span style="color:rgb(230,219,116)">"Route"</span>)<span style="color:rgb(136,132,111)">;</span></div><div> </div><div> xlog ( <span style="color:rgb(230,219,116)">"Route Header still present?: $(hdr(Route)[0])\n"</span>)<span style="color:rgb(136,132,111)">;</span></div><div> }</div><div> route(RELAY)<span style="color:rgb(136,132,111)">;</span></div><div> }</div></div>
</div></div></div><div><br></div><div><br></div><div>instead of it goes to </div><div><br></div><div><br></div><div><div style="color:rgb(248,248,242);background-color:rgb(39,40,34);font-family:"Courier New",Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre"><div> if (loose_route()) </div><div> {</div><div> xlog(<span style="color:rgb(230,219,116)">"L_ERR"</span>,<span style="color:rgb(230,219,116)">"Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]"</span>) </div><div> </div><div> if (!is_method(<span style="color:rgb(230,219,116)">"ACK"</span>)){</div><div> send_reply(<span style="color:rgb(230,219,116)">"403"</span>,<span style="color:rgb(230,219,116)">"Preload Route denied"</span>)<span style="color:rgb(136,132,111)">;</span></div><div> exit<span style="color:rgb(136,132,111)">;</span></div><div> }</div><div> }</div></div></div><div><br></div><div><br></div><div><br></div><div>opensips 2.4.8</div><div><br></div><div><br></div><div>what i am doing wrong ? <br><div><br></div><div><br></div></div></div>