Hi,
I was wondering if there is a maintenance command for pickup groups? Something similar to pbxstat for hunting groups?
Thank you,
Lampers
Pickup Groups maintenance command?
Re: Pickup Groups maintenance command?
Can't currently remember such command. What do you expect to see with it?
Re: Pickup Groups maintenance command?
Hopefully, a list of Pickup group names and IDs
Re: Pickup Groups maintenance command?
Why you dont use mgr?
This command shows you all pickup groups and the members (copy and paste to shell as one command)
This command shows you all pickup groups and the members (copy and paste to shell as one command)
Code: Select all
cdmao; (echo "select pickup_id from pickup;"|cuser|grep "\-\-"|grep -v pickup|cut -c5-11;)|while read pickup_id;do echo -n "Next Group: ";echo "select name_pickup, pickup_id from pickup where pickup_id=$pickup_id;"|cuser |grep "\-\-"|grep -v pickup |cut -c5-;echo "select numan, pickup_id from poste where pickup_id=$pickup_id;"|cuser|grep "\-\-"|grep -v numan |cut -c5-; done
Re: Pickup Groups maintenance command?
This is excellent, just what i'm after. I'm trying to automate the collection of this data from an external program so mgr doesnt really work in that sense. I'm interested in retreiving more data in this fashion, is the database structure documented anywhere?
Many thanks
Many thanks
Re: Pickup Groups maintenance command?
No, it isn't.