Page 477 - Asterisk™: The Future of Telephony
P. 477

APPENDIX C

                                                             AGI Reference














               ANSWER

               Answers the channel (if it is not already in an answered state).
               Return values:

               -1
                   Failure
               0
                   Success


               CHANNEL STATUS

               CHANNEL STATUS [channelname]

               Queries the status of the channel indicated by channelname or, if no channel is specified,
               the current channel.
               Return values:

               0
                   Channel is down and available
               1
                   Channel is down, but reserved

               2
                   Channel is off-hook
               3
                   Digits have been dialed

               4
                   Line is ringing
               5
                   Line is up


                                                                                     449
   472   473   474   475   476   477   478   479   480   481   482