<font color="#000066"><font face="courier new,monospace">Hi!<br><br>If it was me, I would create a bash script calling asterisk -vrx "core show commands"<br><br>something like:<br><br>for chan in $(asterisk -vrx "core show channels concise");<br>
do<br>asterisk -vrx "core show channel $(echo $chan|cut -d \! -f1)"|grep -i native;<br>done<br></font></font><br><div class="gmail_quote">On 21 June 2010 16:08, bruce bruce <span dir="ltr"><<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Everyone,<div><br></div><div>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. But it won't allow me to obtain information about OTHER channels and that is what I want to do. I want a search for all channels and an output spit out as g729 or TRUE or FALSE if there is a g729 channel.</div>
<div><br></div><div><span style="font-family: monospace; font-size: medium;"><pre>exten => s,1,Answer()
exten => s,n,Set(foo=${CHANNEL(audioreadformat)})
exten => s,n,NoOp(${foo})</pre><pre>Above ^^^^ NoOp spits out g729 if I call in with a g729 codec. But I want that to be about other channels and not the one I am calling into.</pre><pre>Thanks,</pre><pre>Bruce</pre></span></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>