<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Pra mysql &eacute; cdr_adaptive_odbc.conf<br>
    <br>
    Creio que deva ser o mesmo pro Postgres<br>
    <br>
    Patrick<br>
    <br>
    <div class="moz-cite-prefix">Em 06-08-2013 16:52, Danilo Almeida
      escreveu:<br>
    </div>
    <blockquote
cite="mid:CA+hW1b3=2vMQBdL_LmOfEOn90KrxdVcFxxX8FqMiMx5zr7U1xQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">na verdade usava mysql e mudei recentemente para o
        postgres, ent&atilde;o como usava ODBC mantive.</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">Em 6 de agosto de 2013 16:45, Marcelo
          Terres <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:mhterres@gmail.com" target="_blank">mhterres@gmail.com</a>&gt;</span>
          escreveu:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Uma d&uacute;vida que tenho: pq o pessoal usa o odbc
              para conectar ao Postgres e n&atilde;o o pgsql?
              <div><br>
              </div>
              <div>
                De todas as instala&ccedil;&atilde;o com postgres todas sempre foram
                com o pgsql e nunca houve problemas.</div>
              <div>
                <br>
              </div>
              <div>[]s</div>
            </div>
            <div class="gmail_extra">
              <div class="im"><br clear="all">
                <div>Marcelo H. Terres<br>
                  <a moz-do-not-send="true"
                    href="mailto:mhterres@gmail.com" target="_blank">mhterres@gmail.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://mundoopensource.blogspot.com"
                    target="_blank">http://mundoopensource.blogspot.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://biertasters.blogspot.com"
                    target="_blank">http://biertasters.blogspot.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://twitter.com/mhterres" target="_blank">http://twitter.com/mhterres</a></div>
                <br>
                <br>
              </div>
              <div>
                <div class="h5">
                  <div class="gmail_quote">2013/8/6 Danilo Almeida <span
                      dir="ltr">&lt;<a moz-do-not-send="true"
                        href="mailto:daniloricalmeida@gmail.com"
                        target="_blank">daniloricalmeida@gmail.com</a>&gt;</span><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">Sylvio,
                        <div>Pegando o bonde andando aqui, estou usando
                          o driver ODBC para conectar ao Postgres, onde
                          seto o alias para poder setar um valor a um
                          novo campo da tabela?</div>
                        <div><br>
                        </div>
                        <div>abra&ccedil;o</div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">Em 6 de agosto de 2013
                          11:07, Sylvio Jollenbeck <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:sylvio.jollenbeck@gmail.com"
                              target="_blank">sylvio.jollenbeck@gmail.com</a>&gt;</span>
                          escreveu:
                          <div>
                            <div><br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div dir="ltr">Eduardo,
                                  <div><br>
                                  </div>
                                  <div>&nbsp; Para simplificar, no
                                    cdr_mysql.conf voc&ecirc; deve criar o
                                    alias, depois reinicie o modulo cdr.
                                    para usar via dialplan fa&ccedil;a:
                                    Set(CDR(<span
                                      style="font-size:13px;font-family:arial,sans-serif">protocolo)=${</span><span
style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">Protocolo});
                                      Isso funciona a partir da vers&atilde;o
                                      1.6 do Asterisk e n&atilde;o &eacute; preciso
                                      criar agi ou usar outra app.</span></div>
                                  <div><span
style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px"><br>
                                    </span></div>
                                  <div><span
style="background-color:rgb(255,255,204);font-family:arial,sans-serif;font-size:13px">Abs,</span></div>
                                </div>
                                <div class="gmail_extra"><br>
                                  <br>
                                  <div class="gmail_quote">Em 5 de
                                    agosto de 2013 16:46, Eduardo Souza
                                    <span dir="ltr">&lt;<a
                                        moz-do-not-send="true"
                                        href="mailto:edusouza.ti@gmail.com"
                                        target="_blank">edusouza.ti@gmail.com</a>&gt;</span>
                                    escreveu:
                                    <div>
                                      <div><br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">Boa
                                          tarde,<br>
                                          <br>
                                          Blz testei conforme o Dirceu
                                          passou e j&aacute; est&aacute; funcionando e
                                          consultando as grava&ccedil;&otilde;es via
                                          WEB PHP.<br>
                                          <br>
                                          Estarei finalizando e postarei
                                          a documenta&ccedil;&atilde;o e os arquivos
                                          tanto do extensions como php
                                          para quem quiser.<br>
                                          <br>
                                          agrade&ccedil;o mais uma vez a
                                          coopera&ccedil;&atilde;o de todos.<br>
                                          <br>
                                          abs<br>
                                          <br>
                                          <br>
                                          Eduardo Souza<br>
                                          <br>
                                          <br>
                                          <br>
                                          Em 05/08/2013, &agrave;s 16:26,
                                          Asterisk - Junior Polegato
                                          &lt;<a moz-do-not-send="true"
href="mailto:asterisk@juniorpolegato.com.br" target="_blank">asterisk@juniorpolegato.com.br</a>&gt;
                                          escreveu:<br>
                                          <div>
                                            <div><br>
                                              &gt; Em 05-08-2013 16:18,
                                              Eduardo Souza escreveu:<br>
                                              &gt;&gt; [...]<br>
                                              &gt;&gt; [protocolo]<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,1,Answer<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,n,set(Protocolo=${STRFTIME(${EPOCH},GMT-3,%C%y%m%d%H%M%S)})<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,3,SayDigits(${Protocolo})<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,4,Dial(SIP/2001,30,Tt)<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,5,Set(CDR(protocolo)=${Protocolo})<br>
                                              &gt;&gt; exten =&gt;
                                              &nbsp;s,6,Hangup<br>
                                              &gt;&gt; Porem ele fala os
                                              d&iacute;gitos mas n&atilde;o grava no
                                              banco alguem poderia dar
                                              uma ajuda depois irei
                                              disponibilizar para quem
                                              estiver precisando da
                                              solu&ccedil;&atilde;o.<br>
                                              &gt;<br>
                                              &gt; Ol&aacute;!<br>
                                              &gt;<br>
                                              &gt; &nbsp; &nbsp; &nbsp; &nbsp; Tenta gravar
                                              no BD antes do Dial, pois
                                              se tiver hangup do outro<br>
                                              &gt; lado n&atilde;o passa do
                                              Dial, a menos que no Dial
                                              tenha a op&ccedil;&atilde;o "g"
                                              especificada.<br>
                                              &gt;<br>
                                              &gt; []'s<br>
                                              &gt; &nbsp; &nbsp; &nbsp; &nbsp; Junior
                                              Polegato<br>
                                              &gt;<br>
                                              &gt;
                                              _______________________________________________<br>
                                              &gt; KHOMP: completa linha
                                              de placas externas FXO,
                                              FXS, GSM e E1;<br>
                                              &gt; Media Gateways de 1 a
                                              64 E1s para SIP com R2,
                                              ISDN e SS7;<br>
                                              &gt; Intercomunicadores
                                              para acesso remoto via
                                              rede IP. Conhe&ccedil;a em <a
                                                moz-do-not-send="true"
                                                href="http://www.Khomp.com"
                                                target="_blank">www.Khomp.com</a>.<br>
                                              &gt;
                                              _______________________________________________<br>
                                              &gt; ALIGERA &#8211; Fabricante
                                              nacional de Gateways
                                              SIP-E1 para R2, ISDN e
                                              SS7.<br>
                                              &gt; Placas de 1E1, 2E1,
                                              4E1 e 8E1 para PCI ou PCI
                                              Express.<br>
                                              &gt; Channel Bank &#8211;
                                              Appliance Asterisk -
                                              Acesse <a
                                                moz-do-not-send="true"
                                                href="http://www.aligera.com.br"
                                                target="_blank">www.aligera.com.br</a>.<br>
                                              &gt;
                                              _______________________________________________<br>
                                              &gt; Para remover seu
                                              email desta lista, basta
                                              enviar um email em branco
                                              para <a
                                                moz-do-not-send="true"
                                                href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                                                target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                                              <br>
                                            </div>
                                          </div>
                                          <br>
_______________________________________________<br>
                                          KHOMP: completa linha de
                                          placas externas FXO, FXS, GSM
                                          e E1;<br>
                                          Media Gateways de 1 a 64 E1s
                                          para SIP com R2, ISDN e SS7;<br>
                                          Intercomunicadores para acesso
                                          remoto via rede IP. Conhe&ccedil;a em
                                          <a moz-do-not-send="true"
                                            href="http://www.Khomp.com"
                                            target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
                                          ALIGERA &#8211; Fabricante nacional
                                          de Gateways SIP-E1 para R2,
                                          ISDN e SS7.<br>
                                          Placas de 1E1, 2E1, 4E1 e 8E1
                                          para PCI ou PCI Express.<br>
                                          Channel Bank &#8211; Appliance
                                          Asterisk - Acesse <a
                                            moz-do-not-send="true"
                                            href="http://www.aligera.com.br"
                                            target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>
                                          Para remover seu email desta
                                          lista, basta enviar um email
                                          em branco para <a
                                            moz-do-not-send="true"
                                            href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                                            target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                                        </blockquote>
                                      </div>
                                    </div>
                                  </div>
                                  <span><font color="#888888">
                                      <br>
                                      <br clear="all">
                                      <div><br>
                                      </div>
                                      -- <br>
                                      <span style="font-family:trebuchet
                                        ms,sans-serif">Sylvio Jollenbeck<br>
                                        <font size="1"><a
                                            moz-do-not-send="true"
                                            href="http://www.hosannatecnologia.com.br/"
                                            target="_blank">www.hosannatecnologia.com.br</a></font></span><br>
                                      <img moz-do-not-send="true"><br>
                                    </font></span></div>
                                <br>
_______________________________________________<br>
                                KHOMP: completa linha de placas externas
                                FXO, FXS, GSM e E1;<br>
                                Media Gateways de 1 a 64 E1s para SIP
                                com R2, ISDN e SS7;<br>
                                Intercomunicadores para acesso remoto
                                via rede IP. Conhe&ccedil;a em <a
                                  moz-do-not-send="true"
                                  href="http://www.Khomp.com"
                                  target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>
                                ALIGERA &#8211; Fabricante nacional de
                                Gateways SIP-E1 para R2, ISDN e SS7.<br>
                                Placas de 1E1, 2E1, 4E1 e 8E1 para PCI
                                ou PCI Express.<br>
                                Channel Bank &#8211; Appliance Asterisk -
                                Acesse <a moz-do-not-send="true"
                                  href="http://www.aligera.com.br"
                                  target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>
                                Para remover seu email desta lista,
                                basta enviar um email em branco para <a
                                  moz-do-not-send="true"
                                  href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                                  target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                              </blockquote>
                            </div>
                          </div>
                        </div>
                        <span><font color="#888888">
                            <br>
                            <br clear="all">
                            <div><br>
                            </div>
                            -- <br>
                            <div dir="ltr"><b><font color="#0000ff">att</font></b>
                              <div><b><font color="#0000ff">Danilo
                                    Almeida</font></b></div>
                            </div>
                          </font></span></div>
                      <br>
                      _______________________________________________<br>
                      KHOMP: completa linha de placas externas FXO, FXS,
                      GSM e E1;<br>
                      Media Gateways de 1 a 64 E1s para SIP com R2, ISDN
                      e SS7;<br>
                      Intercomunicadores para acesso remoto via rede IP.
                      Conhe&ccedil;a em <a moz-do-not-send="true"
                        href="http://www.Khomp.com" target="_blank">www.Khomp.com</a>.<br>
                      _______________________________________________<br>
                      ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1
                      para R2, ISDN e SS7.<br>
                      Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI
                      Express.<br>
                      Channel Bank &#8211; Appliance Asterisk - Acesse <a
                        moz-do-not-send="true"
                        href="http://www.aligera.com.br" target="_blank">www.aligera.com.br</a>.<br>
                      _______________________________________________<br>
                      Para remover seu email desta lista, basta enviar
                      um email em branco para <a moz-do-not-send="true"
href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org"
                        target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>
            Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>
            Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a
            em <a moz-do-not-send="true" href="http://www.Khomp.com"
              target="_blank">www.Khomp.com</a>.<br>
            _______________________________________________<br>
            ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2,
            ISDN e SS7.<br>
            Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>
            Channel Bank &#8211; Appliance Asterisk - Acesse <a
              moz-do-not-send="true" href="http://www.aligera.com.br"
              target="_blank">www.aligera.com.br</a>.<br>
            _______________________________________________<br>
            Para remover seu email desta lista, basta enviar um email em
            branco para <a moz-do-not-send="true"
              href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr"><b style="background-color:rgb(255,255,255)"><font
              color="#0000ff">att</font></b>
          <div><b style="background-color:rgb(255,255,255)"><font
                color="#0000ff">Danilo Almeida</font></b></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe&ccedil;a em <a class="moz-txt-link-abbreviated" href="http://www.Khomp.com">www.Khomp.com</a>.
_______________________________________________
ALIGERA &#8211; Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank &#8211; Appliance Asterisk - Acesse <a class="moz-txt-link-abbreviated" href="http://www.aligera.com.br">www.aligera.com.br</a>.
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>