|
|
Author |
Message |
JRayfield Brekeke Guru
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Wed Feb 05, 2020 11:04 am Post subject: $response=486 Not Working |
|
|
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 |
|
JRayfield Brekeke Guru
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Wed Feb 05, 2020 1:21 pm Post subject: |
|
|
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 |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 287
Location: Japan
|
Posted: Fri Feb 07, 2020 9:30 pm Post subject: |
|
|
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 |
|
|
|
|
|