Forums Read-only archive

How to send calls only to server which is alive - OPTIONS

4 posts · Brekeke SIP Server Forum

vaclav_prokes Original post
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 ?
Niloc
For switching a destination depends on it is alive or not, let you use Failover.

https://docs.brekeke.com/sip/failover-w ... -dial-plan
vaclav_prokes
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.
janP
Try the Heartbeat function which sends OPTIONS periodically.
https://docs.brekeke.com/sip/monitoring ... -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.