The server has to NIC, NIC1 (XXX.XXX.XXX.XXX) is connected to the internet WAN link, and the other NIC2 (192.168.2.40) is connected to my LAN. I want to bind asterisk on both ip and want to use WAN ip for trunk link and LAN IP for internal IP Phones. how we can with out NATing issue.
Have you played around the canreinvite option? No, I believe, forces asterisk to be in the middle of all phone calls which may eliminate you need for NATing as Asterisk will be the middle of the media path. Check out the command.
i have tested canreinvite=no & nat=no option and canreinvite=no & nat =yes option but still i am facing audio problem (softphone on LAN to trunk on WAN IP). when i have register softphone on WAN IP and tested with canreinvite=no & nat=no option setting. i found 2 way audio. can we fix with other option please help.