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 Pattern:
$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 Pattern:
$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 Pattern:
$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 Pattern:
$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.
$response=486 Not Working
Moderator: Brekeke Support Team
I think I got this figured out, but if anyone sees anything that I can do better, please tell me.
Instead of:
Deploy Pattern:
$response = 486
I did this:
Deploy Pattern:
$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
Instead of:
Deploy Pattern:
$response = 486
I did this:
Deploy Pattern:
$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
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.
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.