<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      o techprefix n&atilde;o &eacute; o tronco, &eacute; o numero<br>
      <br>
      voc&ecirc; cria um tronco com o seu usu&aacute;rio.<br>
      <br>
      <br>
      [fulano]<br>
      type=peer<br>
      host=IP<br>
      permit=IP/255.255.255.255<br>
      deny=0.0.0.0/0.0.0.0<br>
      context=entrada<br>
      canreinvite=no<br>
      <br>
      Se eu n&atilde;o esqueci de nada, com isso o usu&aacute;rio ja fecha conex&atilde;o com
      tigo<br>
      <br>
      dentro do contexto [entrada] voce trata o techprefix.<br>
      <br>
      <br>
      Em 14-08-2012 11:48, bruce anderson escreveu:<br>
    </div>
    <blockquote
cite="mid:CAGfu-kQ-V_7AzRUzPAGA66mC-NJfqFs1aXC7KLJdEdO9tGaYYQ@mail.gmail.com"
      type="cite">Estou comen&ccedil;ando a entender mike, mas, se puder vamos
      por parte. Gostaria inicialmente receber um tronco sip com
      techprefix, pq hoje ja envio por login e senha, e acho q vai ficar
      assim um bom tempo, entao minha prioridade seria receber por
      techprefix, por enviar techprefix seria para outra operadora e
      ainda nao tenho essa preten&ccedil;ao, mesmo porque estou come&ccedil;ando.(vc
      entende bem o q estou falando) rsrsr.
      <div>
        <br>
      </div>
      <div>
        <div><br>
        </div>
        <div>ATT,&nbsp;</div>
        <div>Anderson<br>
          <br>
          <div class="gmail_quote">Em 14 de agosto de 2012 11:42, Mike
            Tesliuk <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:mike@tesliuk.com" target="_blank">mike@tesliuk.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 text="#000000" bgcolor="#FFFFFF">
                <div><br>
                  <br>
                  o tronco de saida n&atilde;o importa aqui, o tronco de
                  entrada &eacute; apenas por onde o usu&aacute;rio ir&aacute; se comunicar,
                  o techprefix &eacute; algo que o usu&aacute;rio ir&aacute; discar, ent&atilde;o &eacute;
                  tudo em dialplan e n&atilde;o no sip.conf.<br>
                  <br>
                  <br>
                  se voc&ecirc; n&atilde;o quer que seus usu&aacute;rios n&atilde;o utilizem senha
                  e nenhum tipo de configura&ccedil;&atilde;o, ent&atilde;o &eacute; s&oacute; voc&ecirc; colocar
                  no sip.conf qual o contexto default , deixando que
                  qualquer um ( Qualquer um mesmo ) conecte-se com voc&ecirc;,
                  eu nao recomendaria isso, crie um peer para o usu&aacute;rio
                  colocando o ip dele.<br>
                  <br>
                  <br>
                  Em 14-08-2012 11:35, bruce anderson escreveu:<br>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">Ola, mike. Entao, como
                      expliquei antes, o problema nao esta sendo o
                      procedimento em si, e na verdade onde. Vou colocar
                      o cen&aacute;rio hoje do meu a2billing.
                      <div><br>
                      </div>
                      <div>Recebo um tronco SIP com login, senha e IP.
                        Assim esta funcioando normalmente.</div>
                      <div><br>
                      </div>
                      <div>
                        <div>;INICIO DE CADASTRO DE TRONCOS SIP/IAX&nbsp;</div>
                        <div><br>
                        </div>
                        <div>register =&gt; xxxxx:xxxxx@xxxxxxxxxxx</div>
                        <div><br>
                        </div>
                        <div>[TRONCO_TT_SAIDA]</div>
                        <div>type=friend</div>
                        <div>domain=XXXXXXXXXX</div>
                        <div>fromdomain=XXXXXXXXX</div>
                        <div>host=XXXXXXXXX</div>
                        <div>user=2500R</div>
                        <div>secret=XXXXXXXXX</div>
                        <div>defaultuser=2500R</div>
                        <div>qualify=yes</div>
                        <div>port=5060</div>
                        <div>nat=no</div>
                        <div>dtmfmode=rfc2833</div>
                        <div> reinvite=yes</div>
                        <div>canreinvite=no</div>
                        <div>disallow=all</div>
                        <div>allow=g729</div>
                        <div>allow=ulaw</div>
                        <div>allow=alaw</div>
                        <div>allow=gsm</div>
                        <div>insecure=port,invite</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>;INICIO DE TRONCOS TECHPREFIX</div>
                        <div><br>
                        </div>
                        <div>[TECHPREFIX]</div>
                        <div><br>
                        </div>
                        <div>disallow=all</div>
                        <div>username=</div>
                        <div>secret=</div>
                        <div>dynamic=yes</div>
                        <div>domain=xxxxxxxxxxxxx</div>
                        <div>fromuser=</div>
                        <div>type=friend</div>
                        <div>dtmfmode=rfc2833</div>
                        <div>canreinvite=no</div>
                        <div>fromdomain=</div>
                        <div>host=xxxxxxxxxxxxxx</div>
                        <div>outboundproxy=xxxxxxxxxxx</div>
                        <div>insecure=port,invite</div>
                        <div>qualify=no</div>
                        <div>allow=alaw</div>
                        <div>allow=ulaw</div>
                        <div>allow=gsm</div>
                        <div>allow=ilbc</div>
                        <div>context=default</div>
                        <div>reinvite=no</div>
                        <div>nat=no</div>
                        <div><br>
                        </div>
                        <div>;-------------------------------------------------------------------------------------</div>
                      </div>
                      <div><br>
                      </div>
                      <div>Pode me falar onde estou errando?</div>
                      <div><br>
                      </div>
                      <div>ATT</div>
                      <div>Aderson.<br>
                        <div class="gmail_quote">Em 14 de agosto de 2012
                          11:21, Mike Tesliuk <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:mike@tesliuk.com"
                              target="_blank">mike@tesliuk.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 text="#000000" bgcolor="#FFFFFF">
                              <div><br>
                                Eu fiz algo semelhante, mas na verdade
                                eu s&oacute; tenho dois techprefix, sugiro que
                                voc&ecirc; fa&ccedil;a de uma forma diferente que
                                explico logo mais...<br>
                                <br>
                                no meu caso, eu criei todas as rotas
                                duas vezes, uma &eacute; _1#55.&nbsp; e a outra &eacute;
                                _2#55.&nbsp; na quest&atilde;o &eacute; apenas uma
                                defini&ccedil;&atilde;o de rota premium e rota
                                default, o usu&aacute;rio escolhe o qual ligar,
                                no meu tronco eu mando ele remover o 1#
                                em um tronco e 2# no outro.<br>
                                <br>
                                Como voc&ecirc; quer usar techprefix, a melhor
                                solu&ccedil;&atilde;o seria voc&ecirc; fazer no seu
                                dialplan, eu usariia um script agi para
                                ficar mais elegante, mas vamos a ideia
                                da solu&ccedil;&atilde;o, vamos imaginar o techprefix
                                99123, no dialplan eu colocaria<br>
                                <br>
                                <br>
                                [entrada]<br>
                                exten =&gt;
                                _99123.,1,Set(CDR(accountcode)=CONTA_DO_USUARIO)<br>
                                exten =&gt;
                                _99123.,n,Goto(a2billing-dialout,${EXTEN:5},1)<br>
                                <br>
                                [a2billing-dialout]<br>
                                <br>
                                exten =&gt; _.,1,AGI(a2billing.php)<br>
                                exten =&gt; _.,n,Hangup()<br>
                                <br>
                                <br>
                                ou seja, voce recebe o techprefix,
                                remove ele, usa ele pra definir o
                                accountcode, e ent&atilde;o manda para o
                                a2billing, o a2billing vai pegar o
                                accountcode e tarifar a conta do seu
                                cliente, e vai pegar o restante e fazer
                                a discagem.<br>
                                <br>
                                simples ...<br>
                                <br>
                                <br>
                                Em 14-08-2012 11:09, bruce anderson
                                escreveu:<br>
                              </div>
                              <blockquote type="cite">
                                <div>
                                  <div>Ola, meu nome e Anderson, eu sou
                                    novato aqui na lista, e OLA para
                                    todos integrantes da lista asterisk.
                                    <div>Bom, meu problema deve ser
                                      simples para alguns.....rsrs,
                                      infelizmente pra mim esta se
                                      tornando um problema.</div>
                                    <div> <br>
                                    </div>
                                    <div>Eu li antes uma resposta, sobre
                                      o A2billing com Techprefix e
                                      confesso q nao entendi.</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>Tenho um A2billing instalado
                                      com asterisk 1.8.14. Sem Trixbox
                                      ou Elastix......somente o
                                      A2billing e Asterisk, funcionando
                                      ate o momento normal.&nbsp;</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>O que preciso na verdade e
                                      receber Rota SIP por techprefix e
                                      fazer o mesmo para meus clientes.
                                      Sei estou pendido uma resposta
                                      para meu problema, mas me
                                      desculpem mas ja esgotei, a
                                      procura na NET ou Foruns e nd.</div>
                                    <div><br>
                                    </div>
                                    <div>Agrade&ccedil;o desde ja a ajuda.</div>
                                    <div><br>
                                    </div>
                                    <div>ATT,</div>
                                    <div><br>
                                    </div>
                                    <div>Andenson.</div>
                                    <br>
                                    <fieldset></fieldset>
                                    <br>
                                  </div>
                                </div>
                                <pre>_______________________________________________
