Eder, consegui fazer funcionar, conforme projeto inicial e também já está bilhetando.<br>Agora minha difilculdade é fazê-lo gravar o callerid. O campo clid não vem preenchido após a bilhetagem.<br>Segue abaixo o resultado e minhas configurações:<br>
<font size="1"><br></font><table border="0" cellspacing="0" cols="16" width="985" frame="VOID" height="435" rules="NONE"><tbody><tr><td align="LEFT" width="136" height="17"><font size="1">calldate</font></td>
                        <td align="LEFT" width="32"><font size="1">clid</font></td>
                        <td align="LEFT" width="30"><font size="1">src</font></td>
                        <td align="LEFT" width="27"><font size="1">dst</font></td>
                        <td align="LEFT" width="60"><font size="1">dcontext</font></td>
                        <td align="LEFT" width="84"><font size="1">channel</font></td>
                        <td align="LEFT" width="77"><font size="1">dstchannel</font></td>
                        <td align="LEFT" width="65"><font size="1">lastapp</font></td>
                        <td align="LEFT" width="59"><font size="1">lastdata</font></td>
                        <td align="LEFT" width="59"><font size="1">duration</font></td>
                        <td align="LEFT" width="50"><font size="1">billsec</font></td>
                        <td align="LEFT" width="97"><font size="1">disposition</font></td>
                        <td align="LEFT" width="59"><font size="1">amaflags</font></td>
                        <td align="LEFT" width="88"><font size="1">accountcode</font></td>
                        <td align="LEFT" width="104"><font size="1">uniqueid</font></td>
                        <td align="LEFT" width="86"><font size="1">userfield</font></td>
                </tr>
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 11:57 AM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">10</font></td>
                        <td align="LEFT"><font size="1">6</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266674259</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
                
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 12:04 PM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">10</font></td>
                        <td align="LEFT"><font size="1">6</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266674694.2</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 12:19 PM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">4</font></td>
                        <td align="LEFT"><font size="1">0</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266675579</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 12:26 PM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">11</font></td>
                        <td align="LEFT"><font size="1">7</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266676007.1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 12:28 PM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">11</font></td>
                        <td align="LEFT"><font size="1">7</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266676090.2</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
                <tr>
                        <td align="LEFT" height="17"><font size="1">02/20/10 12:29 PM</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> s</font></td>
                        <td align="LEFT"><font size="1"> default</font></td>
                        <td align="LEFT"><font size="1"> DAHDI/1-1</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1"> Hangup</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">11</font></td>
                        <td align="LEFT"><font size="1">7</font></td>
                        <td align="LEFT"><font size="1"> ANSWERED</font></td>
                        <td align="LEFT"><font size="1">3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                        <td align="LEFT"><font size="1">1266676158.3</font></td>
                        <td align="LEFT"> <font size="1"><br></font></td>
                </tr>
        </tbody>
</table>
<br><span style="font-family: courier new,monospace;"><br>arquivo /etc/asterisk/extensions.conf</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><font size="1"><b><span style="font-family: courier new,monospace;">[general]</span></b><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">static=yes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">writeprotect=no</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">autofallthrough=no</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">clearglobalvars=no</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">priorityjumping=yes</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><b><span style="font-family: courier new,monospace;">[default]</span></b><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; s,1,Answer                 ; Atende a ligacao...</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; s,2,Playback(introprotv)   ; Mensagem</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">exten =&gt; s,3,Hangup()               ; termina</span><br style="font-family: courier new,monospace;"></font><br><br><span style="font-family: courier new,monospace;">/etc/asterisk/cdr_mysql.conf</span><br>

