Hi, So I've done my research on Chanisavail, read the wiki, checked the archive but can't seem to find anything to suit my scenario. I've played around with it a lot, but I'm still scratching my head on what I need to do.
What I need is to be able to accept a call by SIP and ring all telephones that are not in use (which just so happen to be on Zap interfaces, but might be SIP in the future). What I have now is this (I know it's really bad): exten => 16465555555,1,Answer() exten => 16465555555,2,Dial(Local/[EMAIL PROTECTED]&Local/[EMAIL PROTECTED]&Local/[EMAIL PROTECTED]&Local/[EMAIL PROTECTED],30) exten => 16465555555,3,ChanisAvail(Local/[EMAIL PROTECTED]&Local/[EMAIL PROTECTED]) exten => 16465555555,4,Cut(DESK3=AVAILCHAN||1) exten => 16465555555,5,ChanisAvail(Local/[EMAIL PROTECTED]&Local/[EMAIL PROTECTED]) exten => 16465555555,6,Cut(DESK4=AVAILCHAN||1) exten => 16465555555,7,Dial(${DESK3}&${DESK4},30,tr) exten => 16465555555,8,Busy (Each local is 1 zap interface) Which is sort of my temporary work around to the problem for now, first if there are no phones in use all phones will ring, if not it will return busy and then it is checked to see if there is anything available to ring between those 2 "groups" there. If only one phone is in use only 2 channels will ring right now (obviously). What I need is for any available channel to ring. Any thoughts? Thanks, Jay _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users