KHOMP Inova&ccedil;&atilde;o: External Board Series
M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e solu&ccedil;&otilde;es Asterisk e FreeSWITCH.
Tenha a External Series Experience na sua aplica&ccedil;&atilde;o. Visite&nbsp;<a moz-do-not-send="true" href="http://www.khomp.com" target="_blank">www.khomp.com</a>
_______________________________________________
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a moz-do-not-send="true" href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a>
________
YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor custo/benef&iacute;cio do mercado.
email: <a moz-do-not-send="true" href="mailto:yealink@commlogik.com.br" target="_blank">yealink@commlogik.com.br</a> | <a moz-do-not-send="true" href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a> | (11) 5503-1011
______________________________________________
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></pre>
                              </blockquote>
                              <br>
                            </div>
                            <br>
_______________________________________________<br>
                            KHOMP Inova&ccedil;&atilde;o: External Board Series<br>
                            M&oacute;dulos de 1/2 rack e 1U para todas as
                            interfaces e solu&ccedil;&otilde;es Asterisk e FreeSWITCH.<br>
                            Tenha a External Series Experience na sua
                            aplica&ccedil;&atilde;o. Visite&nbsp;<a moz-do-not-send="true"
                              href="http://www.khomp.com"
                              target="_blank">www.khomp.com</a><br>
