[asterisk-users] ChanIsAvail querry
Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
On 14:59, Wed 25 Nov 09, ABBAS SHAKEEL wrote: Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest As the documentation will tell you: This application sets the following channel variable upon completion: AVAILCHAN - the name of the available channel, if one exists So check the contents of that variable after running ChanIsAvail() -- Michiel van Baak mich...@vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer aficionados are both called users? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html - look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 - link to the issue Hope that helps. Dan Journo From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of ABBAS SHAKEEL Sent: 25 November 2009 09:59 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
Thanks Michiel and Dan @ Michiel i have checked the variables but they dont contain any value. @Dan I am using 1.6.1.2 May be some issue with it ... In the mean while let me test with an older version of asterisk On Wed, Nov 25, 2009 at 3:19 PM, Dan Journo d...@keshercommunications.comwrote: What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html- look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 – link to the issue Hope that helps. Dan Journo *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *ABBAS SHAKEEL *Sent:* 25 November 2009 09:59 *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
Dan I have reverted to 1.4.27 but got no success. Same behaviour Do anyone has any success with it ? On Wed, Nov 25, 2009 at 3:54 PM, ABBAS SHAKEEL shakeel.abbas@gmail.comwrote: Thanks Michiel and Dan @ Michiel i have checked the variables but they dont contain any value. @Dan I am using 1.6.1.2 May be some issue with it ... In the mean while let me test with an older version of asterisk On Wed, Nov 25, 2009 at 3:19 PM, Dan Journo d...@keshercommunications.comwrote: What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html- look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 – link to the issue Hope that helps. Dan Journo *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *ABBAS SHAKEEL *Sent:* 25 November 2009 09:59 *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
On 16:54, Wed 25 Nov 09, ABBAS SHAKEEL wrote: Dan I have reverted to 1.4.27 but got no success. Same behaviour Do anyone has any success with it ? This ael snippet is working great for me on current -trunk. I have been using this for some time now, it's from before 1.6 got branched so it should work there as well I think. Verbose(1,Routing call from ${CALLERID(num)} (${CALLERID(name)}) to ${EXTEN} on channel ${CHANNEL}); ChanIsAvail(Skinny/6000Skinny/6002SIP/michiele71,a); if ( x${AVAILORIGCHAN} != x ) { Verbose(1,Calling available channels: ${AVAILORIGCHAN}); Dial(${AVAILORIGCHAN},45,htxk); } On Wed, Nov 25, 2009 at 3:54 PM, ABBAS SHAKEEL shakeel.abbas@gmail.comwrote: Thanks Michiel and Dan @ Michiel i have checked the variables but they dont contain any value. @Dan I am using 1.6.1.2 May be some issue with it ... In the mean while let me test with an older version of asterisk On Wed, Nov 25, 2009 at 3:19 PM, Dan Journo d...@keshercommunications.comwrote: What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html- look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 ? link to the issue Hope that helps. Dan Journo *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *ABBAS SHAKEEL *Sent:* 25 November 2009 09:59 *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Michiel van Baak mich...@vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer aficionados are both called users? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
I wonder if this is related to my problem where the channel returns with a status of BUSY even if it is on hook -- this is a dahdi channel. ABBAS SHAKEEL shakeel.abbas@gmail.com wrote: Dan I have reverted to 1.4.27 but got no success. Same behaviour Do anyone has any success with it ? On Wed, Nov 25, 2009 at 3:54 PM, ABBAS SHAKEEL shakeel.abbas@gmail.comwrote: Thanks Michiel and Dan @ Michiel i have checked the variables but they dont contain any value. @Dan I am using 1.6.1.2 May be some issue with it ... In the mean while let me test with an older version of asterisk On Wed, Nov 25, 2009 at 3:19 PM, Dan Journo d...@keshercommunications.comwrote: What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html- look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 – link to the issue Hope that helps. Dan Journo *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *ABBAS SHAKEEL *Sent:* 25 November 2009 09:59 *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas -- Best Regards Shakeel Abbas Alternatives: ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] ChanIsAvail querry
Thanks Michiel Covici @ Michiel i will try the script @Covice yes it is a DAHDI channel On Wed, Nov 25, 2009 at 8:12 PM, cov...@ccs.covici.com wrote: I wonder if this is related to my problem where the channel returns with a status of BUSY even if it is on hook -- this is a dahdi channel. ABBAS SHAKEEL shakeel.abbas@gmail.com wrote: Dan I have reverted to 1.4.27 but got no success. Same behaviour Do anyone has any success with it ? On Wed, Nov 25, 2009 at 3:54 PM, ABBAS SHAKEEL shakeel.abbas@gmail.comwrote: Thanks Michiel and Dan @ Michiel i have checked the variables but they dont contain any value. @Dan I am using 1.6.1.2 May be some issue with it ... In the mean while let me test with an older version of asterisk On Wed, Nov 25, 2009 at 3:19 PM, Dan Journo d...@keshercommunications.comwrote: What version of Asterisk are you using? I think this might be related to an issue that was resolved in version 1.4.27 http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.27-summary.html-look in the list of Closed Items, second one down. https://issues.asterisk.org/view.php?id=14426 – link to the issue Hope that helps. Dan Journo *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *ABBAS SHAKEEL *Sent:* 25 November 2009 09:59 *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] ChanIsAvail querry Hello We need to know if a channel is not in use and can be used to dial a number etc.. I have tried the ChanIsAvail function with different parameters. ie ChanIsAvail(DAHDI/1DAHDI/2) ,ChanIsAvail(DAHDI/1,s) etc no matter the channel is busy or not it always return 0 . Please suggest FYI ChanIsAvail(Technology/resource[Technology2/resource2...][,options]): This application will check to see if any of the specified channels are available. Options: a - Check for all available channels, not only the first one. s - Consider the channel unavailable if the channel is in use at all. t - Simply checks if specified channels exist in the channel list (implies option s). This application sets the following channel variable upon completion: 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 -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas -- Best Regards Shakeel Abbas Alternatives: ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Regards Shakeel Abbas ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users