hi all,<div><br></div><div>i am trying to get call leg optimization working on the following scenario</div><div><br></div><div>PSTN -> server A -> calls server B -> server B calls server A -> PSTN</div><div><br>
</div><div>So in a perfect world - asterisk will optimize server B out of the path - and it does try so - but fails</div><div><br></div><div>server A is in a private network behind a firewall</div><div>server B is in a private network behind a firewall</div>
<div><br></div><div>the firewalls are configured to forward port 4569 to the internal machine</div><div><br></div><div><br></div><div>So </div><div>- Server B is sending TXREQ to server A for both call legs (with the public ip of server a as destination ip)</div>
<div>- Server A receives the TXREQ</div><div>- Server A does send TXCNT to public ip server A - firewall does forward packet to server A</div><div>- Server A deos receive TXCNT - but packet is coming back from the firewall with source address of the internal ip of the firewall - and not the public ip - so i think asterisk will ignore it</div>
<div><br></div><div>and so the call leg optimization will fail</div><div><br></div><div>I have done a test setup without the firewalls in a local network - there the given scenario does work perfectly fine.</div><div><br>
</div><div>So - is it correct - that when the firewall would return the packet with the public ip the cal leg optimization would work ?</div><div><br></div><div>best regards,</div><div>Wolfgang</div>