_______________________________________________<br>
                            DIGIVOICE &nbsp;Fabricante de Placas de Voz e
                            Channel Bank<br>
                            20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS,
                            FXO e GSM<br>
                            Centro Treinamento - Curso de PABX IP -
                            &nbsp;Asterisk &nbsp;- Site &nbsp;<a moz-do-not-send="true"
                              href="http://www.digivoice.com.br"
                              target="_blank">www.digivoice.com.br</a><br>
                            ________<br>
                            YEALINK: Telefones IP e V&iacute;deoPhones IP com o
                            melhor custo/benef&iacute;cio do mercado.<br>
                            email: <a moz-do-not-send="true"
                              href="mailto:yealink@commlogik.com.br"
                              target="_blank">yealink@commlogik.com.br</a>
                            | <a moz-do-not-send="true"
                              href="http://www.commlogik.com.br"
                              target="_blank">www.commlogik.com.br</a> |
                            (11) 5503-1011<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>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_______________________________________________
KHOMP Inova&ccedil;&atilde;o: External Board Series
M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e solu&ccedil;&otilde;es Asterisk e FreeSWITCH.
Tenha a External Series Experience na sua aplica&ccedil;&atilde;o. Visite&nbsp;<a moz-do-not-send="true" href="http://www.khomp.com" target="_blank">www.khomp.com</a>
_______________________________________________
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a moz-do-not-send="true" href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a>
________
YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor custo/benef&iacute;cio do mercado.
email: <a moz-do-not-send="true" href="mailto:yealink@commlogik.com.br" target="_blank">yealink@commlogik.com.br</a> | <a moz-do-not-send="true" href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a> | (11) 5503-1011
______________________________________________
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></pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              KHOMP Inova&ccedil;&atilde;o: External Board Series<br>
              M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e
              solu&ccedil;&otilde;es Asterisk e FreeSWITCH.<br>
              Tenha a External Series Experience na sua aplica&ccedil;&atilde;o.
              Visite&nbsp;<a moz-do-not-send="true"
                href="http://www.khomp.com" target="_blank">www.khomp.com</a><br>
              _______________________________________________<br>
              DIGIVOICE &nbsp;Fabricante de Placas de Voz e Channel Bank<br>
              20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM<br>
              Centro Treinamento - Curso de PABX IP - &nbsp;Asterisk &nbsp;- Site
              &nbsp;<a moz-do-not-send="true"
                href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a><br>
              ________<br>
              YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor
              custo/benef&iacute;cio do mercado.<br>
              email: <a moz-do-not-send="true"
                href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a>
              | <a moz-do-not-send="true"
                href="http://www.commlogik.com.br" target="_blank">www.commlogik.com.br</a>
              | (11) 5503-1011<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>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP Inova&ccedil;&atilde;o: External Board Series
M&oacute;dulos de 1/2 rack e 1U para todas as interfaces e solu&ccedil;&otilde;es Asterisk e FreeSWITCH.
Tenha a External Series Experience na sua aplica&ccedil;&atilde;o. Visite&nbsp;<a class="moz-txt-link-abbreviated" href="http://www.khomp.com">www.khomp.com</a>
_______________________________________________
DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
20 anos de experi&ecirc;ncia com E1(R2/ISDN), FXS, FXO e GSM
Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  <a class="moz-txt-link-abbreviated" href="http://www.digivoice.com.br">www.digivoice.com.br</a>
________
YEALINK: Telefones IP e V&iacute;deoPhones IP com o melhor custo/benef&iacute;cio do mercado.
email: <a class="moz-txt-link-abbreviated" href="mailto:yealink@commlogik.com.br">yealink@commlogik.com.br</a> | <a class="moz-txt-link-abbreviated" href="http://www.commlogik.com.br">www.commlogik.com.br</a> | (11) 5503-1011
______________________________________________
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>