Forums Read-only archive

401 Unauthorized vs 407 Proxy Authentication Required

4 posts · Brekeke SIP Server Forum

bsotet Original post
1. Brekeke Product Name and Version: SIP Server Advanced

2. Java version: 8

3. OS type and the version: Linux

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

I have a PATTON SN4960 gateway connected with Brekeke SIP server. When the gateway sends an INVITE, sip server responds a 407 message, because authentication is on (it's correct). Unfortunately Patton don't understand the 407 message. It is possible to change in Brekeke config the 407 message to 401 Unauthorized?
Tata
Add the line below at [Configuration]->[Advanced] page, and restart the SIP Server.

Code:

rescode.407 = 401
bsotet
Thank you for your prompt reply. May i use this in dial plan?
Tata
Try like this.
[Matching Patterns]
$addr = <GATEWAY_IP_ADDR>
$request = ^INVITE

[Deploy Patterns]
$auth = false
&rescode.407 = 401
$target = localhost

Replace <GATEWAY_IP_ADDR> with the actual gateway's IP address.