<?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[no buttons and extension in Elastix 1.6-14]]></title><description><![CDATA[<p dir="auto">I am able to login but it says NO BUTTONS and there are no extensions</p>
<p dir="auto">Please advice,</p>
<p dir="auto">LOG</p>
]]></description><link>http://localhost:4567/topic/381/no-buttons-and-extension-in-elastix-1.6-14</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 05:47:32 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/381.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Apr 2010 16:36:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to no buttons and extension in Elastix 1.6-14 on Sat, 15 May 2010 12:27:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">Another issue is the user deletion, when I delete FOP user, it did not delete user from the fop2uttons.<br />
So, I have edit the functions.inc.php again to look for the function statement fop2_del_user($id),<br />
and I added a new line to delete the user from fop2buttons using the exten field.<br />
Cheers!</p>
<p dir="auto">Regards,<br />
Chu</p>
<p dir="auto">function fop2_del_user($id) {<br />
$id = intval($id);<br />
$thisItem = fop2_get_user($id);<br />
$exten = $thisItem['exten'];<br />
$results = sql("DELETE FROM fop2UserGroup WHERE exten = '$exten'","query");<br />
$results = sql("DELETE FROM fop2users WHERE id = '$id'","query");<br />
$results = sql("DELETE FROM fop2buttons WHERE exten = '$exten'","query");[/color:3pgvj4ls]</p>
]]></description><link>http://localhost:4567/post/1754</link><guid isPermaLink="true">http://localhost:4567/post/1754</guid><dc:creator><![CDATA[seowphin]]></dc:creator><pubDate>Sat, 15 May 2010 12:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to no buttons and extension in Elastix 1.6-14 on Sat, 15 May 2010 12:07:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">I have finally fixed my problem by editing the PHP script in /var/www/html/admin/modules/fop2admin.<br />
In the PHP file functions.inc.php, I comment the following statement, then ev erything is working fine for now.<br />
Cheers!<br />
Best regards,<br />
Chu</p>
<pre><code>       // fop2_del_button($boton_id_a_borrar);
</code></pre>
<p dir="auto">&lt;?php</p>
<p dir="auto">function fop2admin_get_config($engine) {<br />
// Executed on APPLY in FreePBX, we regenerate the fop2buttons if needed<br />
global $amp_conf, $db, $active_modules;</p>
<pre><code>$fopbutton        = fop2_all_freepbx_buttons();
$botonesdefinidos = fop2_list_botones();

foreach ($botonesdefinidos as $devname =&gt; $datarray) {
   if(!array_key_exists($devname,$fopbutton)) {
       $results = sql("SELECT id FROM fop2buttons WHERE device='$devname'","getRow",DB_FETCHMODE_ASSOC);
       $boton_id_a_borrar  = $results['id'];
       // fop2_del_button($boton_id_a_borrar);[/color:14yvsbpm]
   }
}
</code></pre>
]]></description><link>http://localhost:4567/post/1753</link><guid isPermaLink="true">http://localhost:4567/post/1753</guid><dc:creator><![CDATA[seowphin]]></dc:creator><pubDate>Sat, 15 May 2010 12:07:01 GMT</pubDate></item><item><title><![CDATA[Reply to no buttons and extension in Elastix 1.6-14 on Sat, 15 May 2010 11:47:50 GMT]]></title><description><![CDATA[<p dir="auto">HI<br />
I have realised the real issue that actually causing all extensions gone.</p>
<p dir="auto">That is the "Apply Configure change" red button on top screwed up the whole thing!!! (I am running on FreePBX 2.2.1)</p>
<p dir="auto">When I select fop2admin from Module Admin and click on "process", and then click on "confirm" button to complete the installation, I immediately login into mysql and look into table fop2buttons and I can see all the extensions are there. However, when I click on the red button "Apply configuration changes" on top, and I try view the table again, all extension are gone except the last 3 records??? how come like that?</p>
<p dir="auto">Regards,<br />
Chu</p>
]]></description><link>http://localhost:4567/post/1752</link><guid isPermaLink="true">http://localhost:4567/post/1752</guid><dc:creator><![CDATA[seowphin]]></dc:creator><pubDate>Sat, 15 May 2010 11:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to no buttons and extension in Elastix 1.6-14 on Sat, 15 May 2010 11:18:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have run /usr/local/fop2/autoconfig_buttons_freepbx.sh both with and without fop2admin.</p>
<p dir="auto">When the fop2admin plugin installed, I can't see any extensions except ZAP/G0 and ZAP/G1.</p>
<p dir="auto">When the fop2admin plugin uninstalled, I can see all the extension buttons.</p>
<p dir="auto">I looked into the shell script /usr/local/fop2/autoconfigure_buttons_freepbx.sh and I realized that the script<br />
actually retrieve the extension buttons from the table fop2buttons when it found there is fop2admin plugin as shown below:-</p>
<p dir="auto">mysql -ENB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e <br />
"SELECT device AS channel,type,if(type&lt;&gt;'trunk',exten,'') AS extension,<br />
label,mailbox,context,'$QUEUECONTEXT' as queuecontext,concat('<em>',mailbox) AS extenvoicemail, <br />
privacy,`group`,IF(type='trunk',IF(email&lt;&gt;'',concat('splitme-',email),''),email) as email, <br />
queuechannel,originatechannel FROM fop2buttons WHERE device NOT LIKE 'USER/%' AND device&lt;&gt;'' <br />
ORDER BY type,exten" | sed '/**/d' | sed 's/: /=/g' | sed '/.</em>=$/d' | while read LINEA</p>
<p dir="auto">So, I open and view the data in the table fop2buttons, and I noticed that there only 3 records which are the<br />
ZAP/G0, ZAP/G1 and Park/default? Where are the extensions? I can only found them in table fop2users???</p>
<p dir="auto">Can anyone please advise me what is gone here?</p>
<p dir="auto">Thankyou and best regards,<br />
Chu</p>
]]></description><link>http://localhost:4567/post/1751</link><guid isPermaLink="true">http://localhost:4567/post/1751</guid><dc:creator><![CDATA[seowphin]]></dc:creator><pubDate>Sat, 15 May 2010 11:18:51 GMT</pubDate></item><item><title><![CDATA[Reply to no buttons and extension in Elastix 1.6-14 on Thu, 29 Apr 2010 17:12:03 GMT]]></title><description><![CDATA[<p dir="auto">Run</p>
<p dir="auto">/usr/local/fop2/autoconfig-buttons-freepbx.sh</p>
<p dir="auto">And look at the output.</p>
<p dir="auto">Did you make some changes to fop2.cfg ? Did you install the fop2admin module ?</p>
]]></description><link>http://localhost:4567/post/1750</link><guid isPermaLink="true">http://localhost:4567/post/1750</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 29 Apr 2010 17:12:03 GMT</pubDate></item></channel></rss>