Re: [asterisk-users] Disconnect queues members every night

2008-12-31 Thread Benoit
Hi, Well, i've made it that way, a AEL macro, that disconnect every member, with the ability to except one: macro empty_queue (queue,except) { queueSize=${QUEUE_MEMBER_COUNT(${queue})}; Set(queueMemberList=${QUEUE_MEMBER_LIST(${queue})}); for (x=1; ${x} = ${queueSize};

Re: [asterisk-users] Disconnect queues members every night

2008-12-30 Thread Lenz Emilitri
You could use a very simple approach and just disconnect them all without caring if they are connected or not. Something like: asterisk -rx agent logoff agent/101 asterisk -rx agent logoff agent/102 asterisk -rx agent logoff agent/103 ..and so on to be executed at a given time. Of course I

[asterisk-users] Disconnect queues members every night

2008-12-22 Thread Benoit
Hi, To force user to behave correctly, i want to make a process of disconnecting every member but one (special alarm phone) every day at a special time. I'm thinking of a cron job that will create a call file that will dial an appropriate extension to do the job, is this the correct way ? I'm