<br><font size="1"><b style="font-family: courier new,monospace;">[global]</b><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">hostname=127.0.0.1</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">dbname=protv</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">table=cdr</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">password=pt.rj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">user=root</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;port=3306</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;sock=/tmp/mysql.sock</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;</span><br style="font-family: courier new,monospace;"><b style="font-family: courier new,monospace;">[columns]</b><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;static &quot;&lt;value&gt;&quot; =&gt; &lt;column&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias &lt;cdrvar&gt; =&gt; &lt;column&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">alias start =&gt; calldate</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">alias callerid =&gt; clid</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias src =&gt; src</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias dst =&gt; dst</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias dcontext =&gt; dcontext</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias channel =&gt; channel</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias dstchannel =&gt; dstchannel</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias lastapp =&gt; lastapp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias lastdata =&gt; lastdata</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias duration =&gt; duration</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias billsec =&gt; billsec</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias disposition =&gt; disposition</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias amaflags =&gt; amaflags</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias accountcode =&gt; accountcode</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">;alias userfield =&gt; userfield</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">;alias uniqueid =&gt; uniqueid</span></font><br><br><font style="font-family: courier new,monospace;" size="1"><font size="2">estrutura da tabela cdr</font><br></font><pre style="font-family: courier new,monospace;">
<font size="1">CREATE TABLE `cdr` (<br>  `calldate` datetime NOT NULL default &#39;0000-00-00 00:00:00&#39;,<br>  `clid` varchar(80) NOT NULL default &#39;&#39;,<br>  `src` varchar(80) NOT NULL default &#39;&#39;,<br>  `dst` varchar(80) NOT NULL default &#39;&#39;,<br>
<br>  `dcontext` varchar(80) NOT NULL default &#39;&#39;,<br>  `channel` varchar(80) NOT NULL default &#39;&#39;,<br>  `dstchannel` varchar(80) NOT NULL default &#39;&#39;,<br>  `lastapp` varchar(80) NOT NULL default &#39;&#39;,<br>
<br>  `lastdata` varchar(80) NOT NULL default &#39;&#39;,<br>  `duration` int(11) NOT NULL default &#39;0&#39;,<br>  `billsec` int(11) NOT NULL default &#39;0&#39;,<br>  `disposition` varchar(45) NOT NULL default &#39;&#39;,<br>
<br>  `amaflags` int(11) NOT NULL default &#39;0&#39;,<br>  `accountcode` varchar(20) NOT NULL default &#39;&#39;,<br>  `uniqueid` varchar(32) NOT NULL default &#39;&#39;,<br>  `userfield` varchar(255) NOT NULL default &#39;&#39;,<br>
<br>  KEY `calldate` (`calldate`),<br>  KEY `dst` (`dst`),<br>  KEY `accountcode` (`accountcode`)<br>) ENGINE=MyISAM DEFAULT CHARSET=latin1;<br><br></font></pre><br><br><div class="gmail_quote">Em 20 de fevereiro de 2010 17:16, Eder Souza <span dir="ltr">&lt;<a href="mailto:eder.souza@bsd.com.br" target="_blank">eder.souza@bsd.com.br</a>&gt;</span> escreveu:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hei vc ta lingando direto na rede pstn ou ta sobre algum ramal PABX?<div><br></div><div>Att,</div>

<div><br></div><div>Eng Eder de Souza<br><br><div class="gmail_quote">Em 19 de fevereiro de 2010 15:39, Marcelo S Dias Muniz <span dir="ltr">&lt;<a href="mailto:marcelosdias@superig.com.br" target="_blank">marcelosdias@superig.com.br</a>&gt;</span> escreveu:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Pessoal, tentei um novo &quot;set&quot; de configuração, <br>
mas ainda sem sucesso. Seguem abaixo como estão configurados meus arquivos.<br>
Quem puder me dar um alô, estou levando uma &quot;surra&quot; aqui.<br><br>Att.,<br>
<br>Dias<br><br><font size="2"><b style="font-family: courier new,monospace;">/etc/dahdi/system.conf<br><span style="color: rgb(102, 102, 102);"></span></b><span style="font-family: courier new,monospace;">loadzone=<span style="color: rgb(51, 51, 255);">br</span></span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">defaultzone=<span style="color: rgb(51, 51, 255);">br</span></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">fxsks=<span style="color: rgb(51, 51, 255);">1</span></span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">channels=<span style="color: rgb(51, 51, 255);">1</span></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">echocanceller=<span style="color: rgb(51, 51, 255);">mg2,1</span></span><br>



<br></font><font style="font-family: courier new,monospace;" size="2"><b>/etc/dahdi/system.conf</b><br>[general]<br>bindport=5060<br>bindaddr=0.0.0.0<br>disallow=all<br>allow=alaw<br>allow=gsm<br>language=pt_BR<br><br>[template](!)<br>



type=friend<br>callerid=1<br>username=1<br>secret=1<br>host=dynamic<br>context=default<br></font><font size="2"><br></font><font style="font-family: courier new,monospace;" size="2"><b>/etc/dahdi/extensions.conf</b><br>
</font><font size="2"><span style="font-family: courier new,monospace;">[general]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">static=yes</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">writeprotect=no</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">autofallthrough=yes</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">clearglobalvars=no</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">priorityjumping=no</span><br style="font-family: courier new,monospace;">



