Here’s what I’d like to do:
When an incoming call comes in, check the status (as seen in Reports / Asterisk Info / Peers) of a certain SIP extension.
If the status is “OK” go to destination 1 (i.e. a RingGroup or IVR).
If the status is “UNKNOWN” (or anything other than OK), go to destination 2 (i.e. a MiscDestination with a cell phone number).
I don’t want someone to do the work for me, just point me in the right direction. I’d like to eventually write a custom module that does this, similar to the way a Time Condition works.