Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Redirecting Calls from IP PBX/UAC
Author Message
JRayfield
Brekeke Guru


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

PostPosted: Tue May 31, 2022 11:19 am    Post subject: Redirecting Calls from IP PBX/UAC Reply with quote

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 Patterns
$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
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 241

PostPosted: Mon Jun 06, 2022 11:07 am    Post subject: Reply with quote

The failover plugin monitors all final responses in the default with the following preset settings.
Code:
&failover.pattern.response = .+


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

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

FYI: https://docs.brekeke.com/sip/failover-with-the-dial-plan
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