running Asterisk 1.8.9.0-rc2, what are the ways to interface with ConfBridge ? I see the CLI command 'confbridge' documented for asterisk 10, but i dont see how to interface with confbridge on 1.8 What I'm trying to do is keep track of conferences that are used. I tried something like the below, but not only does Confbridge not return, but i'd need something that erases the database entry after the conference is empty, not after 1 particular user leaves. [macro-confbridge-setup] exten => s,1,Set(NUM=$[0${NUM} + 1]); exten => s,n,Set(CONFNO=99${NUM}) exten => s,n,GotoIf(${DB_EXISTS(confbridge:${CONFNO})}?1) exten => s,n,Set(DB(confbridge/${CONFNO})=1) [foo] exten => s,1,Macro(confbridge-setup) exten => s,n,ConfBridge(${CONFNO}) exten => s,n,NoOp( ${DB_DELETE(confbridge/${CONFNO})} ) -- Jeremy Kister http://jeremy.kister.net./
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./
Reasonably Related Threads
- The new ConfBridge application is now in Asterisk Trunk!
- Any help Address 0xfffffffe out of bounds in app_confbridge.casterisk-11.5.1 using confbridge.conf
- MeetMe -> ConfBridge: hint not working
- ConfBridge and sound prompts
- [asterisk-user] Confbridge Kick Action