I can't receive calls through a DID using FusionPBX

Status
Not open for further replies.

vbarre

New Member
Jul 19, 2019
3
1
3
36
Hello, I currently use Asterisk through FreePBX and am starting studies on Freeswitch and FusionPBX.

I have a DID that works perfectly in FreePBX, but when trying to set it in FusionPBX, I could not.
I will copy below how the DID is configured in FreePBX.
Please, could you help me translate this configuration to FusionPBX?

Many thanks to all who can help.

FreePBX Trunk (DID) configuration:

Outgoing (PEER Details):
Code:
username=***number with country code and state code***
type=peer
secret=***password***
reinvite=no
qualify=yes
port=5060
nat=no
insecure=very
host=***provider ip***
fromuser=***same as username***(number with country code and state code)
fromdomain=***same as host***(provider ip)
dtmfmode=rfc2833
domain=***same as host***(provider ip)
disallow=all
canreinvite=no
allow=g729&gsm&ulaw&alaw&g722&g726

Incoming (Register String):
Code:
username(number with country code and state code):password@providerIP/username(number with country code and state code)
 

Kenny Riley

Active Member
Nov 1, 2017
243
39
28
36
Hold on... there's quite a learning curve coming over from FreePBX/Asterisk, at least in my opinion. I was a heavy user of FreePBX when I found FusionPBX and it's been an awesome experience learning how everything from FreePBX/Asterisk translates over to FusionPBX/Freeswitch but it didn't come easy for me. Luckily, the documentation for FusionPBX has gotten much better over the last year.

An Asterisk trunk is known as a gateway in the Freeswitch world. You need to configure a gateway to your provider on your FusionPBX box. Here's a link to the docs that goes over how to get a gateway configured: https://docs.fusionpbx.com/en/latest/accounts/gateways.html?highlight=gateways

You'll configure your gateway according to the parameters that your carrier requires. Here's an article that includes some example configurations for popular carriers:
https://freeswitch.org/confluence/display/FREESWITCH/Providers+ITSPs

Once you have a gateway up and running, you'll need to create a destination for your DID in your system which will create the appropriate inbound route: Here's a link to the docs that goes over how to add a destination: https://docs.fusionpbx.com/en/latest/dialplan/destinations.html

You'll have to do some extra steps including configuring your outbound routes, adding your carriers to your ACL list, etc. I would recommend reading the getting started guide here: http://docs.fusionpbx.com/en/latest/getting_started.html

As far as setting up your gateway, I would personally recommend using the internal profile and configuring your gateway using a configuration like this, but these settings totally depend on your carrier you are using: https://pasteboard.co/IoJsJi6.png

Make sure to add your provider IP addresses in CIDR form to the ACL Domain list in FusionPBX by navigating to Advanced > Access Controls > Domains: https://pasteboard.co/IoJuaq2.png -- then navigate to Status > SIP Status and flush your cache and reload your ACL.

Good luck.
 
Last edited:
  • Like
Reactions: vbarre

vbarre

New Member
Jul 19, 2019
3
1
3
36
Hold on... there's quite a learning curve coming over from FreePBX/Asterisk, at least in my opinion. I was a heavy user of FreePBX when I found FusionPBX and it's been an awesome experience learning how everything from FreePBX/Asterisk translates over to FusionPBX/Freeswitch but it didn't come easy for me. Luckily, the documentation for FusionPBX has gotten much better over the last year.

An Asterisk trunk is known as a gateway in the Freeswitch world. You need to configure a gateway to your provider on your FusionPBX box. Here's a link to the docs that goes over how to get a gateway configured: https://docs.fusionpbx.com/en/latest/accounts/gateways.html?highlight=gateways

You'll configure your gateway according to the parameters that your carrier requires. Here's an article that includes some example configurations for popular carriers:
https://freeswitch.org/confluence/display/FREESWITCH/Providers+ITSPs

Once you have a gateway up and running, you'll need to create a destination for your DID in your system which will create the appropriate inbound route: Here's a link to the docs that goes over how to add a destination: https://docs.fusionpbx.com/en/latest/dialplan/destinations.html

You'll have to do some extra steps including configuring your outbound routes, adding your carriers to your ACL list, etc. I would recommend reading the getting started guide here: http://docs.fusionpbx.com/en/latest/getting_started.html

As far as setting up your gateway, I would personally recommend using the internal profile and configuring your gateway using a configuration like this, but these settings totally depend on your carrier you are using: https://pasteboard.co/IoJsJi6.png

Make sure to add your provider IP addresses in CIDR form to the ACL Domain list in FusionPBX by navigating to Advanced > Access Controls > Domains: https://pasteboard.co/IoJuaq2.png -- then navigate to Status > SIP Status and flush your cache and reload your ACL.

Good luck.

Hello @Kenny Riley, thank you very much for your response.
I'll follow the steps above and then come back to tell you if it worked well.

Regarding the extra steps you mentioned, does it mean that in order to receive external connections through a DID in FusionPBX, it is mandatory to have an outbound routes besides the inbound route?
 

Kenny Riley

Active Member
Nov 1, 2017
243
39
28
36
It's not mandatory, but one would assume you'd want to make outbound calls as well as receive inbound calls :)
 
Status
Not open for further replies.