groups and categories

Home » Asterisk Users » groups and categories
Asterisk Users No Comments

I know that I should know this. But I’m having serious brain farts at the
moment.

I want to have a call be counted in a number of ways

outbound
inbound
potential

so, for example, a call comes into my dialplan, I want to add it to

TotalCalls (all calls inbound + outbound)
InboundCalls (all inbound calls)
Potenial (all inbound calls that may potentially enter a conference)
Potenial (all inbound calls that may potentially enter a conference by
conference name)

the potential category needs to be decremented when the call actually
enters a conference

so, I have

exten => _[0-9A-Za-z].,n,Set(GROUP(conference)=TotalCalls)
exten => _[0-9A-Za-z].,n,Set(GROUP(conference)=Inbound)
exten => _[0-9A-Za-z].,n,Set(GROUP(conference)= Potenial)
exten => _[0-9A-Za-z].,n,Set(GROUP()= Potenial_${CONFNAME})

group_count(inbound)
group_count(inbound@conference)
group_count(potential@conference)
group_count(potential_${CONFNAME} )

however, when the call enters the conference, I need to unset the potential
calls groups

how do I do this ?

/me feels very very stupid

Julian