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 ?


--

Jeremy Kister
http://jeremy.kister.net./

--
_____________________________________________________________________
-- 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

Reply via email to