Author |
Message |
vaclav_prokes Brekeke Member
Joined: 19 Feb 2013 Posts: 22
|
Posted: Sun Jun 09, 2019 1:11 pm Post subject: How to send calls only to server which is alive - OPTIONS |
|
|
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 |
|
Niloc Brekeke Talented
Joined: 19 Sep 2017 Posts: 70
Location: NL
|
|
Back to top |
|
vaclav_prokes Brekeke Member
Joined: 19 Feb 2013 Posts: 22
|
Posted: Thu Jun 13, 2019 1:43 am Post subject: |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Thu Jun 13, 2019 11:00 am Post subject: |
|
|
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 |
|
|