<?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[Bug in autoconfig-buttons-freepbx.sh]]></title><description><![CDATA[<p dir="auto">Asterisk 1.6 using dahdi</p>
<p dir="auto">In <a href="http://autoconfig-buttons-freepbx.sh" rel="nofollow ugc">autoconfig-buttons-freepbx.sh</a>, the following code is supposed to be checking for dahdi trunks, it executes a "zap show channels" command. Zap show channels will report it as "no such command". It should be "dahdi show channels" - I've bolded the error.</p>
<p dir="auto">DAHDI=<code>asterisk -rx "**zap** show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | head -n 1</code><br />
if [ "X${DAHDI}" != "X" ]; then<br />
echo<br />
echo "[DAHDI/$DAHDI]"<br />
echo "type=trunk"<br />
echo "label=DAHDI"<br />
asterisk -rx "<strong>zap</strong> show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +2 | while read LINEA<br />
do<br />
echo "channel=DAHDI/$LINEA"<br />
done</p>
]]></description><link>http://localhost:4567/topic/292/bug-in-autoconfig-buttons-freepbx.sh</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 08:03:54 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/292.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Mar 2010 18:43:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug in autoconfig-buttons-freepbx.sh on Tue, 16 Mar 2010 22:37:16 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! I believe both issues were already addressed on the beta (when using it in conjunction with fop2 freepbx module).</p>
<p dir="auto">There are also some old installations out there that still require zap. So this solution will not fit everyone. And the autoconfig scripts are actually script so people can tweak them as you did.</p>
]]></description><link>http://localhost:4567/post/1381</link><guid isPermaLink="true">http://localhost:4567/post/1381</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 16 Mar 2010 22:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to Bug in autoconfig-buttons-freepbx.sh on Tue, 16 Mar 2010 20:10:38 GMT]]></title><description><![CDATA[<p dir="auto">Also to configure the Dahdi channels for extensions, the MySQL database for zap must be parsed. Add the following after the IAX extensions:</p>
<h1>DAHDI EXTENSIONS</h1>
<p dir="auto">mysql -ENB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "select concat('DAHDI/',extension) as channel,extension,name as label,s1.data as mailbox,s2.data as context,concat('<em>',s1.data) as extenvoicemail from users as u left join zap as s1 on <a href="http://u.extension=s1.id" rel="nofollow ugc">u.extension=s1.id</a> and s1.keyword='mailbox' left join zap as s2 on <a href="http://u.extension=s2.id" rel="nofollow ugc">u.extension=s2.id</a> where s2.keyword='context' order by extension" | sed '/**/d' | sed 's/: /=/g' | while read LINEA<br />
do<br />
echo $LINEA | sed 's/channel=(.</em>)/\n[\1]\ntype=extension/g'<br />
done</p>
]]></description><link>http://localhost:4567/post/1380</link><guid isPermaLink="true">http://localhost:4567/post/1380</guid><dc:creator><![CDATA[blanchae]]></dc:creator><pubDate>Tue, 16 Mar 2010 20:10:38 GMT</pubDate></item></channel></rss>