Logout all users from Queue at night

Discussion in 'General' started by vaibhavs, Oct 15, 2009.

  1. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    Hi,

    How can I logout all users from the queue at end-of-day ?

    Sometimes users forget to logout of the queue.
    Is there any CLI command (or any other way) which I can run as a script every day at End-Of-Day to logout all users.

    Thx
    Vai
     
  2. dwells

    Joined:
    Sep 29, 2009
    Messages:
    127
    Likes Received:
    0
    I have the same problem...lazy/forgetful people.

    I'm looking for a similar solution, just no time. The CLI commands to remove them is basically:
    queue remove member Local/EXTEN@from-internal/n from XXXX
    where EXTEN is the extension logged in and XXXX is the queue number.

    If it's always the same people/extensions, a simple script can take care of that.
    one at a time from the script, invoke

    asterisk -rx "queue remove member Local/EXTEN@from-internal/n from XXXX"

    chmod +x to be able to execute it.
    and run it in the daily cron.d

    maybe i answered my own question...maybe i'll take my own advice on that one...

    Anyways let us know if it worked please.
     
  3. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    Actually, this did not work for me.
    May be my syntax was incorrect.

    Calls are live now, hence I cannot experiment, but I will send you a screen tomorrow of how I do it.

    Thx
    Vai
     
  4. dwells

    Joined:
    Sep 29, 2009
    Messages:
    127
    Likes Received:
    0
    I will right commands as if they are running from a script, and not from the asterisk console...

    asterisk -rx "queue show" ; this will give you a display of members and proper channel info
    based on my output from above, I entered this command seen exactly, with output.

    Command:asterisk -rx "queue remove member Local/954@from-internal/n from 900"

    Output:Removed interface 'Local/954@from-internal/n' from queue '900'

    So this worked for me, but read your output of whaterver queue you are using, and change accordingly.
     

Share This Page