<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">Hi Guys, <br>
<br>
I have been trying all day, to create "static routing" in my
openser-proxy(1.3).<br>
<br>
My openser-script is based on the default, so what I am doing is just:<br>
<br>
-------------------------------------------<br>
if ( loose_route() )<br>
{<br>
&nbsp;&nbsp;&nbsp; // strip of preloaded route is NOT being done here??<br>
&nbsp;&nbsp;&nbsp; route();<br>
}<br>
<br>
if ( isToMe() )<br>
{<br>
&nbsp;&nbsp;&nbsp; // Do local logic<br>
}<br>
else<br>
{<br>
&nbsp;&nbsp;&nbsp; // forward this via proxyX<br>
</font></font>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <font size="-1"><font
 face="Courier New, Courier, monospace">append_hf("Route:
&lt;sip:1.1.1.1:5060;lr&gt;\r\n");<br>
&nbsp;&nbsp;&nbsp; if (loose_route() )<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; route(1);<br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; else<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; // I always end up here...loose_route() always returns false...<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; // because its looking at the first route, that should have been
stripped off...<br>
}<br>
-----------------------------<br>
<br>
I have added lots of traces to lookup.c, and according to those, it
seems that the preloaded <br>
route is not stripped off properly? <br>
Once I get too the second "loose_route()", that function IS STILL
looking at the first <br>
preloaded route, which should have been stripped in the first "if".<br>
I am getting the feeling that the "deletion/stripping" of the first,
preloaded, Route, is not<br>
done directly, causing the second check, to find the first...<br>
<br>
My work-around is naturally to use setdsturi(), but I thought that
loose_route() should be able<br>
to do all this for me...?<br>
<br>
Also, this used to work, in version 1.1, about year ago :-)<br>
<br>
Any toughts?<br>
<br>
Regards<br>
Taisto Qvist<br>
<br>
<br>
</font></font>
</body>
</html>