I have Installed Asterisk on Synology.
After configuring Asterisk on Synology wiht Voipstunt and Internetcalls, i am able to make calls internally and externally.
When I want to call back the number with another VoIP device that works, I get an error:
“De gesprekspartner heeft het gesprek beeindigd met een SIP error 401” Dutch
"The caller has ended the call with a SIP error 401"
I’m assuming the Synology part of this is not relevant.
401 is not an error. It is the mechanism by which a SIP server tells a SIP client how to send its password. Asterisk uses the basic SIP authentication mechanism, so either the SIP client doesn’t support authentication at all, or has not had a password set.
It’s not entirely clear what sort of call is failing, but if this is an incoming call from an ITSP, most ITSPs don’t support authenticating themselves to customer systems. If you need to authenticate to the ITSP, you can get round this on recent systems by using remotesecret, rather than secret, and on older systems by using insecure=invite, along with a secret.
Synology should provide the support, as they are supplying the otherwise unsupported software.
If you have actually got insecure=invite set in sip.conf, now, you should look to see if you actually have sip.conf entry that matches the ITSP at all. You may be getting a faked 401 to confuse hackers.