Call forwarding from one trunk to another (Using bridge Application)

miltonviziak

New Member
Sep 2, 2023
25
0
1
35
I have a question. If anyone can help, please let me know.

I have a softswitch whose IP address is added to the ACL to accept any calls, and I have two gateways configured, one registered and one unregistered.

The call will arrive through the softswitch and be routed directly to the gateways.

How can I do this directly and change the destination number depending on the outgoing gateway?
 
I will test it in the way mentioned above, but at first I am testing it this way:

1 - I created a gateway for the provider, and it was registered.

2 - I included the softswitch's IP address in the ACL.

3 - I created an outbound route with a prefix of 00 + any number (calls to other countries).

4- I had to change the context of this outbound route to public and remove the $(user_exists) = false condition, especially since the call isn't coming from an extension itself; it's coming from an IP address that's in the ACL.
(with this condition $(user_exists) = false enabled in the dialplan, the freeswitch returned an error that there was no route to the destination)
 
I'm pretty much a novice myself but what do you mean by "fails"? Is the provider 1 rejecting the call? Is it unregistered? Is it not reachable?
 
I managed to do it this way using bridge application.
I will put the step by step if anyone has difficulty using bridges.

Following my topology
This is my topology.
Two providers, if provider 1 fails try provider 2

View attachment 4718

Step 1
First I added the softswitch IP in Advanced -> ACL. When someone dials starting with prefix 00 the call is forwarded to fusionpbx

Step 2
I created 2 gateways, provider 1 with true registry and provider 2 with false registry. It was done this way to use in the bridge application following the freeswitch manual itself, but it can be done without using gateways but I have not tested it that way.

Step 3
Bridge creation
Used this way with failover

Step 4
In dialplan create an Inbound destination and in action choose your bridge that was created

Step 5
then make any necessary configuration in inbound routes

1756403975981.png

This way it worked to forward a call from one place to another and with regular expressions change whatever was needed in the output.
 
Last edited: