Redirecting Calls from IP PBX/UAC

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
JRayfield
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Redirecting Calls from IP PBX/UAC

Post by JRayfield »

1. Brekeke Product Name and Version:
BSS 3.13.0.0/552

2. Java version:
11.0.15

3. OS type and the version:
Windows Server 2016 Standard

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

5. Your problem:

Currently I have Dial Plans set up like this:

Inbound:
Matching Pattern -
$request = ^INVITE
$registered("registration name/number") = true
$addr = ^xxx.xxx.xxx.xxx$
To = sip:(1nnnnnnnnnn)@
Deploy Pattern
$auth = false
$rtp = false
$b2bua = false
To = sip:%1@yyy.yyy.yyy.yyy

Outbound:
Matching Pattern -
$request = ^INVITE
$registered("registration name/number") = true
$addr = ^yyy.yyy.yyy.yyy$
To = sip:(.+)@
Deploy Pattern -
$auth = false
$rtp = false
$b2bua = false
&failover.timer.provisional = 120
To = sip:%1@xxx.xxx.xxx.xxx
$session = failover sip:%1@zzz.zzz.zzz.zzz

This works great for incoming calls from my upstream provider, into BSS and forwarded on to the 3CX IP PBX system.

And it works great for outgoing calls from the 3CX IP PBX system, which are forwarded on to my upstream provider.

But, if a number is misdialed (such as using area code '471' instead of '417') and the upstream provider returns a 404 or a 503, or any other SIP response such as '486', that information is not passed back to the 3CX PBX.

I would like to pass the '486' SIP responses back to the 3CX PBX for each call that receives that response.

And, for other responses, I would like to 'redirect' the outbound call to another destination (such as another IP PBX).

Can someone give me some ideas as to how to achieve the above?
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

The failover plugin monitors all final responses in the default with the following preset settings.

Code: Select all

&failover.pattern.response = .+ 
If you want to pass 4xx, 5xx and 6xx, try the setting below.

Code: Select all

&failover.pattern.response = 3..
It means the failover plugin monitors only 3xx response packets.

FYI: https://docs.brekeke.com/sip/failover-w ... -dial-plan
Post Reply