Fusionpbx as a gateway server

RTL

Member
Jan 26, 2024
89
11
8
64
I'm using Fusionpbx as a gateway server for some end users. Calls arrive on the fusion server and are then sent to the end users's pbx via the sip trunk app and it works well.
I'd now like to make calls go the other way. I can get calls from the end user's pbx to fusionpbx but can't quite work how to get that out through a gateway with the correct source and destination numbers. I'm pretty sure I need a bridge here but not clear on how to implement it. ANy help wpuld be appreciated.
 
IP authentication
Gateway PBX

  • Create an extension for your PBX
  • Add the IP address in the CIDR field of the extension.
  • Status -> SIP Status, press the RELOADACL button
Client PBX
  • Create an outbound route from the client PBX to the Gateway server
  • Add the Gateway PBX to your providers access control list
  • Add new numbers to inbound destinations

Registrations

Gateway PBX

Client PBX
  • Create a gateway that registers with the Gateway PBX
  • Add the Gateway PBX to your providers access control list
 
Last edited:
  • Like
Reactions: DOLMark
IP authentication
Gateway PBX

  • Create an extension for your PBX
  • Add the IP address in the CIDR field of the extension.
  • Status -> SIP Status, press the RELOADACL button
Client PBX
  • Create an outbound route from the client PBX to the Gateway server
  • Add the Gateway PBX to your providers access control list
  • Add new numbers to inbound destinations

Registrations

Gateway PBX

Client PBX
  • Create a gateway that registers with the Gateway PBX
  • Add the Gateway PBX to your providers access control list
Tried all this and it worked. I could get a call working each way. But, today I find that calls from the gateway server to the client work but not the other way. I'm seeing UNALLOCATED_NUMBER. No idea what's changed here
 
To update this and add some clarity. I'm using a registered trunk between a fusionpbx server as a gateway with a client pbx. The trunk between them is registered to an extension on the gateway pbx using sip trunks.
Inbound calls to the gateway and sent to the client pbx as expected, the caller id is correct. When we make a call from the client pbx the call gets to the gateway and fails as it's an unallocated number.
When we first set this up about a month ago calls worked in both directions but outbound stopped as described above a few days ago.
The gateway server details are
5.6.1-dev
Branch: master
Commit: dace58370ffc46f38ad082e9936d42159f93ce24
Origin: https://github.com/fusionpbx/fusionpbx
Status: Your branch is up to date with 'origin/master'. +1 days ago

We set up another fusionpbx server as above and calls can go both ways. This server's details are
5.5.9
Branch: 5.5
Commit: d329aa2c48dcbf6aefa94d31739f52560e6bf87a
Origin: https://github.com/fusionpbx/fusionpbx
Status: Your branch is up to date with 'origin/5.5'. +0 days ago

The conclusion is that an update/upgrade recently broke this so if I switch from master to 5.5 is this likely to make it work?
 
IP authentication
Gateway PBX

  • Create an extension for your PBX
  • Add the IP address in the CIDR field of the extension.
  • Status -> SIP Status, press the RELOADACL button
Client PBX
  • Create an outbound route from the client PBX to the Gateway server
  • Add the Gateway PBX to your providers access control list
  • Add new numbers to inbound destinations

Registrations

Gateway PBX

Client PBX
  • Create a gateway that registers with the Gateway PBX
  • Add the Gateway PBX to your providers access control list
@markjcrane
What I'm trying to achieve is
1. Calls arrive at the gateway server, are routed to the client pbx and thence to an extension. That works using the SIP trunks app
2. Outbound call is made from the client pbx, is routed to the gateway PBX then out to the destination.
It's the second part I can't get working as every time the call arrives at the gateway PBX I see UNALLOCATED_NUMBER from freeswitch
What do I need to do to get this working
 
@markjcrane
What I'm trying to achieve is
1. Calls arrive at the gateway server, are routed to the client pbx and thence to an extension. That works using the SIP trunks app
2. Outbound call is made from the client pbx, is routed to the gateway PBX then out to the destination.
It's the second part I can't get working as every time the call arrives at the gateway PBX I see UNALLOCATED_NUMBER from freeswitch
What do I need to do to get this working
You are possibly getting UNALLOCATED_NUMBER because the Destination number you are trying to hit on the inbound does not exist in Dialplan -> Destinations, we had this issue with integrating Teams Direct via Ribbon SBC, we had to create a Destination for the extension range used on the Domain to allow internal calls to come in from Teams via Ribbon SBC. If you provide a log from fs_cli would pinpoint why.
 
I have the DID in destinations and that enables the first part. The issue is that when a call is made from the client pbx to the gateway pbx the DDI is the sending number and the called number is seen as the destination. I really just want the call to be sent out on a trunk defined by the outbound route