Using FusionPBX as a SIP Trunk

Robert Birch

Member
Mar 16, 2017
114
5
18
53
Hey Everyone,

I've set this up on a FusionPBX 4.5 box and it works as expected.
Trying to set this up on a FusionPBX 5.3.4 box and it isn't working for me.

What I did on the old server, was create a trunk domain (ie. trunkxxx.xxxxx.com)
Created a 9999 extension, which the end client registers with as their SIP Trunk.
I then created a Brige with the following:
sofia/internal/sip:$1${regex(${sofia_contact(9999@trunkexxx.xxxxx.com)}|^[^@]+(.*)|%1)}
The in Destinations create a destination for the DID numnber and routed it to the Bridge

All works great.

On the new box, I have done the same thing ( create domain, create extension).
I might be stuck on the Bridge idea on the new server as now we have different options for the bridge (User, Gateway, Profile, Loopback)
I've tried User and Loopback to no avail. Not sure what I would choose for Gateway or Profile to use them.
What does concern me, is when I use say User and put in the regex. If I try to edit it, all I get is sofia, the rest of the line is gone.
When I look at the CDR records for the calls it shows user/sofia/internal..... where as on the old server it is just sofia/internal.....

Not really sure what to change on this.

Any help would be greatly appreciated.

Thanks,
Bob
 

Robert Birch

Member
Mar 16, 2017
114
5
18
53
Played a little more with it.
Set the Bridge type to Profile.
Set the Profile to Internal
Set the Action to sip:$1${regex(${sofia_contact(9999@trunkxxx.xxxxx.com)}|^[^@]+(.*)|%1)}

Upon saving it, Fusion adds the sofia/internal/ to the beginning to match what the old server does.

Still doesn't work, but now when I check the CDR for the call, it is failing with a MANDATORY_IE_MISSING error.

Any help is appreciated.

Thanks.
 

Robert Birch

Member
Mar 16, 2017
114
5
18
53
Think I got this figured out. I was doing it right setting it as an Internal Profile.
Looks like the issue is with the clients network as I was able to confirm it working on different network.

Thanks.