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

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
vaclav_prokes
Posts: 22
Joined: Tue Feb 19, 2013 5:23 pm

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

Post by vaclav_prokes »

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
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by 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
Posts: 22
Joined: Tue Feb 19, 2013 5:23 pm

Post by 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
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by 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.
Post Reply