<?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[Ordering of extensions]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Would just like to open by saying how great FOP2 is. Our company have purchased and deployed multiple licenses and have not encountered any difficulties with it so far.</p>
<p dir="auto">The latest one we have been setting up and demoing for a customer however did raise an interesting query.</p>
<p dir="auto">Is it possible to order the buttons in an arbitrary manner? I have tried reordering the extensions in the following way in the config:</p>
<pre><code>[SIP/100]
type=extension
label=Alan 
extension=100 
context=extensions 


[SIP/102]
type=extension
label=Bob 
extension=102 
context=extensions 


[SIP/101]
type=extension
label=Charlie 
extension=101 
context=extensions
</code></pre>
<p dir="auto">I was hoping that this order would be preserved but it appears to order the extensions numerically.</p>
<p dir="auto">Ultimately, we would like to order extensions alphabetically by their labels.</p>
<p dir="auto">I couldn't see any information in the [url=<a href="http://www.fop2.com/documentation-configuration-buttons.php#ExtensionButtons:35g6acjt" rel="nofollow ugc">http://www.fop2.com/documentation-configuration-buttons.php#ExtensionButtons:35g6acjt</a>]docs[/url:35g6acjt] regarding this.</p>
<p dir="auto">Am I overlooking something or is this not possible without a feature request?</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>http://localhost:4567/topic/759/ordering-of-extensions</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 13:27:40 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/759.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 May 2011 11:27:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ordering of extensions on Wed, 18 May 2011 12:46:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicolas,</p>
<p dir="auto">Thanks for your prompt response. You pointed me in the correct direction regarding your FIFO ordering.</p>
<p dir="auto">I managed to get it sorted - we are using an included configuration file rather than a script such as your freepbx bash script.</p>
<p dir="auto">My problem was that I was simply restarting fop2 and not refreshing the fop2 web page. I incorrectly assumed that the button layout would update but understandably the DOM content doesn't change until a page refresh.</p>
<p dir="auto">Thanks ever so much for your help.</p>
]]></description><link>http://localhost:4567/post/3384</link><guid isPermaLink="true">http://localhost:4567/post/3384</guid><dc:creator><![CDATA[provu]]></dc:creator><pubDate>Wed, 18 May 2011 12:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ordering of extensions on Wed, 18 May 2011 12:14:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">If you do a manual configuration, the extension order is preserved   (first come, first served basis). So, the sample that you posted must work (unless you still have the #exec line at the end that overwrites your button configuration and instead used the output from the executed script).</p>
<p dir="auto">So, in the case of using auto configuration for freepbx, you can play with button order by tweaking at the autoconfiguration scripts themselves. For buttons the script is <a href="http://autoconfig-buttons-freepbx.sh" rel="nofollow ugc">autoconfig-buttons-freepbx.sh</a>, it is kind of a complex script because it checks for fop2admin module or not, and if you are on user and device mode or not, and uses different mysql queries to get button configuration for each case. If you look at the first big mysql query (fop2admin, non user and device mode) you can change the order by clause to be</p>
<p dir="auto">ORDER BY type,label</p>
<p dir="auto">instead of</p>
<p dir="auto">ORDER BY type,(exten+0)</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/3383</link><guid isPermaLink="true">http://localhost:4567/post/3383</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 May 2011 12:14:36 GMT</pubDate></item></channel></rss>