Received Response "Forbidden"

Hi Guys,

Badly need help here.
Im trying to configure my trunk in Asterisk 15 and trying to make an outbound call.

Here’s my sip.conf
[pstn]
type=friend
secret=mypassword
host=dynamic
context=internal
insecure=port
qualify=yes

on my extensions.conf
[outbound]
exten => _045XXXXXXX,1,Dial(SIP/${EXTEN}@pstn)
same => _045XXXXXXX,n,Hangup()

Now, when my extension 206 tries to dial a number ex., 0453225000, i get "handle _response_invite: Received response: “Forbidden” from 206 SIP:206@192.168.1.48tag=as24b88a6d

I have 5 other trunk Lines with a dial plan for 11 digit outbound calls and they seem to work without a problem. Its only for this particular trunk with a 9 digit dialplan that I cant seem to make it work.

Any idea is greatly appreciated. TIA

That isn’t on your “trunk”. Please provide full logs.

Also, why do you have type=friend and insecure=port?

Why don’t you know the IP address of your gateway (it is normally the other way round)?

Hi David,

Thanks for the reply.

I have noted your comments and I will make corresponding corrections. However, I managed to pin point the problem. Apparently my GXW 4108 dialplan was the culprit it doesnt allow 7-9 digits on its dialplan. I made the necessary adjustment and now it working great.

Thanks