[asterisk-users] ConfBridge details

Jeremy Kister asterisk-02 at jeremykister.com
Tue Jan 24 16:28:16 CST 2012


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./



More information about the asterisk-users mailing list