<a href="http://clx.digi.com.br/wiki/bin/view/Asterisk/TutorialAsteriskUnicallFax">http://clx.digi.com.br/wiki/bin/view/Asterisk/TutorialAsteriskUnicallFax</a><br><br><br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">
Josué Conti</b> &lt;<a href="mailto:josueconti@gmail.com">josueconti@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Olá, veja se as bibliotecas abaixo estão instaladas:



<pre>apt-get install libnewt-dev libssl0.9.7 libssl-dev zlib1g-dev libncurses5-dev libeditline0 libeditline-dev libedit2 libedit-dev libreadline4-dev libreadline4 kernel-headers-`uname -r&#39; mpg123 libmysqlclient15-dev libtiff4 libtiff4-dev libxml2 libxml2-dev 
<br></pre>Abraço e boa sorte.<br><br><div><span class="gmail_quote">2007/2/22, Sadi Nogueira &lt;<a href="mailto:forums@sadi.eti.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">forums@sadi.eti.br
</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_110eaab35046a1a5_1">




<div>
<div><span><font face="Arial" size="2">Pessoal, não sei se 
já passou por aqui uma dúvida parecida e desculpem pelo tamanho do 
post...</font></span></div>
<div><span><font face="Arial" size="2"></font></span><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span>&nbsp;&nbsp;&nbsp; <font face="Arial" size="2">Já consegui instalar e fazer funcionar o ASTERISK no FreeBSD por 
completo, mas por razões neo-politico-sócio-agropecuária , tenho que manter no 
ambiente o Debian.</font></span></div>
<div><span><font face="Arial" size="2">Se eu instalar o 
Asterisk pelo apt-get do Debian 3.1 r5 (P-III 600, 256MB, 3C905C-TX), tudo 
instala normalmente, o Zaptel não dá erro mas também não funciona. 
</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">servidor:~# apt-get 
install zaptel<br>Reading Package Lists... Done<br>Building Dependency Tree... 
Done<br>The following NEW packages will be installed:<br>&nbsp; zaptel<br>0 
upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br>Need to get 
0B/39.6kB of archives.<br>After unpacking 311kB of additional disk space will be 
used.<br>Selecting previously deselected package zaptel.<br>(Reading database 
... 28758 files and directories currently installed.)<br>Unpacking zaptel (from 
.../zaptel_1%3a1.0.7-4.1_i386.deb) ...<br>Setting up zaptel (1.0.7-4.1) 
...</font></span></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><span><font face="Arial" size="2">servidor:~# 
zttool<br>Unable to open /dev/zap/ctl: No such 
device<br>servidor:~#<br></font></span></div>
<div><span><font face="Arial" size="2">Se eu baixar e 
tentar compilar, t<span><font face="Arial" size="2">oda a 
instalação corre normalmente, exceto a do zaptel que dá erro assim que eu dou o 
primeiro comando. Já tentei com o Kernel 2.4 e com o Kernel 2.6 e acontece a 
mesma coisa. </font></span></font></span></div>
<div><span></span><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">servidor:/usr/src/zaptel-1.2# make clean<br>rm -f torisatool makefw 
tor2fw.h radfw.h<br>rm -f ztcfg torisatool makefw ztmonitor ztspeed zttest 
fxotune zttool<br>rm -f patgen pattest patlooptest hdlcstress hdlctest hdlcgen 
hdlcverify timertest<br>rm -f *.o ztcfg tzdriver sethdlc sethdlc-new<br>rm -f 
zonedata.lo tonezone.lo libtonezone.so *.lo<br>make -C&nbsp; 
SUBDIRS=/usr/src/zaptel-1.2 clean<br>make: *** SUBDIRS=/usr/src/zaptel-1.2: No 
such file or directory.&nbsp; Stop.<br>make: *** [clean] Error 
2<br>servidor:/usr/src/zaptel-1.2#<br></font></span></div>
<div><span><font face="Arial" size="2">Se eu tentar seguir 
e mandar compilar, olhem o que ocorre:</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">servidor:/usr/src/zaptel-1.2# make<br>cc -DSTANDALONE_ZAPATA 
-DBUILDING_TONEZONE -I. -O4 -g -Wall&nbsp;&nbsp; 
-DZAPTEL_CONFIG=\&quot;/etc/zaptel.conf\&quot;&nbsp;&nbsp; -c -o gendigits.o 
gendigits.c<br>cc -o gendigits gendigits.o -lm<br>./gendigits &gt; tones.h<br>cc 
-DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -I. -O4 -g -Wall&nbsp;&nbsp; 
-DZAPTEL_CONFIG=\&quot;/etc/zaptel.conf\&quot;&nbsp;&nbsp;&nbsp; makefw.c&nbsp;&nbsp; -o 
makefw<br>./makefw tormenta2.rbt tor2fw &gt; tor2fw.h<br>Loaded 69900 bytes from 
file<br>./makefw pciradio.rbt radfw &gt; radfw.h<br>Loaded 42096 bytes from 
file</font></span></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><span><font face="Arial" size="2">cc -I/include -O6 
-DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/drivers/net -Wall -I. 
-Wstrict-prototypes -fomit-frame-pointer -I/drivers/net/wan 
-I/include/net&nbsp;&nbsp; -DSTANDALONE_ZAPATA -o zaptel-base.o -c 
zaptel-base.c<br>In file included from 
zaptel-base.c:41:<br>/usr/include/linux/kernel.h:72: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/linux/kernel.h:74: error: syntax error before 
&quot;size_t&quot;<br>In file included from 
/usr/include/linux/timex.h:186,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/sched.h:11,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/module.h:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from zaptel-base.c:43:<br>/usr/include/linux/time.h:14: error: syntax error 
before &quot;time_t&quot;<br>/usr/include/linux/time.h:16: error: syntax error before &#39;}&#39; 
token<br>/usr/include/linux/time.h:20: error: syntax error before &quot;time_t&quot;<br>In 
file included from 
/usr/include/linux/timex.h:186,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/sched.h:11,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/module.h:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from zaptel-base.c:43:<br>/usr/include/linux/time.h: In function 
`timespec_to_jiffies&#39;:<br>/usr/include/linux/time.h:198: error: dereferencing 
pointer to incomplete type<br>/usr/include/linux/time.h:199: error: 
dereferencing pointer to incomplete type<br>/usr/include/linux/time.h: In 
function `jiffies_to_timespec&#39;:<br>/usr/include/linux/time.h:219: error: 
dereferencing pointer to incomplete type<br>/usr/include/linux/time.h:219: 
error: dereferencing pointer to incomplete type<br>/usr/include/linux/time.h: In 
function `timeval_to_jiffies&#39;:<br>/usr/include/linux/time.h:237: error: 
dereferencing pointer to incomplete type<br>/usr/include/linux/time.h:238: 
error: dereferencing pointer to incomplete type<br>/usr/include/linux/time.h: In 
function `jiffies_to_timeval&#39;:<br>/usr/include/linux/time.h:257: error: 
dereferencing pointer to incomplete type<br>/usr/include/linux/time.h:257: 
error: dereferencing pointer to incomplete 
type<br>/usr/include/linux/time.h:258: error: dereferencing pointer to 
incomplete type<br>/usr/include/linux/time.h: In function 
`timespec_equal&#39;:<br>/usr/include/linux/time.h:263: error: dereferencing pointer 
to incomplete type<br>/usr/include/linux/time.h:263: error: dereferencing 
pointer to incomplete type<br>/usr/include/linux/time.h:263: error: 
dereferencing pointer to incomplete type<br>/usr/include/linux/time.h:263: 
error: dereferencing pointer to incomplete type<br>/usr/include/linux/time.h: In 
function `get_seconds&#39;:<br>/usr/include/linux/time.h:305: error: invalid use of 
undefined type `struct timespec&#39;<br>/usr/include/linux/time.h: At top 
level:<br>/usr/include/linux/time.h:329: error: syntax error before 
&quot;time_t&quot;<br>/usr/include/linux/time.h: In function 
`set_normalized_timespec&#39;:<br>/usr/include/linux/time.h:331: error: `nsec&#39; 
undeclared (first use in this function)<br>/usr/include/linux/time.h:331: error: 
(Each undeclared identifier is reported only 
once<br>/usr/include/linux/time.h:331: error: for each function it appears 
in.)<br>/usr/include/linux/time.h:333: error: `sec&#39; undeclared (first use in 
this function)<br>/usr/include/linux/time.h:339: error: `ts&#39; undeclared (first 
use in this function)<br>/usr/include/linux/time.h: At top 
level:<br>/usr/include/linux/time.h:359: error: field `it_interval&#39; has 
incomplete type<br>/usr/include/linux/time.h:360: error: field `it_value&#39; has 
incomplete type<br>/usr/include/linux/time.h:364: error: field `it_interval&#39; has 
incomplete type<br>/usr/include/linux/time.h:365: error: field `it_value&#39; has 
incomplete type<br>In file included from 
/usr/include/linux/sched.h:11,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/module.h:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from zaptel-base.c:43:<br>/usr/include/linux/timex.h:203: error: field `time&#39; 
has incomplete type<br>In file included from 
/usr/include/linux/string.h:23,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/bitmap.h:11,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/cpumask.h:8,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/sched.h:15,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from 
/usr/include/linux/module.h:10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from zaptel-base.c:43:<br>/usr/include/asm/string.h:41: error: syntax error 
before &quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`strncpy&#39;:<br>/usr/include/asm/string.h:55: error: `src&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:55: error: `dest&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:55: error: `count&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:77: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`strncat&#39;:<br>/usr/include/asm/string.h:94: error: `src&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:94: error: `dest&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:94: error: `count&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:121: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`strncmp&#39;:<br>/usr/include/asm/string.h:139: error: `cs&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:139: error: `ct&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:139: error: `count&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:180: error: syntax error before 
&quot;strlen&quot;<br>/usr/include/asm/string.h:193: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`__memcpy&#39;:<br>/usr/include/asm/string.h:206: error: `n&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:206: error: `to&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:206: error: `from&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:215: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`__constant_memcpy&#39;:<br>/usr/include/asm/string.h:217: error: `n&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:218: error: `to&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h:218: error: 
`from&#39; undeclared (first use in this function)<br>/usr/include/asm/string.h: At 
top level:<br>/usr/include/asm/string.h:299: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`memmove&#39;:<br>/usr/include/asm/string.h:302: error: `dest&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:302: error: `src&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:307: error: `n&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:326: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`memchr&#39;:<br>/usr/include/asm/string.h:330: error: `count&#39; undeclared (first use 
in this function)<br>/usr/include/asm/string.h:338: error: `c&#39; undeclared (first 
use in this function)<br>/usr/include/asm/string.h:338: error: `cs&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:342: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`__memset_generic&#39;:<br>/usr/include/asm/string.h:349: error: `c&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:349: error: `s&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h:349: error: 
`count&#39; undeclared (first use in this function)<br>/usr/include/asm/string.h: At 
top level:<br>/usr/include/asm/string.h:362: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`__constant_c_memset&#39;:<br>/usr/include/asm/string.h:375: error: `c&#39; undeclared 
(first use in this function)<br>/usr/include/asm/string.h:375: error: `count&#39; 
undeclared (first use in this function)<br>/usr/include/asm/string.h:375: error: 
`s&#39; undeclared (first use in this function)<br>/usr/include/asm/string.h: At top 
level:<br>/usr/include/asm/string.h:382: error: syntax error before 
&quot;strnlen&quot;<br>/usr/include/asm/string.h:382: error: syntax error before 
&quot;size_t&quot;<br>/usr/include/asm/string.h: In function 
`strnlen&#39;:<br>/usr/include/asm/string.h:397: error: `s&#39; undeclared (first use in 
this function)<br>/usr/include/asm/string.h:397: error: `count&#39; undeclared 
(first use in this function)<br>...</font></span></div>
<div><span><font face="Arial" size="2">( 
</font></span><span><font face="Arial" size="2">mais 1 
milhão de terabytes de mensagens como essas seguidas</font></span><span><font face="Arial" size="2">)</font></span></div>
<div><span><font face="Arial" size="2">...</font></span></div>
<div><span><font face="Arial" size="2">zaptel.h:1162: 
error: storage size of `confin&#39; isn&#39;t known<br>zaptel.h:1163: error: storage 
size of `confout&#39; isn&#39;t known<br>zaptel-base.c:6560: error: storage size of 
`zt_fops&#39; isn&#39;t known<br>make: *** [zaptel-base.o] Error 
1<br>servidor:/usr/src/zaptel-1.2#</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">Alguém já tentou 
(conseguiu) instalar o Zaptel no Debian, ou declaradamente não 
funciona?</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">Enquanto escrevo 
esse testamento, tento o FEDORA CORE 5...</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">Abraços.</font></span></div></div></span></div>
<br>----------------------------------------<br>Estação VoIP 2006<br>5 e 6 Dezembro<br>Curitiba PR<br><a href="http://www.estacaovoip.com.br" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.estacaovoip.com.br
</a><br><br>_______________________________________________<br>LIsta de discussões AsteriskBrasil.org<br><a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
AsteriskBrasil@listas.asteriskbrasil.org
</a><br><a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>

<br><br>_______________________________________________<br>Acesse o &nbsp;wiki AsteriskBrasil.org:<br><a href="http://www.asteriskbrasil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.asteriskbrasil.org
</a><br></blockquote></div><br>
<br>----------------------------------------<br>Estação VoIP 2006<br>5 e 6 Dezembro<br>Curitiba PR<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.estacaovoip.com.br" target="_blank">http://www.estacaovoip.com.br
</a><br><br>_______________________________________________<br>LIsta de discussões AsteriskBrasil.org<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
<br><br>_______________________________________________<br>Acesse o &nbsp;wiki AsteriskBrasil.org:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.asteriskbrasil.org" target="_blank">http://www.asteriskbrasil.org
</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;. &#39; &#39; ` .&nbsp;&nbsp; Rodrigo Sertori<br> :&nbsp;&nbsp;:&nbsp;&nbsp;&#39;&nbsp;&nbsp; :&nbsp;&nbsp;Analista de Sistemas<br> `.&nbsp;&nbsp;` &#39; `&nbsp;&nbsp; +55 16 9151 1392<br>&nbsp;&nbsp;&nbsp;&nbsp;`-