Presence Pause how it works?

  1. 7 years ago

    Hi! Im trying to use Presence Pause plugin. When I change presence in precense box - nothing changes exept icon and astdb. Agent is not paused. Please explain how it works.

    In presencepause.pl

    $return .= "Interface: Local/$exten\@from-queue/n\r\n";

    But in my case context is not '@from-queue'. Changes it to my context gets it work.

    Thanks!

    PS. may be get context from config? Because may be different contexts for different extensions.

  2. Edited 7 years ago by AlexRS

    some answers are there http://members.asternic.biz/knowledge_base/howto-how-to-pause-queue-members-with-a-reason-from-fop2
    Is it possible to set pause when presence is not eq 'available'? For example, when operator set 'Meeting' in presence box, extension is pausing and pause reason (Meeting) adds to asternic ccstats. When he returns from meeting, he sets 'availables' in p.box and the pause will be removed.
    As I anderstand, it must works like this, but id doesnt... Extension is not pausing.

    My second question is how can I translate to my lang reason of pause and penalty in lang files? I want to make them the same as in precence box. The question - is it possible in 'lang' files?

  3. admin

    10 Jan 2017 Administrator

    Plugin will send the pause command to a fixed set of possible queue members:

    SIP/xxxx
    Agent/xxxx
    Local/xxxx@from-queue/n

    If you have any other kind of queue member, you will have to alter the plugin code (presencepause.pl) and do the change to match the queue member device as you have it in your system.

    Best regards,

  4. No, I have only dynamically added SIP extensions to queue. Pause from FOP2 works perfect..

  5. Edited 7 years ago by AlexRS

    In presencepause.pl

    $return .= "Interface: Local/$exten\@from-queue/n\r\n";

    But in my case context is not '@from-queue'. Changes it to my context gets it work.

    Thanks!

    PS. may be get context from config? Because may be different contexts for different extensions.

  6. admin

    10 Jan 2017 Administrator

    Good Idea. I will see if I can make it configurable for a next version/release.

  7. Thanks!

  8. admin

    20 Jan 2017 Administrator

    I have updated the presence pause plugin, channel is now configurable. You can use a queue member channel like:

    Local/#{EXTEN}@some-context/n&SIP/#{EXTEN}

    if you want to attempt pause on more than one channel you can use multiple entries with & to concatenate them.

    You should use the #{EXTEN} variable to replace with the extension number.

    Best regards,

  9. Thanks!

  10. Thanks twice!=)

or Sign Up to reply!