To re-write an earlier article res_perl / Channel Check
[macro-DialIfNeitherBusy]
exten => s,1,ChanisAvail(${ARG1},sj) exten => s,2,ChanisAvail(${ARG2},sj) exten => s,3,Dial(${ARG1}&{ARG2},20) exten => s,102,NoOp exten => s,103,NoOp
You can then replace the NoOps for more commands to execute – IE: leave a message, etc.
Note: res_perl / Channel Check is still very useful for checking heaps of extensions in one hit – in fact, once you go beyond 4 connections this gets to be very repeative…
Commenting is closed for this article.