<?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 Answer on Conference action button]]></title><description><![CDATA[<p dir="auto">Any chance that you could enable auto answer via header when using the conference action button?<br />
It doesn't work there. "Call Pickup", "Pickup from Park" and "Queue "work fine now.</p>
]]></description><link>https://forum.fop2.com/topic/2142/auto-answer-on-conference-action-button</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 23:42:18 GMT</lastBuildDate><atom:link href="https://forum.fop2.com/topic/2142.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Jan 2016 16:25:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto Answer on Conference action button on Fri, 06 May 2016 19:46:50 GMT]]></title><description><![CDATA[<p dir="auto">This is my /var/www/html/fop2/admin/plugins/conferencebutton/conferencebutton.pl now.<br />
Auto answer doesn't work.</p>
<p dir="auto">$Client_Post_Command_Handler{'conferencebutton'}{'customconference'} = sub {<br />
my @allreturn = ();<br />
my $origen   = shift;<br />
my $destino  = shift;<br />
my $contexto = shift;<br />
my $socket   = shift;<br />
my $mychannel = main::get_btn_config( "$contexto", $origen, 'MAINCHANNEL');<br />
my $extension_to_dial = $destino;</p>
<pre><code>if ( !main::hasPermChannel( $socket, "dial", $mychannel ) &amp;&amp; !main::hasPerm( $socket, "all" ) ) {
    # No 'dial' permission, abort action
    print "No permissions for conference\n";
    return @allreturn;
}

my @orivariables;
my $autoanswer         = main::get_btn_config( "$contexto", $origen, 'AUTOANSWER');
my $autoanswer_header  = main::get_btn_config( "$contexto", $origen, 'AUTOANSWERHEADER');
my $originate_variable = main::get_btn_config( "$contexto", $origen, 'ORIGINATEVARIABLES');

if ( $autoanswer_header ne "" &amp;&amp; $autoanswer == 1) {
    push @orivariables, $autoanswer_header;
}
if ( $originate_variable ne "" ) {
    push @orivariables, $originate_variable;
}

my $orivariable = join( ',', @orivariables );

my $return  = "Action: Originate\r\n";
$return .= "Channel: Local/$extension_to_dial\@from-internal\r\n";
$return .= "Application: ChanSpy\r\n";
$return .= "Data: $mychannel,BEq\r\n";
$return .= "Variable: $orivariable\r\n";
$return .= "\r\n";
push @allreturn, $return;
return @allreturn;
</code></pre>
<p dir="auto">};</p>
<p dir="auto">$Client_Pre_Command_Handler{'conferencebutton'}{'ping'} = sub {<br />
print "pong pong conferencebutton!\n";<br />
};</p>
<p dir="auto">$AMI_Event_Handler{'conferencebutton'}{'QUEUEMEMBER'} = sub {<br />
my $event = shift;</p>
<pre><code>#my @keys =  keys %$event;
#foreach my $key (@keys) {
#    print "$key = ".${$event}{$key}."\n";
#}
#print "\n";
</code></pre>
<p dir="auto">};</p>
]]></description><link>https://forum.fop2.com/post/9447</link><guid isPermaLink="true">https://forum.fop2.com/post/9447</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Fri, 06 May 2016 19:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to Auto Answer on Conference action button on Fri, 06 May 2016 14:27:41 GMT]]></title><description><![CDATA[<p dir="auto">Edit /var/www/html/fop2/admin/plugins/conferencebutton.pl and change this function:</p>
<pre><code>$Client_Post_Command_Handler{'conferencebutton'}{'customconference'} = sub {
    my @allreturn = ();
    my $origen   = shift;
    my $destino  = shift;
    my $contexto = shift;
    my $socket   = shift;
    my $mychannel = main::get_btn_config( "$contexto", $origen, 'MAINCHANNEL');
    my $extension_to_dial = $destino;

    if ( !main::hasPermChannel( $socket, "dial", $mychannel ) &amp;&amp; !main::hasPerm( $socket, "all" ) ) {
        # No 'dial' permission, abort action
        print "No permissions for conference\n";
        return @allreturn;
    }

    my @orivariables;
    my $autoanswer         = main::get_btn_config( "$contexto", $origen, 'AUTOANSWER');
    my $autoanswer_header  = main::get_btn_config( "$contexto", $origen, 'AUTOANSWERHEADER');
    my $originate_variable = main::get_btn_config( "$contexto", $origen, 'ORIGINATEVARIABLES');

    if ( $autoanswer_header ne "" &amp;&amp; $autoanswer == 1) {
        push @orivariables, $autoanswer_header;
    }
    if ( $originate_variable ne "" ) {
        push @orivariables, $originate_variable;
    }

    my $orivariable = join( ',', @orivariables );

    my $return  = "Action: Originate\r\n";
    $return .= "Channel: Local/$extension_to_dial\@from-internal\r\n";
    $return .= "Application: ChanSpy\r\n";
    $return .= "Data: $mychannel,BEq\r\n";
    $return .= "Variable: $orivariable\r\n";
    $return .= "\r\n";
    push @allreturn, $return;
    return @allreturn;
};
</code></pre>
<p dir="auto">Then restart FOP2 and test it out.. if it works fine I will update the plugin and release a new version.</p>
<p dir="auto">Best regards,</p>
]]></description><link>https://forum.fop2.com/post/9446</link><guid isPermaLink="true">https://forum.fop2.com/post/9446</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 06 May 2016 14:27:41 GMT</pubDate></item><item><title><![CDATA[Reply to Auto Answer on Conference action button on Thu, 05 May 2016 20:01:36 GMT]]></title><description><![CDATA[<p dir="auto">Is this something you could add in a future release?<br />
Auto Answer already works on listen and listen/whisper, and I believe the conference action button is the same as listen/whisper, isn't it?</p>
<p dir="auto">Thank you for considering this.</p>
]]></description><link>https://forum.fop2.com/post/9445</link><guid isPermaLink="true">https://forum.fop2.com/post/9445</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Thu, 05 May 2016 20:01:36 GMT</pubDate></item></channel></rss>