<?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 Report]]></title><description><![CDATA[<p dir="auto">If your extensions start with 0 the shell script (<a href="http://autoconfig-users-freepbx.sh" rel="nofollow ugc">autoconfig-users-freepbx.sh</a>) fails because bash interprets leading 0's as octal and you get the following error:</p>
<p dir="auto">/usr/local/fop2/autoconfig-users-freepbx.sh: line 11: 06997: value too great for base (error token is "06997")</p>
<p dir="auto">You can of course put a leading 10# on the appropriate entities to force it to read them as base 10 but then it strips leading 0.  This is kludgey and should probably be written another way instead of just forcing to base 10 since that doesn't really have the desired effect either.</p>
<pre><code>11c11
&lt; eval `cat /etc/asterisk/voicemail.conf | grep -v "^\;" | grep "=&gt;" | cut -d, -f1 | sed 's/ //g' | sed  's/\([^=]*\)=&gt;\(.*\)/Fop2Clave[\1]=\2;/g'`
---
&gt; eval `cat /etc/asterisk/voicemail.conf | grep -v "^\;" | grep "=&gt;" | cut -d, -f1 | sed 's/ //g' | sed  's/\([^=]*\)=&gt;\(.*\)/Fop2Clave[10#\1]=\2;/g'`
30c30
&lt; echo -n $LINEA | sed 's/EMPTYSECRET/'${Fop2Clave[${MYEXTEN}]}'/g' | sed 's/: /:/g'
---
&gt; echo -n $LINEA | sed 's/EMPTYSECRET/'${Fop2Clave[10#${MYEXTEN}]}'/g' | sed 's/: /:/g'
</code></pre>
]]></description><link>http://localhost:4567/topic/422/bug-report</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:14:24 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/422.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jun 2010 16:26:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug Report on Wed, 09 Jun 2010 20:03:40 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the report, this is already fixed for the upcoming release using another method. If you need the fixed script please contact me directly as it is quite large and it will probably break if I post it here.</p>
]]></description><link>http://localhost:4567/post/1921</link><guid isPermaLink="true">http://localhost:4567/post/1921</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 09 Jun 2010 20:03:40 GMT</pubDate></item></channel></rss>