Hi,
In my failover setting using Dispatcher module, I mark the GW if fails to response. OPTIONS are being sent every 30 sec:
failure_route[DISPATCH_FAILOVER]{ if (t_is_canceled()) exit; if (t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) { ds_mark_dst("ip"); if (ds_next_dst()) { t_set_fr(0,1000); t_on_failure("DISPATCH_FAILOVER"); route(RELAY); exit; } } }
However, Kamailio still recognize it as active gw ( A.A.A.A is down, no response from OPTIONS being sent)
$ sudo sercmd dispatcher.list { SET_NO: 1 SET: { SET_ID: 1 DEST: { URI: sip:A.A.A.A:5060 FLAGS: AP PRIORITY: 0 ATTRS: } DEST: { URI: sip:B.B.B.B:5060 FLAGS: AP PRIORITY: 0 ATTRS: } } }
Any help would be appreciated. AL