<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>When trying to use GUI-2.0 with Asterisk 1.6.0, I had trouble with the Manager inserting extra linefeeds on the configuration files. I had to introduce the following modification to the config.c file:</DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>--- ../../config.c 2008-07-18 15:51:20.000000000 -0300</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+++ config.c 2008-10-04 01:12:36.000000000 -0300</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>@@ -1525,6 +1525,10 @@</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> stored in the precomments, but not printed back out.</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> I did have to make sure that comments following</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> the ;! header comments were not also deleted in the process */</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ if(!lineno) {</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ fi->lineno++;</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ return;</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ }</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> for (i=fi->lineno;i<lineno - precomment_lines; i++) {</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> fprintf(fp,"\n");</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>}</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>@@ -1623,8 +1627,8 @@</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> if (cmtp)</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> fprintf(f,"%s", cmtp);</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> }</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>- if (!cat->precomments)</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>- fprintf(f,"\n");</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ /*if (!cat->precomments)</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3>+ fprintf(f,"\n");*/</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> fprintf(f, "[%s]", cat->name);</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> if (cat->ignored || !AST_LIST_EMPTY(&cat->template_instances)) {</FONT></P>
<P><FONT face="Courier New, courier, monaco, monospace, sans-serif" size=3> fprintf(f, "(");</FONT></P>
<P><FONT face="times new roman, new york, times, serif" size=3></FONT> </P>
<P><FONT size=3>Now it's working fine. Hope this can help others. By the way, I use Fedora 9 on a x86_64 machine.</FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>Regards,</FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>Bruno</FONT></P>
<P><FONT size=3></FONT> </P></FONT></DIV></div><br>
<hr size=1>Novos endereços, o Yahoo! que você conhece. <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses">Crie um email novo</a> com a sua cara @ymail.com ou @rocketmail.com.</body></html>