Hi!
I am new to freepbx and I am trying to setup it using a Fritzbox 7490 as trunk with pjsip.
So far outgoing calls are working fine. But when trying an incoming call, nothing happens.
I have to say that:
There is a firewall (opnsense) between the FritzBox and freepbx
Currently I have a second FritzBox (also behind the firewall and no special settings there) which is using the “outside” Fritz as trunk without any problems (in&out).
as I do not know which settings could be important, I am attaching screenshots of all settings of the trunk. Oh, ping is working fine from freepbx to the external FritzBox…
I hope, somebody knows the problem or at least where to look…
best regards and thanks in advance,
Otto
Hi!
I will provide a log as soon as I am back to the box.
What do you mean with “reaching the asterisk box with the inbound call”?
I can call from one extension to a different one and an external SIP provider also works in and out…
The incoming call from the Fritzbox, does Asterisk “see” the failed attempt, or does it not even reach Asterisk? The log will answer this question anyway.
Well that is telling in itself. It is being blocked on the network or Asterisk firewall level. Is the FreePBX firewall allowing Fritzbox traffic to reach the server?
You might need to monitor via wireshark to see what’s going on between the boxes.
In the trunk, set Authentication to Outbound. Next, at the CLI type pjsip set logger on
and confirm that the REGISTER requests have the correct IP address in the Contact header.
If that’s ok see whether anything gets logged on a failing incoming call.
Interesting…I have several Fritzboxes connected to freePBX servers…either as trunk or as an extension. I just use chan_sip for trunks. If you want I can post my settings here…
Just one more question…did you create an inbound route for your Fritzbox trunk…without an inbound route either with CID or DID, calls will never get through…
Yes, should be ok. I just realized that I use most of my Fritzboxes as an extension in freePBX. I have one example here, where I connected my Fritzbox through a chan_sip trunk with freePBX. It is a door bell, so I just use it for incoming calls…and it activates a script to create a screenshot of a video camera at the door, which displays it on my cisco phones.
Anyway, it should work with incoming calls on your system…
the register string of the incoming settings is username:pw@IP-address-of-fritzbox:port
The context in my case is from-trunk-sip-fritzbox because I have an agi script for the video camera. In your case a context=from-trunk should work, I think…