From: FERNANDO V. <fvi...@ya...> - 2006-10-30 21:45:12
|
Excuse the solution was here: http://home.cogeco.ca/~camstuff/agi.html in individual the following method: CHANNEL STATUS [<channelname>] Purpose Return the status of the specified channel. If no channel name is specified, return the status of the current channel. Returns -1 There is no channel that matches the given <channelname> 0 Channel is down and available 1 Channel is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ringing 5 Remote end is ringing 6 Line is up 7 Line is busy Examples CHANNEL STATUS Return the status of the current channel. CHANNEL STATUS Zap/9-1 Return the status of channel Zap/9-1 Note The <channelname> to use is the same as the channel names reported by the Asterisk console 'show channels' command. Thanks in any case Fernando Villarroel Noriel. > Hello. > > I am doing application for machine with card E1 > connected to Channel bank, but I have had problems > since you accustom my scrip tries to leave by a > occupied channel or, but I believe that I have > problems of concurrence since I have a data base > where > I identify each channel of channel bank and am > marking > like occupied each one of them, but you accustom > another instance of my AGI tries to leave by a > channel > or occupied returning a CHANNUNAVAIL, reason why I > lose many calls. > > What I want to do is to consult through pyst the E1 > card first to know how that channel must available > and > make the DIAL by that channel, with no need to use > Base de Datos. > > It is possible, or I must think about another type > of > solution, some suggestion?. > > Fernando Villarroel Noriel. > > > > ____________________________________________________________________________________ > We have the perfect Group for you. Check out the > handy changes to Yahoo! Groups > (http://groups.yahoo.com) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support > web services, security? > Get stuff done quickly with pre-integrated > technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 > based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Pyst-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyst-users > ____________________________________________________________________________________ Get your email and see which of your friends are online - Right on the New Yahoo.com (http://www.yahoo.com/preview) |