There is a built in function to do this with track/probe, but this monitors IP reach-ability to your SIP server, not the status of the SIP trunk itself.
probe CheckCircuits icmp-echo
destination X.X.X.X (IP of softswitch)
size 10
tolerance consecutive fail 5 pass 2
no shutdown
!
track ReactToCheckCircuits
test if probe CheckCircuits
no shutdown
voice trunk T01 type isdn
description "PRI"
busy-out monitor track ReactToCheckCircuits
connect isdn-group 1
!
Hi:
I needed to do something similar and came up with a TCL script combined with a track to accomplish this. This tests for connectivity to the SIP server/gateway/proxy and not actual SIP signaling.
Hope it helps!
!
probe testing_sip icmp-echo
destination 0.0.0.0
period 5
tolerance consecutive fail 3 pass 3
no shutdown
!
track sip_track
test if probe testing_sip
no shutdown
!
run-tcl shut_pri.tcl track sip_track on-fail
run-tcl noshut_pri.tcl track sip_track on-pass
!
shut_pri.tcl
echo [cli{
interfeace pri 1
shutdown
exit
}]
noshut_pri.tcl
echo [cli{
interface pri 1
no shutdown
exit
}]
There is a built in function to do this with track/probe, but this monitors IP reach-ability to your SIP server, not the status of the SIP trunk itself.
probe CheckCircuits icmp-echo
destination X.X.X.X (IP of softswitch)
size 10
tolerance consecutive fail 5 pass 2
no shutdown
!
track ReactToCheckCircuits
test if probe CheckCircuits
no shutdown
voice trunk T01 type isdn
description "PRI"
busy-out monitor track ReactToCheckCircuits
connect isdn-group 1
!
Hi:
Good to know; this little gem will come in useful.
For reference documentation:ISDN/RBS Trunk Busy-Out Feature Guide in AOS or page 3451 of the Adtran Command Reference Guide for AOS Version R10.10.
Thanks!