I have FreePBX running on a Raspberry Pi 3 with counterpath Xlite softphones on all PC’s/Macs (4 in total) Zoiper softphones running on a Iphone and an Android phone all setup as extensions on FreePBX. In addition I have a Yealink cordless phone setup as an extension. Also I have an analogue phone setup as an extension using a Linksys SPA3102. The SPA3102 also provides the interface to my PSTN (copper wire) connection.
The FreePBX trunk is set up as a PJSIP trunk and the SPA3102 Line & PSTN are all showing as “Registered” and the SPA3102 has been setup using the various guides found via Google.
All extensions can call one another, all extension can call out to the PSTN.
My issue is with incoming calls, any incoming caller recieves ringing tone ok, but the ringgroup I have set up on the FreePBX never rings (I have tried setting the destination on the “inbound route” as an extension, but this still does not work.
So I have exhausted all my limited knowledge and would really appreciate some guidance, so any suggestions, hints, tips etc. would be gratefully accepted.
Sorry, I have tried open the logs, cli (-rvvv) from asterisk does not work and addition I cannot get logs to run via SSH. I am running FreePbx on a raspberry Pi3 - not sure if this is a problem re logs.
I’ve never used one of these, but the PSTN-To-VOIP Gateway settings don’t look right.
In a general sense, inbound and outbound calling are actually different processes, so getting outgoing calls to work is largely unrelated to inbound calling working. If you are not getting notified of an inbound call, it’s either because the SPA3102 isn’t set up to connect to your PBX, or your PBX is not set up to answer the incoming SIP connection from the SPA3102. With your setup (as documented), I’m pretty sure you have your SIP information set incorrectly on the SPA, and I’m not confident your trunk for the inbound calls is set up correctly as well.
The SIP is setup on Port 5061 (the line is on 5060) and both the line & PSTN are showing as “Registered”. If I change the SIP port then the registration fails. So my conclusion is the the PSTN SIP is talking to the PBX ok.
Any suggestions re the SIP settings would be gratefully received,
What line is on 5060?
PSTN SIP isn’t a thing. PSTN is an analog channel that comes into your device on a two-wire cord - SIP is an Internet Protocol that runs on Ethernet.
Where are the lines showing “Registered”?
I’m so confused right now that I can’t figure out what you are trying to do anymore.
Can we simplify this for a minute? Your SPA is connected to an analog phone line. It has at least one Ethernet connection to your FreePBX server. This connection should be available full time.
On the SPA, you connect to the SIP port on the FreePBX Server. Note that both devices have a listening port number and both are likely to be 5060 (since that’s the well-known port address for SIP).
The log files (/var/log/asterisk/full) will tell you what is and isn’t working. I have yet to see those logs, so I’m still not convinced that what you think is happening is what is actually happening. I think your next troubleshooting step will need to be reviewing those logs and trying to figure out what is not working. I’ve already said that your SPA configuration looks wrong, but without knowing what the failures are on the PBX there’s no way of knowing.
By default the SPA’s will use udp port 5060 signalling for the FXS connection and port 5061 for the FXO connection, FreePBX should register the FXS as an extension (udp port 5060) the OP’s SIP, and the FXO as a trunk (using host=ipaddress and port=5061) the OP’s ‘line’
Well I am hitting my head up against a brick wall (and it is starting to hurt ). I still cannot get incoming calls to work. Having turned on the logging on the SPA3102 and initiating and I/C call I find the following;
caller id parse number=07860xxxxxx
fxo cnddwrap_feed parse ok 07860xxxxxx status=2
– Caller ID:
– Name = (null)
– Remote Number = 07860xxxxxx
– Dialable Number = (null)
– No Number Reason = (null)
– No Name Reason = (null)
– Message Waiting = (null)
– Date and Time = 02/02 09:06
FXO:CNDD name=, number=07860xxxxxx
FXO:Stop CNDD