<?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[dahdi extensions upgrate for autoconfig-buttons-freepbx.sh]]></title><description><![CDATA[<p dir="auto">dahdi extensions upgrate for <a href="http://autoconfig-buttons-freepbx.sh" rel="nofollow ugc">autoconfig-buttons-freepbx.sh</a></p>
<p dir="auto">add before "# SIP EXTENSIONS"</p>
<pre><code># DAHDI EXTENSIONS
mysql -ENB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "select s3.data as channel,extension,name as label,s1.data as mailbox,s2.data as context,concat('*',s1.data) as extenvoicemail from users as u left join zap as s1 on u.extension=s1.id and s1.keyword='mailbox' left join zap as s3 on u.extension=s3.id and s3.keyword='dial' left join zap as s2 on u.extension=s2.id where s2.keyword='context' order by extension" | sed '/\*\*/d' | sed 's/: /=/g' | while read LINEA
do
echo $LINEA | sed 's/channel=\(.*\)/\n[\1]\ntype=extension/g'
done
</code></pre>
]]></description><link>http://localhost:4567/topic/151/dahdi-extensions-upgrate-for-autoconfig-buttons-freepbx.sh</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:00:09 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/151.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Oct 2009 09:06:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dahdi extensions upgrate for autoconfig-buttons-freepbx.sh on Tue, 10 Nov 2009 20:59:06 GMT]]></title><description><![CDATA[<p dir="auto">I have tried this, and upon running it, I get this output:</p>
<p dir="auto">Usage: sed [OPTION]... {script-only-if-no-other-script} [i]...</p>
<p dir="auto">-n, --quiet, --silent<br />
suppress automatic printing of pattern space<br />
-e script, --expression=script<br />
add the script to the commands to be executed<br />
-f script-file, --file=script-file<br />
add the contents of script-file to the commands to be executed<br />
-i[SUFFIX], --in-place[=SUFFIX]<br />
edit files in place (makes backup if extension supplied)<br />
-c, --copy<br />
use copy instead of rename when shuffling files in -i mode<br />
(avoids change of input file ownership)<br />
-l N, --line-length=N<br />
specify the desired line-wrap length for the `l' command<br />
--posix<br />
disable all GNU extensions.<br />
-r, --regexp-extended<br />
use extended regular expressions in the script.<br />
-s, --separate<br />
consider files as separate rather than as a single continuous<br />
long stream.<br />
-u, --unbuffered<br />
load minimal amounts of data from the input files and flush<br />
the output buffers more often<br />
--help     display this help and exit<br />
--version  output version information and exit</p>
<p dir="auto">If no -e, --expression, -f, or --file option is given, then the first<br />
non-option argument is taken as the sed script to interpret.  All<br />
remaining arguments are names of input files; if no input files are<br />
specified, then the standard input is read.</p>
<p dir="auto">E-mail bug reports to: &lt;!-- e --&gt;&lt;a <a href="mailto:href=%22mailto:bonzini@gnu.org" rel="nofollow ugc">href="mailto:bonzini@gnu.org</a>"&gt;<a href="mailto:bonzini@gnu.org" rel="nofollow ugc">bonzini@gnu.org</a>&lt;/a&gt;&lt;!-- e --&gt; .<br />
Be sure to include the word <code>sed'' somewhere in the </code>Subject:'' field.<br />
ERROR 2005 (HY000): Unknown MySQL server host '-e' (1)<br />
<a href="http://autoconfig-dahdi-trunks-freepbx.sh" rel="nofollow ugc">autoconfig-dahdi-trunks-freepbx.sh</a>: line 3: /**/d: No such file or directory</p>
<p dir="auto">What am I doing wrong?</p>
]]></description><link>http://localhost:4567/post/688</link><guid isPermaLink="true">http://localhost:4567/post/688</guid><dc:creator><![CDATA[jmituzas]]></dc:creator><pubDate>Tue, 10 Nov 2009 20:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to dahdi extensions upgrate for autoconfig-buttons-freepbx.sh on Thu, 29 Oct 2009 12:23:28 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Thanks! May I add this snippet to the default script ?</p>
<p dir="auto">Best regards,</p>
</blockquote>
<p dir="auto">Yes, of course, for this I posted <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">and dahdi trunks from "Zap Channel DIDs"<br />
trunk label = Zap Channel Description</p>
<pre><code># DAHDI TRUNKS
mysql -ENB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "SELECT concat('DAHDI/',channel) as trunk, description as label, did as did FROM zapchandids ORDER BY zapchandids.channel ASC" | sed '/\*\*/d' | sed 's/: /=/g' | while read LINEA
do
echo $LINEA | sed 's/trunk=\(.*\)/\n[\1]\ntype=trunk\nlabel=\1/g'
done
</code></pre>
]]></description><link>http://localhost:4567/post/687</link><guid isPermaLink="true">http://localhost:4567/post/687</guid><dc:creator><![CDATA[g00d]]></dc:creator><pubDate>Thu, 29 Oct 2009 12:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to dahdi extensions upgrate for autoconfig-buttons-freepbx.sh on Mon, 26 Oct 2009 19:25:36 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! May I add this snippet to the default script ?</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/686</link><guid isPermaLink="true">http://localhost:4567/post/686</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 26 Oct 2009 19:25:36 GMT</pubDate></item></channel></rss>