<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auto Agent Login]]></title><description><![CDATA[<p dir="auto">Hi Nicolas,</p>
<p dir="auto">Well, I have a feature in mind and I think it will be an advantage if you add to FOP2:</p>
<p dir="auto">If we can assign agents to queues from the admin module, where the administrator can assign the agent to one or multiple Queues, and also giving the feature of putting a penalty for each queue the agent will be assigned for. and this can be placed on fop2 buttons tab, or under FOP2 users tab or even it would be create if we add another tab under the name Manage agent &amp; queues or Queue Mapping.</p>
<p dir="auto">Then after that, when the Agent/User login to FOP2 he will be added to the assigned queues with the selected penalty.</p>
<p dir="auto">I think if we have such feature in FOP2 it will give an added value for FOP2 and all users who used or will use FOP2.</p>
<p dir="auto">Good Luck.</p>
]]></description><link>http://localhost:4567/topic/921/auto-agent-login</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 11:20:24 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/921.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Oct 2011 01:30:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto Agent Login on Thu, 13 Oct 2011 17:27:39 GMT]]></title><description><![CDATA[<p dir="auto">You can do already do it by using some custom tweaks in <a href="http://FOP2Callsbacks.pm" rel="nofollow ugc">FOP2Callsbacks.pm</a>.</p>
<p dir="auto">We already do this kind of integration for users of Asternic Call Center Stats Pro, where you have a way to assign queues to agents, and fop2 will read that configuration to auto add users to queues upon login.</p>
<p dir="auto">This might help you out getting started on your own implementation:</p>
<p dir="auto"><a href="http://FOP2Callbacks.pm" rel="nofollow ugc">FOP2Callbacks.pm</a></p>
<pre><code>...
    } elsif($command eq "auth") {

        my $exten = "";
        if($parameters[2] == 1) {
            $exten = $parameters[0];
        }
        $return = "Action: Originate\r\n";
        $return .= "Channel: Local/".$exten;
        $return .= "\@custom-fop2-autologin\r\n";
        $return .= "Application: Noop\r\n";
        $return .= "\r\n";

        push @allreturn, $return;

        return @allreturn;

} elsif .....
</code></pre>
<p dir="auto">extensions_custom.conf</p>
<pre><code>[custom-fop2-autologin]
exten =&gt; _X.,1,Verbose(Auto Login ${EXTEN})
exten =&gt; _X.,n,Set(NAME=${DB(AMPUSER/${EXTEN}/cidname)})
exten =&gt; _X.,n,Set(DEVI=${DB(DEVICE/${EXTEN}/dial)})
exten =&gt; _X.,n,Gosub(custom-query-queues,${EXTEN},1)
exten =&gt; _X.,n,Verbose(${AGENTQUEUES})
exten =&gt; _X.,n,Set(i=1)
exten =&gt; _X.,n,While($[${i}&lt;=${FIELDQTY(AGENTQUEUES,\,)}])
exten =&gt; _X.,n,Set(CURRENT_QUEUE=${CUT(AGENTQUEUES,\,,${i})})
exten =&gt; _X.,n,Verbose(${CURRENT_QUEUE})
exten =&gt; _X.,n,AddQueueMember(${CURRENT_QUEUE},Local/${EXTEN}@from-internal/n,,,${NAME},${DEVI})
exten =&gt; _X.,n,Set(i=$[${i}+1])
exten =&gt; _X.,n,EndWhile
exten =&gt; _X.,n,Hangup
</code></pre>
<p dir="auto">The example is not complete but you might get the idea.</p>
]]></description><link>http://localhost:4567/post/4073</link><guid isPermaLink="true">http://localhost:4567/post/4073</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 13 Oct 2011 17:27:39 GMT</pubDate></item></channel></rss>