[Asterisk-Users] ChanIsAvail
Joseph Tanner
joseph at thetechguide.com
Tue Feb 14 08:45:21 MST 2006
Eventually I will learn to read the message twice before responding.
I see you are dialing all the phones first. So if just one is busy
asterisk won't dial any? That's odd. Now, I don't have any phones on
a zaptel card (just an X101P for incoming), but when dialing multiple
sip phones, it'll ring the ones that are available no problem. I can
call from one to the other, obviously the one I'm calling from can't
be rung and returns a busy message, but asterisk happily dials the
rest. In fact, I have asterisk dial several extensions that aren't
even online (test extensions that are sometimes online, sometimes not)
and I've never had a problem.
Sorry I couldn't be of more help :(
Joseph Tanner
On 2/14/06, Joseph Tanner <joseph at thetechguide.com> wrote:
> Perhaps I'm missing something here, but why not just have asterisk
> dial all the phones regardless? No need to check what's available or
> not, just dial all of them. If you don't want users on the phone to
> hear a call-waiting beep, just make sure call-waiting is disabled.
> Any phones that are able to ring will do so, the ones that are busy
> obviously will not.
>
> If I am missing something, let me know, but this seems to be the
> easiest solution and will do what you said you need. Dial all phones,
> and all that are available will ring, the rest will just return a busy
> message which asterisk should ignore, as long as one phone somewhere
> is not busy. I haven't run into this, but I would assume if all
> phones were busy that asterisk would then go to priority +101, so you
> could send them straight to voicemail.
>
> Joseph Tanner
>
> On 2/14/06, Jayson Navitsky <jnavitsky at gmail.com> wrote:
> > 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/105 at local&Local/106 at local&Local/110 at local&Local/112 at local,30)
> > exten => 16465555555,3,ChanisAvail(Local/105 at local&Local/106 at local)
> > exten => 16465555555,4,Cut(DESK3=AVAILCHAN||1)
> > exten => 16465555555,5,ChanisAvail(Local/110 at local&Local/112 at local)
> > 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
> >
>
More information about the asterisk-users
mailing list