Hello everyone,
I would like to use my fritz!box 6890 as trunk for inbound and outbound calls in a raspbx instance.
The Fritz is behind an ubiquity router/firewall so it’s not on the same subnet.
I think that the firewall is ok because I can register a Cisco SPA504 voip phone and make/receive calls.
With the fritzbox I get registration timeout → no inbound / outbound call is possible.
I cannot figure out why this is appening. Tried all the configurations from this and other forums, but without success.
the current configuration (not working) is very similar to this one: sip Settings – Outgoing:
Trunk Name: Fritz_chansip_out_XXXXXXXX
The request isn’t reaching the Fritzbox, or its reply is not reaching Asterisk. You need to trace it through the network to find out where it is getting lost.
I really would recommend using PJSIP instead of chan-SIP. Your FreePBX should be in the FritzBox-Network. Your phones should be in FritzBox-Network. You don’t need NAT.
My FritzBox has the IP 192.168.50.1 in this example. The FritzBox is holding the outside PSTN-line.
Very important to know:
You need to create an “IP-Phone” within your FritzBox config, with a named user and a different password. In my case the user is named “linkKeller” and the Password should have 8 digits.
The FreePBX-Trunk is using this user/PW to connect to the FritzBox line.
And you really need a specific context (in my case I named it “custom-get-did-from-sip-linkKeller”.
This context is needed because the FB is not forwarding the DID, so your inbound-route would not react on incomming calls. The context sets a fixed DID.
And also very important to know: The FB reacts quite critical on wrong registering users/PWs / FreePBX-trunks. It increases the block-time each time by doubling. Therefore be patient. I once had to wait one full day until the block was released.
extensions_custom.conf:
[custom-get-did-from-sip-linkKeller]
exten => _.,1,Noop(Fixing DID to [yourPhoneNumber} da DID von FB nur s)
exten => _.,n,Goto(from-trunk,[yourPhoneNumber},1)