Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
$response=486 Not Working
Author Message
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Wed Feb 05, 2020 11:04 am    Post subject: $response=486 Not Working Reply with quote

1. Brekeke Product Name and Version:
3.9.4.3/517-1

2. Java version:
1.8.0_231

3. OS type and the version:
Windows Server 2016

4. UA (phone), gateway or other hardware/software involved:
3CX IP PBX

5. Your problem:
I'm trying to set up a limit to concurrent inbound calls from a VoIP service provider's system to a 3CX system.

This Matching Pattern and Deploy Pattern works good to limit the number of calls, in this case, to one inbound call to DID number "12223334444" from the VoIP service provider's system. And the call is passed on to the 3CX server just fine.

Matching Patterns
$request = ^INVITE
$registered("user001") = true
$addr = ^111.222.333.444$|^555.666.777.888$|^999.888.777.666$
To = sip:(12223334444)@
$route.underlimit("%1", "1") = true

Deploy Patterns
$auth = false
$rtp = false
$b2bua = false
To = sip:%1@123.456.789.100
$routename = %1

However, when a second call comes into BSS from the VoIP service provider's system, BSS returns a 100 Trying. I want BSS to return a 486 Busy.

So, I tried adding another Matching Pattern and Deploy Pattern, ahead of the above Patterns in the Dial Plans in BSS.

Matching Patterns
$request = ^INVITE
$registered("user001") = true
$addr = ^111.222.333.444$|^555.666.777.888$|^999.888.777.666$
To = sip:(12223334444)@
$route.underlimit("%1", "1") = false

Deploy Patterns
$response = 486

But this doesn't work. BSS allows one call to DID number "12223334444" and when a second call is received, BSS still returns a 100 Trying back to the VoIP service provider's system.

What am I doing wrong?

John Rayfield, Jr.

_________________
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Back to top
View user's profile
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Wed Feb 05, 2020 1:21 pm    Post subject: Reply with quote

I think I got this figured out, but if anyone sees anything that I can do better, please tell me.

Instead of:

Deploy Patterns
$response = 486

I did this:

Deploy Patterns
$routename = %1
$auth = false
$rtp = false
$b2bua = false
$action = 486

Now, BSS sends a 100 Trying back to the VoIP service provider's system, but then immediately sends a 486 Busy. And a test seems to work ok.

How's this look to everyone?

John

_________________
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Fri Feb 07, 2020 9:30 pm    Post subject: Reply with quote

If you want to let the SIP server sends "486 Busy Here" without sending "407 Proxy Authentication Required", add $auth=false to disable authentication.
This is because Auth for INVITE is enabled at the SIP Server's settings.

Matching Patterns
$request = ^INVITE
$registered("user001") = true
$addr = ^111.222.333.444$|^555.666.777.888$|^999.888.777.666$
To = sip:(12223334444)@
$route.underlimit("%1", "1") = false
Deploy Patterns
$auth = false
$response = 486


If $auth=false is not used, the SIP Server sends "407" first to request the valid credentials before sending the response defined with $response.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1