401 Unauthorized

Running into a funky issue here. Using a SBC (Blox SBC) in front of a test PBX and am running into a couple issues with inbound and outbound calls.Inbound is toast with a 401 unauthorized error popping back and outbound works for only 30 seconds. Both the SBC and PBX are up in the cloud. Remote user registration is good and can do extension to extension with no issue.

Setup:
The provider trunks are registered in the SBC and the calls are routed to the PBX. I have chan_sip trunks in the PBX with peer details that contain the SBC details such as host, port etc.

Running Asterisk 13.12.2 and FreePBX version 10.13.66-15

Here are the peer details for inbound:

host=172.31.32.29 <-sbc eth1 interface
port=6070
username=usernamefromprovidertrunks
secret=********
remotesecret=********
type=friend
fromuser=usernamefromprovidertrunks
fromdomain=172.31.32.29:6070
context=ext-did
qualify=no
realm=172.31.32.29
insecure=port,invite

the user name and secret indicate that the trunk should be registering. i.e. the pbx should be registering with your sbc. does it? also once you sort out the registration issue, you might look at the context you are using. you might want to use from-trunk or if you are in the US from-pstn-e164-us

1 Like