IPv4 Fremnet Logo
TOOLS, TINKERINGS & CODE

Good code yeh?

Channel Check (2.0) · May 16, 11:47 by Shannon Wynter

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…

Comments

Commenting is closed for this article.

---== Copyright Shannon Wynter - All rights reserved - All wrongs avenged ==---