I haven’t found useful info on the web about allowing incoming calls from my sip provider while blocking guests.
Scenario: PSTN -> SIP PROVIDER -> [sip] -> MY ASTERISK BOX
While placing a call from PSTN to my provider I got 401 'ed:
Using INVITE request as basis request - 426bf5c377b06329799d135f53025b35 @ sip.messagenet.it
No matching peer for ‘+3933xxxxxxxxxx’ from '184.108.40.206:5061’
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 220.127.116.11:5061;branch=z9hG4bK7c8b.3461fe13.0;received=18.104.22.168
Via: SIP/2.0/UDP 22.214.171.124:5060;branch=z9hG4bK083593e4
From: “+3933xxxxxxxxxx” sip:+firstname.lastname@example.org;tag=as27658ac4
+3933xxxxxxxx is my cell phone trying to call the pstn number I’m being provided.
With allowguest=yes the call is connected OK.
Any help will be highly appreciated.