ns574778*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
8007991005/8007991005 D Yes Yes 56829 Unmonitored
1 sip peers [Monitored: 0 online, 0 offline Unmonitored: 1 online, 0 offline]
But I can’t call it. It says rejected because extension not found in context […]
NOTICE [497478][C-0000000f]: chan_sip.c : 26808handle_request_invite : Call from ‘8007991005’ (:56829) to extension ‘+569********’ rejected because extension not found in context ‘internal’.
The messages means what it says. The caller is being identified with a peer whose context is “internal”. The peer requested +569********. There is no extension that matches +569******** in the context internal.
Without details of your configuration, I cannot say on which of these steps the misconfiguration lies. Whilst you would be best showing sip.conf, you would need at least “sip show peer 8007991005”, to provide enough details of the peer configuration.
If I’ve guessed your configuration correctly, you will need an extension that matches “_+.” and dials out through your means of accessing the PSTN. I don’t see any such means in your show peers, so I assume that they are connected with ISDN or an analogue line, or even a GSM dongle. Please provide details of how you achieve that PSTN connectivity.
Although not relevant to the immediate problem, could you explain why you have enabled workarounds for faulty NAT handing, and why you have turned off qualify.
PS. If you just set up this server, you should not be using chan_sip unless you have a very specific technical reason to do so. Although some service providers claim not to support chan_pjsip, they are generally wrong.
(A secondary problem with chan_sip is that a lot of the suggested configurations on the web, use deprecated options or bad practice.)
To be honest I had to search what PSTN was, but if I understood well I don’t have any hardware besides the server and my PC to connect to an analogue line
could you explain why you have enabled workarounds for faulty NAT handing, and why you have turned off qualify.
To be honest I don’t know. I was having some problems and looked online for solutions but I would lie if I say that I understood what I was doing
I am sorry, I am new in this world
Neither landline phones, nor mobile phones working as simple phones, are part of the internet, and whilst it is technically possible to connect to a remote SIP phone, nearly everyone strives hard to prevent that, for security reasons. You will therefore need to pay someone to provide you with a connection to either the PSTN or a mobile phone network. Mobile phone network connections generally require special hardware, but there are many internet telephony service providers who will let you connect to them using SIP and forward your call onto the PSTN, from where it can reach your mobile network in the normal way for a landline to mobile caller. You will need to pay for such services.