[asterisk-users] ChanIsAvail() in 1.2.12.1

Douglas Garstang dgarstang at oneeighty.com
Fri Oct 6 14:27:04 MST 2006


That's not how it appears to have worked before. Previously, I was able to call it and then simply check the value of the ${AVAILCHAN} variable at n+1. The docs imply that jumping to n+101 only occurs if j is supplied, and I'm not passing a 'j'.

*CLI> show application chanisavail

  -= Info about application 'ChanIsAvail' =- 

[Synopsis]
Check channel availability

[Description]
  ChanIsAvail(Technology/resource[&Technology2/resource2...][|options]): 
This application will check to see if any of the specified channels are
available. The following variables will be set by this application:
  ${AVAILCHAN}     - the name of the available channel, if one exists
  ${AVAILORIGCHAN} - the canonical channel name that was used to create the channel
  ${AVAILSTATUS}   - the status code for the available channel
  Options:
    s - Consider the channel unavailable if the channel is in use at all
    j - Support jumping to priority n+101 if no channel is available

Doug.

> -----Original Message-----
> From: Julian Lyndon-Smith [mailto:asterisk at dotr.com]
> Sent: Friday, October 06, 2006 3:15 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] ChanIsAvail() in 1.2.12.1
> 
> 
> from http://www.asteriskguru.com/tutorials/chanisavail.html
> 
> If there is no available channel the ChanIsAvail application will 
> continue with the execution of the extension with priority n+101
> 
> Douglas Garstang wrote:
> > Is there something wrong with the chanisavail() application 
> in 1.2.12.1?
> > 
> > My dialplan has:
> > 
> > [syst_Route]
> > 
> >     exten => _[*0123456789].,1,NoOp(*** Originated call 
> ${CALLERID} -> ${EXTEN})
> >     exten => _[*0123456789].,n,NoOp(FOO1)
> >     exten => _[*0123456789].,n,ChanIsAvail(SIP/${EXTEN})
> >     exten => _[*0123456789].,n,NoOp(FOO2)
> > 
> > and the console is displaying...
> > 
> > *CLI>     -- Executing NoOp("SIP/3254101-0817a220", "*** 
> Originated call "Chocolate Chip" <3254101> -> 3254103") in new stack
> >     -- Executing NoOp("SIP/3254101-0817a220", "FOO1") in new stack
> >     -- Executing ChanIsAvail("SIP/3254101-0817a220", 
> "SIP/3254103") in new stack
> > 
> > It never makes it past the call to ChanIsAvail(). Dialplan 
> processing just completely stops at this point.
> > What's up with that???
> > 
> > Doug.
> > _______________________________________________
> > --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
> > 
> > 
> 
> _______________________________________________
> --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