Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How to send calls only to server which is alive - OPTIONS
Author Message
vaclav_prokes
Brekeke Member


Joined: 19 Feb 2013
Posts: 22

PostPosted: Sun Jun 09, 2019 1:11 pm    Post subject: How to send calls only to server which is alive - OPTIONS Reply with quote

1. Brekeke Product Name and Version:
3.8.3.4/490

2. Java version:
1.8.0_144

3. OS type and the version:
Linux 3.16.0-4-amd64

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
I have partner, who have multiple SIP servers. They support OPTIONS.
I need to route calls only to servers which are alive - responds to OPTIONS packets send by Brekeke. How to achieve that ?
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Mon Jun 10, 2019 10:07 am    Post subject: Reply with quote

For switching a destination depends on it is alive or not, let you use Failover.

https://docs.brekeke.com/sip/failover-with-the-dial-plan
Back to top
View user's profile
vaclav_prokes
Brekeke Member


Joined: 19 Feb 2013
Posts: 22

PostPosted: Thu Jun 13, 2019 1:43 am    Post subject: Reply with quote

Thank you for answer.
Unfortunately I have not found the way how to achieve my needs.

I have partner, who require from us that if his server does not respond to OPTIONS, than we should not send calls to his server.

How to achieve this ?

Thank you

V.
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Thu Jun 13, 2019 11:00 am    Post subject: Reply with quote

Try the Heartbeat function which sends OPTIONS periodically.
https://docs.brekeke.com/sip/monitoring-sip-devices-with-heartbeat

And specify a management command "ruleswitch" as Heartbeat's Action to disable the DialPlan rule which points outgoing SIP server.

Like this:
Type: Management Command
Target Address: localhost
Command: ruleswitch
Parameters "<rule_name>" disable

*) Replace <rule_name> with the actual DialPlan name.
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