Hi Bogdan,<br><br>...sorry for the late reply, yes it works.<br><br>We tested with svn trunk (rev. 5774, IIRC) and it detected the calls coming from the gateway, although the gateway used 64321 as source port when forwarding the INVITE to OpenSIPS.<br>
<br>Thank you very much for the fix, could you please backport it to 1.5 (how about a 1.5.2 release, btw ;-)<br><br>Best regards  and many thanks,<br><br>René<br><br><br><br><div class="gmail_quote">2009/6/11 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi René,<br>
<br>
Please try the last SVN trunk - I made a fix on SVN trunk and if ok, I will backport it to 1.5 also. Test it please and let me know.<div class="im"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Rene de Vall wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Bogdan,<br>
<br><div class="im">
...sorry fo rmy late reply, we tested with svn branch 1.5 rev. 5768 and it didn&#39;t work.<br>
<br>
It seems that the check in drouting.c<br>
<br>
&quot;if( type==pgwa-&gt;type &amp;&amp;<br>
        (pgwa-&gt;port==0 || pgwa-&gt;port==msg-&gt;rcv.src_port) &amp;&amp;<br>
        ip_addr_cmp(&amp;pgwa-&gt;ip, &amp;msg-&gt;rcv.src_ip) )&quot;<br>
<br>
fails because of the fact, that pgwa-&gt;port is not 0 but 5060 at this point, which might be caused by <br>
&quot;if (port &amp;&amp; *port==0)<br>
            *port = (is_sips||((*proto)==PROTO_TLS))?SIPS_PORT:SIP_PORT;&quot;<br>
<br>
in resolve.c which is (eg. for me it seems to be) called during add_dst in routing.c.<br>
<br>
I very much appreciate your efford to fix this, many thanks in advance.<br>
<br>
Best regards,<br>
<br>
René<br>
<br>
<br>
<br></div>
2009/6/1 Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt;<div class="im">
<br>
<br>
    Hi Rene,<br>
<br>
    I made the fix on the SVN trunk and 1.5 - upload and try again,<br>
<br>
<br>
    Regards,<br>
    Bogdan<br>
<br>
    Rene de Vall wrote:<br>
<br>
        Hi Bogdan,<br>
<br>
        ...yes, you&#39;re right, the gateway &quot;behaves asymmetric&quot;, when<br>
        it sends out the request it uses just the next port (socket)<br>
        which the underlying operating system (IOS, in this case)<br>
        offers as source port.<br>
<br>
        Your proposed fix sounds goof to me, as it would work for all<br>
        types of gateways, no matter if they &quot;behave symmetric&quot; or<br>
        &quot;asymmetric&quot;. If one needs to diversify a gateway which uses<br>
        one IP and different ports, she can always add the port to the<br>
        datafilled address in table dr_gateways...<br>
<br>
        Thank you for your fast response and best regards,<br>
<br>
        René<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>