403 forbidden when making a call

Hello,

I am wondering what could be the possible reasons for a 403 error when making a call. The call is ended immediately and 403 is returned. The peer name and password are correct and it doesn’t happen all the time.

A reattempt to make the same call again always succeeds.

Thanks

You will need to ask the people who operate the peer that is returning 403.

The 403 is returned by Asterisk.

Look at the logs (turn up the verbosity level if needed) to see why it is returning 403.

However, my guess is you have just discovered why you should, almost never, use type=friend for chan_sip. (If using chan_pjsip, please say, and we will leave it to the PJSIP experts.)

I will look at the logs. It seems to be happening while calling ConfBridge…
I am using type=peer everywhere.

Thanks

If you turn the logging up sufficiently, it should say why it is failing the call.

I set it to 5. Do you think I should set it higher?

I set the following:

core set verbose 5
core set debug 5
sip set debug on