On 01/24/2012 04:28 PM, Jeremy Kister wrote:
On 1/23/2012 3:53 PM, Jeremy Kister wrote:
What I'm trying to do is keep track of conferences that are used.
this seems to work:
[macro-confbridge-setup]
exten => s,1,Set(NUM=$[0${NUM} + 1]);
exten => s,n,Set(CONFNO=99${NUM})
exten => s,n,Set(CONFS=${SHELL(asterisk -rx "core show channels" | awk
'/ConfBridge/ { print $2 }' | awk -F@ '{ print $1 }' | sort | uniq |
grep ${CONFNO} )})
exten => s,n,GotoIf($["${CONFS}" = "${CONFNO}"]?1)
exten => s,n,Noop(got a new conference# ${CONFNO})
but there's got to be a better way than spawning X shell commands for
'asterisk -rx', right ?
Note that ConfBridge in Asterisk 1.8 is nearly 'experimental', and it
was almost completely rewritten for Asterisk 10. There is gained a lot
more functionality, and much more flexible configuration system, and
dialplan functions that allow access to the sorts of information you are
looking for.
In essence, I would suggest not spending too much time trying to work
the Asterisk 1.8 version of ConfBridge into your dialplan/repertoire,
unless you really need it. The version in Asterisk 10 is much, much better.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kflem...@digium.com | SIP: kpflem...@digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users