<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[default]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; s,1,Answer()</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">exten =&gt; s,2,Playback(vm-intro)</span><div><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">exten =&gt; s,3(end),Hangup()</span><br style="font-family: courier new,monospace;">



<br></div></font><br><br><div class="gmail_quote">Em 19 de fevereiro de 2010 10:42, Marcelo S Dias Muniz <span dir="ltr">&lt;<a href="mailto:marcelosdias@superig.com.br" target="_blank">marcelosdias@superig.com.br</a>&gt;</span> escreveu:<div>


<div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
pessoal, configurei o arquivo extensions.conf para receber a ligação e não funcionou.<br>se alguém puder me auxiliar, abaixo segue a parte do extensions.conf e as exibições do status e do channels<br>Att.,<br><br><b><font style="font-family: courier new,monospace;" size="1"><span style="color: rgb(255, 0, 0);">[acme-incoming]</span><br style="color: rgb(255, 0, 0);">




exten =&gt; s,1,Answer()<br>exten =&gt; s,2,(goodbye),Playback(vm-goodbye)<br>exten =&gt; s,3(end),Hangup()<br><br><span style="color: rgb(255, 0, 0);">sprotv*CLI&gt; dahdi show status</span><br style="color: rgb(255, 0, 0);">




Description                              Alarms  IRQ    bpviol CRC4   Fra Codi Options  LBO<br>DAHDI_DUMMY/1 (source: HRtimer) 1        UNCONFI 0      0      0      CAS Unk  YEL      0 db (CSU)/0-133 feet (DSX-1)<br>Wildcard X100P Board 1                   UNCONFI 0      0      0      CAS Unk  YEL      0 db (CSU)/0-133 feet (DSX-1)<br>




</font></b><br><font size="1"><b><span style="font-family: courier new,monospace; color: rgb(255, 0, 0);">sprotv*CLI&gt; dahdi show channels</span><br style="font-family: courier new,monospace; color: rgb(255, 0, 0);"><span style="font-family: courier new,monospace;">   Chan Extension  Context         Language   MOH Interpret        Blocked    State     </span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;"> pseudo            default                    default                         In Service</span><br style="font-family: courier new,monospace;"></b></font><br><br><br><div class="gmail_quote">




Em 19 de fevereiro de 2010 09:15, Marcelo S Dias Muniz <span dir="ltr">&lt;<a href="mailto:marcelosdias@superig.com.br" target="_blank">marcelosdias@superig.com.br</a>&gt;</span> escreveu:<div><div></div><div>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Pessoal, quem estiver disponível e poder me auxiliar, sou iniciante no Asterisk e estou montando um PABX muito simples.<br>Ele irá receber chamadas PSTN por uma placa x100p, fazer a bilhetagem e direcionar para uma mensagem (tipo &quot;sua ligação foi registrada&quot;), desligando em seguida.<br>





Estou com uma máquina com Linux Ubuntu, Mysql e Asterisk 1.6.2 e uma placa x100p.<br>Comecei a configuração e as instruções para instalação da placa está na versão antiga quando o drive era Zaptel e não consegui fazer minha placa falar com a PSTN.<br>





Estou tendo dificuldade mesmo, se alguém souber o caminho e puder me auxiliar, agradeço<br><br>Att.,<br><br>Marcelo <br>Rio de Janeiro. <br>
</blockquote></div></div></div><br>
</blockquote></div></div></div><br>
<br></div></div><div>_______________________________________________<br>
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.<br>
- Hardware com alta disponibilidade de recursos e qualidade KHOMP<br>
- Suporte técnico local qualificado e gratuito<br>
Conheça a linha completa de produtos KHOMP em <a href="http://www.khomp.com.br" target="_blank">www.khomp.com.br</a><br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk.<br>
- Hardware com alta disponibilidade de recursos e qualidade KHOMP<br>
- Suporte técnico local qualificado e gratuito<br>
Conheça a linha completa de produtos KHOMP em <a href="http://www.khomp.com.br" target="_blank">www.khomp.com.br</a><br>
_______________________________________________<br>
Lista de discussões AsteriskBrasil.org<br>
<a href="mailto:AsteriskBrasil@listas.asteriskbrasil.org" target="_blank">AsteriskBrasil@listas.asteriskbrasil.org</a><br>
<a href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil" target="_blank">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a><br></blockquote></div><br>