Hi Bogdan,<br><br>...sorry fo rmy late reply, we tested with svn branch 1.5 rev. 5768 and it didn't work.<br><br>It seems that the check in drouting.c<br><br>"if( type==pgwa->type && <br> (pgwa->port==0 || pgwa->port==msg->rcv.src_port) &&<br>
ip_addr_cmp(&pgwa->ip, &msg->rcv.src_ip) )"<br><br>fails because of the fact, that pgwa->port is not 0 but 5060 at this point, which might be caused by <br><br>"if (port && *port==0)<br>
*port = (is_sips||((*proto)==PROTO_TLS))?SIPS_PORT:SIP_PORT;"<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 class="gmail_quote">2009/6/1 Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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 Rene,<br>
<br>
I made the fix on the SVN trunk and 1.5 - upload and try again,<div class="im"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Rene de Vall wrote:<br>
</div><div><div></div><div class="h5"><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>
...yes, you're right, the gateway "behaves asymmetric", when it sends out the request it uses just the next port (socket) which the underlying operating system (IOS, in this case) offers as source port.<br>
<br>
Your proposed fix sounds goof to me, as it would work for all types of gateways, no matter if they "behave symmetric" or "asymmetric". If one needs to diversify a gateway which uses one IP and different ports, she can always add the port to the datafilled address in table dr_gateways...<br>
<br>
Thank you for your fast response and best regards,<br>
<br>
René<br>
</blockquote>
<br>
</div></div></blockquote></div><br>