Two gateways should be independent but are not.

question

New Member
Mar 30, 2026
2
0
1
64
I set up two gateways for two sip providers. One sip provider is UDP and the other is TLS/SRTP. The TLS/SRTP gateway worked first. For the UDP gateway, I copied the external sip profile set up for TLS/SRTP, and I disabled the rtp-secure-media and media-encryption in it. I assigned each gateway to their own separate external sip profiles: a TLS/SRTP for encrypted and a UDP for unencrypted audio.

The TLS/SRTP gateway went offline while the UDP gateway was online. If I stop the UDP gateway the TLS/SRTP gateway connects again.
 
Last edited:
Solved. Extensions must be set correctly in both Extensions and Destinations.

Now it would ring but not connect. in fs_cli, the command "sofia status gateway name_of_gateway" gave "Invalid Gateway!"

With the help of ChatGPT. From the command line do:
fs_cli -x "sofia status gateway"
Copy the long UUID number
In Dialplan -> outgoing, make a new rule:
action, bridge, sofia/gateway/UUID/$1

That worked to make call from phone to SIP number. It seems FusionPBX does not map the gateway name to the actual FreeSWITCH gateway. I am still working on being able to call in the other direction.