Internal call between 2 FPBX

Hi, I have a problem. I have 2 freepbx A and B.
Freepbx A has internal number 4XX and freepbx B has internal number 2XX. The 2 fpbx have a wireguard between them. now I want the internals to be able to communicate with each other.

Trunk A - Pjsip Settings
Authentication and registration none. in sip server I put the ip of B.
in advanced I put From Domain the ip of B

Trunk B - Pjsip Settings
Authentication and registration none. in sip server I put the ip of A.
in advanced I put From Domain the ip of A

In outbound Routes A
in Dial pattern → match (4xx) and callerID (2xx)

In outbound Routes B
in Dial pattern → match (2xx) and callerID (4xx)

I don’t understand why it keeps asking me for authentication and also it doesn’t work

The CallerID field in an Outbound Route is used to restrict the route to specific extensions. In your application, it should probably be left blank.

On system A, you should have match pattern 2xx on the route with trunk to system B.
On system B, you should have match pattern 4xx on the route with trunk to system A.
The Context for the trunks should be from-internal.

If you still have trouble, paste the Asterisk log for a failing call, with pjsip logger turned on, at pastebin.com and post the link here. If anything appears in the Asterisk log on the destination system, paste that, otherwise the source system log.

1 Like