Page 1 of 1

Pickup Groups maintenance command?

Posted: 08 Apr 2011 05:01
by Lampers
Hi,

I was wondering if there is a maintenance command for pickup groups? Something similar to pbxstat for hunting groups?

Thank you,

Lampers

Re: Pickup Groups maintenance command?

Posted: 14 Apr 2011 07:26
by Eliott
Can't currently remember such command. What do you expect to see with it?

Re: Pickup Groups maintenance command?

Posted: 14 Apr 2011 09:43
by Lampers
Hopefully, a list of Pickup group names and IDs

Re: Pickup Groups maintenance command?

Posted: 15 Apr 2011 03:58
by Eliott
Why you dont use mgr?

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?

Posted: 26 Apr 2011 06:58
by Lampers
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

Re: Pickup Groups maintenance command?

Posted: 26 Apr 2011 07:45
by Eliott
No, it isn't.