Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-22 Thread Tiago Geada
Hi! If it was me, I would create a bash script calling asterisk -vrx core show commands something like: for chan in $(asterisk -vrx core show channels concise); do asterisk -vrx core show channel $(echo $chan|cut -d \! -f1)|grep -i native; done On 21 June 2010 16:08, bruce bruce

Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-22 Thread Tzafrir Cohen
On Tue, Jun 22, 2010 at 11:25:29AM +0100, Tiago Geada wrote: Hi! If it was me, I would create a bash script calling asterisk -vrx core show commands something like: for chan in $(asterisk -vrx core show channels concise); do asterisk -vrx core show channel $(echo $chan|cut -d \!

Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-22 Thread bruce bruce
Thanks Tiago and Tzafrir. I agree with the heavy load that Tzafrir mentioned. I already made a phpagi that does a system() for asterisk -rx and it's not very responsive at time. So what is the solution guys? You see, I only want to know if g729 is being used because I want to determine if a

Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-22 Thread Elliot Otchet
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of bruce bruce Sent: Tuesday, June 22, 2010 1:32 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info

Re: [asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-22 Thread bruce bruce
CHANNEL function be used to retrieve info about OTHER channels? Thanks Tiago and Tzafrir. I agree with the heavy load that Tzafrir mentioned. I already made a phpagi that does a system() for asterisk -rx and it's not very responsive at time. So what is the solution guys? You see, I only

[asterisk-users] Dialplan Gurus? Can Asterisk 1.4x CHANNEL function be used to retrieve info about OTHER channels?

2010-06-21 Thread bruce bruce
Hi Everyone, I want to know if a specific codec type is used at least one. For example, I want to know if out of the 100 calls on the system if there is a 1 channel that is running G.729 codec right now. If using dial-plan and I dial in, I can use this to obtain information about CURRENT channel.