Sunny
Sunny

Reputation: 10105

How to stop Asterisk from repeating "SIP/2.0 401 Unauthorized" messages

I am writing a small Node module to make a simple SIP call through Asterisk. I am not using any of the JS libraries for reasons not relevant to this question. When I send the INVITE message, as expected, it returns with a "SIP/2.0 401 Unauthorized" message and a nonce to be used to build a hash to be sent in the response. All that is fine. My problem is that this 401 message keeps repeating/retransmitting. How do I stop this so I get only one SIP/2.0 401 Unauthorized message and not multiple ones? Why does it keep repeating?

Upvotes: 0

Views: 2743

Answers (1)

viktike
viktike

Reputation: 733

I see two possibilities:

  1. The authentication (challenge/response) is wrong.
  2. Signaling (SIP) is one way due to routing/nat/firewall problems.

I'd recommend to find out which one is the case and then investigate further.

Upvotes: 2

Related Questions