2 LAN interfaces, SDP shows wrong FreePBX IP

Hello !

I have a FreePBX machine with 2 interfaces (eth0 and eth1)

eth0 has IP 192.168.2.21 /24
eth1 has IP 10.0.0.21 /24

I have 2 trunks

  • TRUNK#1 on the internet via 192.168.2.1 (static route to make sure its routed properly)
  • TRUNK#2 on local SBC 10.0.0.3

Each LAN has its own set of phones, that are on different networks, but share the same FreePBX server and extensions.

Calls coming in or going out from TRUNK#1 on interface eth0 are fine

Calls coming in or going out from TRUNK#2 on interface eth1 have an issue with the SDP in the invite. The SDP line shows the “main” FreePBX IP address from eth0 but eth1 has no route to eth0 for security reasons.

  • I have already added both LAN subnets to my SIP settings

How can i make sure that FreePBX sends the correct IP address in the SDP depending on which network it is sending the SIP INVITE ?

Thanks for your help

Ah … well it seems that a reboot was the solution. Please disregard :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.