You can look at application ChanIsAvail
Martin
On Fri, 23 May 2003, asterisk wrote:
> I am looking for a way to quickly and easily test for on-hook channels
> from within a C-language AGI app. CHANNEL STATUS works but is a bit
> clumsy. I don't want to rely on strcmp'ing the returned '200
result=-1'
> as the meaning of this might change in the future. I am trying to create
> an ACD using MySQL and want to test each channel before I Dial it. Any
> ideas?
>
> Jim Friedeck
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>