<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Em 14-10-2011 12:08, Renato Amorim escreveu:
    <blockquote
cite="mid:CADij9uuvWCt9cYhA3QbDrDcAE58bjdG7QHi=kaUHxUmN_T4JWw@mail.gmail.com"
      type="cite">Tenho algo assim funcionando mais &eacute; internamente. No
      meu CRM&nbsp; o operador liga para o cliente atrav&eacute;s de um bot&atilde;o, neste
      caso passo o telefone do cliente e o n&uacute;mero do ramal do operador.<br>
      <br>
      Nas vers&otilde;es mais nova do asterisk, tive que incluir a linha a
      seguir no <b>iax_custom.conf</b> ou <b>sip_custom.conf</b>
      conforme for o seu caso.<br>
      <br>
      <div style="margin-left: 40px;">calltokenoptional=<a
          moz-do-not-send="true" href="http://0.0.0.0/0.0.0.0">0.0.0.0/0.0.0.0</a><br>
        <br>
      </div>
      <b><span style="color: rgb(255, 0, 0);">S&oacute; aten&ccedil;&atilde;o:</span></b> Meu
      asterisk n&atilde;o est&aacute; disponivel atrav&eacute;s da INTERNET. Sendo o seu caso
      estude leia mais sobre esta configura&ccedil;&atilde;o antes de a implementar.<br>
      <br>
      Voc&ecirc; parece querer um sistema no qual o seu cliente em visita ao
      site, informe um telefone e clique para que seus operadores ligue
      de volta &eacute; isto?<br>
      <br>
      Se for talvez s&atilde;o seja boa id&eacute;ia o clique, pq pode ser que num
      exato nomento nao tenha operador para atender. O ideal ai seria
      criar uma lista e ir ligando a partir dela.<br>
      <br>
      <br>
      <br clear="all">
      ------------------------------------------------<br>
      Renato Amorim<br>
      <a moz-do-not-send="true"
        href="mailto:renatoamorim@renatoamorim.com" target="_blank">renatoamorim@renatoamorim.com</a><br>
      <div>Fone: 3064-5413 // 7685-1468<br>
      </div>
      <br>
      <br>
      <br>
      <div class="gmail_quote">Em 13 de outubro de 2011 22:30, Udson F.
        Assis <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:contato@maisvoipshop.com.br">contato@maisvoipshop.com.br</a>&gt;</span>
        escreveu:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          <div bgcolor="#FFFFFF" text="#000000"> Em 13-10-2011 22:14,
            Roger Pitigliani escreveu:
            <div>
              <div class="h5">
                <blockquote type="cite"><b>Udson,<br>
                    <br>
                    Fa&ccedil;a com que seu sistema/site gere um arquivo .call
                    em "</b><b><b>/var/spool/asterisk/outgoing/" <br>
                      para gerar chamadas automaticamente.<br>
                      D&ecirc; uma olhada em:<br>
                      <a moz-do-not-send="true"
                        href="http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out"
                        target="_blank">http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out</a><br>
                      <br>
                      Abra&ccedil;o.<br>
                    </b><br>
                  </b><br>
                  <div class="gmail_quote">Em 13 de outubro de 2011
                    20:29, Udson F. Assis <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:contato@maisvoipshop.com.br"
                        target="_blank">contato@maisvoipshop.com.br</a>&gt;</span>
                    escreveu:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Ol&aacute;,

                      Pessoal,<br>
                      <br>
                      Mais uma vez aqui, agora com outro problema.<br>
                      <br>
                      Preciso implantar click-to-call no meu site, por&eacute;m
                      n&atilde;o em contrei<br>
                      nenhuma documenta&ccedil;&atilde;o consistente, ou um c&oacute;digo que
                      conseguisse colocar<br>
                      para funcionar, alguem da lista usa e pode me
                      ajudar ?<br>
                      <br>
                      Fico no aguardo, Obrigado a todos que me der uma
                      m&atilde;o.<br>
                      <br>
                      --<br>
                      Udson F. Assis<br>
                      Gerente Adm.<br>
                      Maisvoipshop Telecom / Maiseletroshop<br>
                      Tel.: <a moz-do-not-send="true"
                        href="tel:31-3891-9095" value="+553138919095"
                        target="_blank">31-3891-9095</a><br>
                      Cel.: <a moz-do-not-send="true"
                        href="tel:31-8585-2827" value="+553185852827"
                        target="_blank">31-8585-2827</a><br>
                      Skype: atendimentomaisvoipshop<br>
                      Email e Msn: <a moz-do-not-send="true"
                        href="mailto:contato@maisvoipshop.com.br"
                        target="_blank">contato@maisvoipshop.com.br</a><br>
                      Site: <a moz-do-not-send="true"
                        href="http://www.maisvoipshop.com.br"
                        target="_blank">www.maisvoipshop.com.br</a><br>
                      <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&eacute;cnico local qualificado e gratuito<br>
                      Conhe&ccedil;a a linha completa de produtos KHOMP em <a
                        moz-do-not-send="true"
                        href="http://www.khomp.com.br" target="_blank">www.khomp.com.br</a><br>
                      _______________________________________________<br>
                      DIGIVOICE: Lider no mercado de placas para
                      Asterisk<br>
                      &Uacute;nico fabricante com Centro de Treinamento
                      especializado.<br>
                      LAN&Ccedil;AMENTO: Channel Bank TDMoE, at&eacute; 64 canais FXS
                      / FXO.<br>
                      <a moz-do-not-send="true"
                        href="http://www.digivoice.com.br"
                        target="_blank">www.digivoice.com.br</a> ou <a
                        moz-do-not-send="true"
                        href="tel:%2811%293016-5200"
                        value="+551130165200" target="_blank">(11)3016-5200</a>.<br>
                      ________<br>
                      GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6
                      canais GSM v&iacute;a tronco SIP<br>
                      Escal&aacute;vel at&eacute; 240 can&aacute;is, Portabilidade Num&eacute;rica,
                      &nbsp;Balanceamento de Carga, Bilhetagem<br>
                      Confira em <a moz-do-not-send="true"
                        href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org"
                        target="_blank">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a><br>
                      Shop Voip, representante exclusivo: <a
                        moz-do-not-send="true"
                        href="http://www.shopvoip.com.br"
                        target="_blank">www.shopvoip.com.br</a> ou <a
                        moz-do-not-send="true" href="tel:0800-6021244"
                        value="+558006021244" target="_blank">0800-6021244</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>
                  <br clear="all">
                  <br>
                  -- <br>
                  Roger Pitigliani<br>
                  ibGRAVA - Solu&ccedil;&otilde;es em Telefonia e Inform&aacute;tica<br>
                  <a moz-do-not-send="true"
                    href="tel:%2851%29%203216.0107"
                    value="+555132160107" target="_blank">(51) 3216.0107</a>
                  / 3216.0111<br>
                  <a moz-do-not-send="true"
                    href="http://www.ibgrava.com.br" target="_blank">www.ibgrava.com.br</a><br>
                  ---<br>
                  SKYPE: roger.pitigliani<br>
                  MSN: <a moz-do-not-send="true"
                    href="mailto:roger@ibgrava.com.br" target="_blank">roger@ibgrava.com.br</a><br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_______________________________________________
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte t&eacute;cnico local qualificado e gratuito 
Conhe&ccedil;a a linha completa de produtos KHOMP em <a moz-do-not-send="true" href="http://www.khomp.com.br" target="_blank">www.khomp.com.br</a>
_______________________________________________
DIGIVOICE: Lider no mercado de placas para Asterisk
&Uacute;nico fabricante com Centro de Treinamento especializado.
LAN&Ccedil;AMENTO: Channel Bank TDMoE, at&eacute; 64 canais FXS / FXO. 
<a moz-do-not-send="true" href="http://www.digivoice.com.br" target="_blank">www.digivoice.com.br</a> ou <a moz-do-not-send="true" href="tel:%2811%293016-5200" value="+551130165200" target="_blank">(11)3016-5200</a>.
________
GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6 canais GSM v&iacute;a tronco SIP
Escal&aacute;vel at&eacute; 240 can&aacute;is, Portabilidade Num&eacute;rica,  Balanceamento de Carga, Bilhetagem
Confira em <a moz-do-not-send="true" href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org" target="_blank">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a>
Shop Voip, representante exclusivo: <a moz-do-not-send="true" href="http://www.shopvoip.com.br" target="_blank">www.shopvoip.com.br</a> ou <a moz-do-not-send="true" href="tel:0800-6021244" value="+558006021244" target="_blank">0800-6021244</a> 
______________________________________________
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>
              </div>
            </div>
            Roger, Obrigado pela aten&ccedil;&atilde;o. <br>
            <br>
            Consegui este codigo, instalei no servidor, configurei ele e
            o manager.conf. Mesmo assim n&atilde;o funcionou.<br>
            <br>
            veja o codigo abaixo: <br>
            <br>
            &lt;html&gt;<br>
            &lt;head&gt;<br>
            &lt;title&gt;Click-to-Call&lt;/title&gt;<br>
            &lt;/head&gt;<br>
            &lt;body&gt;<br>
            &lt;?<br>
            #Click-To-Call script brought to you by VoipJots.com<br>
            <br>
            <br>
#------------------------------------------------------------------------------------------<br>
            #edit the below variable values to reflect your
            system/information<br>
#------------------------------------------------------------------------------------------<br>
            <br>
            #specify the name/ip address of your asterisk box<br>
            #if your are hosting this page on your asterisk box, then
            you can use<br>
            #127.0.0.1 as the host IP.&nbsp; Otherwise, you will need to edit
            the following<br>
            #line in manager.conf, under the Admin user section:<br>
            #permit=<a moz-do-not-send="true"
              href="http://127.0.0.1/255.255.255.0" target="_blank">127.0.0.1/255.255.255.0</a><br>
            #change to:<br>
            #permit=<a moz-do-not-send="true"
              href="http://127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx"
              target="_blank">127.0.0.1/255.255.255.0,xxx.xxx.xxx.xxx</a>
            ;(the ip address of the server this page is running on)<br>
            $strHost = "127.0.0.1";<br>
            <br>
            #specify the username you want to login with (these users
            are defined in /etc/asterisk/manager.conf)<br>
            #this user is the default AAH AMP user; you shouldn't need
            to change, if you're using AAH.<br>
            $strUser = "admin";<br>
            <br>
            #specify the password for the above user<br>
            $strSecret = "mastertec70";<br>
            <br>
            #specify the channel (extension) you want to receive the
            call requests with<br>
            #e.g. SIP/XXX, IAX2/XXXX, ZAP/XXXX, etc<br>
            $strChannel = "SIP/maistel";<br>
            <br>
            #specify the context to make the outgoing call from.&nbsp; By
            default, AAH uses from-internal<br>
            #Using from-internal will make you outgoing dialing rules
            apply<br>
            $strContext = "ramais";<br>
            <br>
            #specify the amount of time you want to try calling the
            specified channel before hangin up<br>
            $strWaitTime = "30";<br>
            <br>
            #specify the priority you wish to place on making this call<br>
            $strPriority = "1";<br>
            <br>
            #specify the maximum amount of retries<br>
            $strMaxRetry = "2";<br>
            <br>
#--------------------------------------------------------------------------------------------<br>
            #Shouldn't need to edit anything below this point to make
            this script work<br>
#--------------------------------------------------------------------------------------------<br>
            #get the phone number from the posted form<br>
            $strExten = $_POST['txtphonenumber'];<br>
            <br>
            #specify the caller id for the call<br>
            $strCallerId = "Web Call &lt;$strExten&gt;";<br>
            <br>
            $length = strlen($strExten);<br>
            <br>
            if ($length == 11 &amp;&amp; is_numeric($strExten))<br>
            {<br>
            $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or
            die("Connection to host failed");<br>
            fputs($oSocket, "Action: login\r\n");<br>
            fputs($oSocket, "Events: off\r\n");<br>
            fputs($oSocket, "Username: $strUser\r\n");<br>
            fputs($oSocket, "Secret: $strSecret\r\n\r\n");<br>
            fputs($oSocket, "Action: originate\r\n");<br>
            fputs($oSocket, "Channel: $strChannel\r\n");<br>
            fputs($oSocket, "WaitTime: $strWaitTime\r\n");<br>
            fputs($oSocket, "CallerId: $strCallerId\r\n");<br>
            fputs($oSocket, "Exten: $strExten\r\n");<br>
            fputs($oSocket, "Context: $strContext\r\n");<br>
            fputs($oSocket, "Priority: $strPriority\r\n\r\n");<br>
            fputs($oSocket, "Action: Logoff\r\n\r\n");<br>
            fclose($oSocket);<br>
            ?&gt;<br>
            &lt;p&gt;<br>
            &lt;table width="300" border="1" bordercolor="#630000"
            cellpadding="3" cellspacing="0"&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;tr&gt;&lt;td&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;font size="2" face="verdana,georgia"
            color="#630000"&gt;We are currently trying to call you.&nbsp;
            Please be patient, and wait for<br>
            &nbsp;&nbsp;&nbsp; your phone to ring!&lt;br&gt;If your phone does not ring
            after 2 minutes, we apologize, but must either be out, or<br>
            already on the<br>
            &nbsp;&nbsp;&nbsp; phone.&lt;br&gt;&lt;a href="&lt;? echo
            $_SERVER['PHP_SELF'] ?&gt;"&gt;Try
            Again&lt;/a&gt;&lt;/font&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;/td&gt;&lt;/tr&gt;<br>
            &lt;/table&gt;<br>
            &lt;/p&gt;<br>
            &lt;?<br>
            }<br>
            else<br>
            {<br>
            ?&gt;<br>
            &lt;p&gt;<br>
            &lt;table width="300" border="1" bordercolor="#630000"
            cellpadding="3" cellspacing="0"&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;tr&gt;&lt;td&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;font size="2" face="verdana,arial,georgia"
            color="#630000"&gt;Enter your phone number (1XXXXXXXXXX),
            and we will call you a<br>
            &nbsp;&nbsp;&nbsp; few seconds later!&lt;/font&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;form action="&lt;? echo $_SERVER['PHP_SELF'] ?&gt;"
            method="post"&gt;<br>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="text" size="20" maxlength="11"
            name="txtphonenumber"&gt;&lt;br&gt;<br>
            &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type="submit" value="Call Us!"&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;/form&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;/td&gt;&lt;/tr&gt;<br>
            &lt;/table&gt;<br>
            &lt;/p&gt;<br>
            &lt;?<br>
            }<br>
            ?&gt;<br>
            &lt;/body&gt;<br>
            &lt;/html&gt;<br>
            <br>
            <br>
            <pre cols="72"><div class="im">-- 
Udson F. Assis 
Gerente Adm.
Maisvoipshop Telecom / Maiseletroshop
Tel.: <a moz-do-not-send="true" href="tel:31-3891-9095" value="+553138919095" target="_blank">31-3891-9095</a>
Cel.: <a moz-do-not-send="true" href="tel:31-8585-2827" value="+553185852827" target="_blank">31-8585-2827</a>
Skype: atendimentomaisvoipshop
Email e Msn: <a moz-do-not-send="true" href="mailto:contato@maisvoipshop.com.br" target="_blank">contato@maisvoipshop.com.br</a>
Site: <a moz-do-not-send="true" href="http://www.maisvoipshop.com.br" target="_blank">www.maisvoipshop.com.br</a></div>

- Maisvoipshop: Placas E1, GSM, FXS e FXO para Asterisk. 
- Hardware Maistel com excelente qualidade e garantia
- Consultoria, suporte, termina&ccedil;&atilde;o voip. Contrate DID Brasil por 29,90. 
- Conhe&ccedil;a a linha completa de produtos Maistel <a moz-do-not-send="true" href="http://www.maisvoipshop.com.br" target="_blank">www.maisvoipshop.com.br</a>
___________________________________________________________________________</pre>
          </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&eacute;cnico local qualificado e gratuito<br>
          Conhe&ccedil;a a linha completa de produtos KHOMP em <a
            moz-do-not-send="true" href="http://www.khomp.com.br"
            target="_blank">www.khomp.com.br</a><br>
          _______________________________________________<br>
          DIGIVOICE: Lider no mercado de placas para Asterisk<br>
          &Uacute;nico fabricante com Centro de Treinamento especializado.<br>
          LAN&Ccedil;AMENTO: Channel Bank TDMoE, at&eacute; 64 canais FXS / FXO.<br>
          <a moz-do-not-send="true" href="http://www.digivoice.com.br"
            target="_blank">www.digivoice.com.br</a> ou <a
            moz-do-not-send="true" href="tel:%2811%293016-5200"
            value="+551130165200">(11)3016-5200</a>.<br>
          ________<br>
          GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6 canais GSM v&iacute;a
          tronco SIP<br>
          Escal&aacute;vel at&eacute; 240 can&aacute;is, Portabilidade Num&eacute;rica,
          &nbsp;Balanceamento de Carga, Bilhetagem<br>
          Confira em <a moz-do-not-send="true"
            href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org"
            target="_blank">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a><br>
          Shop Voip, representante exclusivo: <a moz-do-not-send="true"
            href="http://www.shopvoip.com.br" target="_blank">www.shopvoip.com.br</a>
          ou <a moz-do-not-send="true" href="tel:0800-6021244"
            value="+558006021244">0800-6021244</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>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. 
- Hardware com alta disponibilidade de recursos e qualidade KHOMP
- Suporte t&eacute;cnico local qualificado e gratuito 
Conhe&ccedil;a a linha completa de produtos KHOMP em <a class="moz-txt-link-abbreviated" href="http://www.khomp.com.br">www.khomp.com.br</a>
_______________________________________________
DIGIVOICE: Lider no mercado de placas para Asterisk
&Uacute;nico fabricante com Centro de Treinamento especializado.
LAN&Ccedil;AMENTO: Channel Bank TDMoE, at&eacute; 64 canais FXS / FXO. 
<a class="moz-txt-link-abbreviated" href="http://www.digivoice.com.br">www.digivoice.com.br</a> ou (11)3016-5200.
________
GATEWAY GSM-SIP, gateway Lyric VoIP com 2,4 e 6 canais GSM v&iacute;a tronco SIP
Escal&aacute;vel at&eacute; 240 can&aacute;is, Portabilidade Num&eacute;rica,  Balanceamento de Carga, Bilhetagem
Confira em <a class="moz-txt-link-freetext" href="http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org">http://www.yx.cl/landing/brasil/lyric_voip_asterisk.org</a>
Shop Voip, representante exclusivo: <a class="moz-txt-link-abbreviated" href="http://www.shopvoip.com.br">www.shopvoip.com.br</a> ou 0800-6021244 
______________________________________________
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>
    Obrigado pela atan&ccedil;&atilde;o Renato, <br>
    <br>
    Exatamente o que voce disse que preciso, implementar um codigo no
    meu site onde o cliente insere o numero do telefone e e clica em me
    liga, o asterisk liga pra ele e toca nos ramais dos meus
    atendedores, o caso de nao ter ninguem para atender n&atilde;o &eacute; problema,
    pois trabalhamos em hor&aacute;rio comercial, e so o cliente clicar fora do
    horario comercial ele receber&aacute; uma mensagem com aviso de horario de
    funcionamento.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Udson F. Assis 
Gerente Adm.
Maisvoipshop Telecom / Maiseletroshop
Tel.: 31-3891-9095
Cel.: 31-8585-2827
Skype: atendimentomaisvoipshop
Email e Msn: <a class="moz-txt-link-abbreviated" href="mailto:contato@maisvoipshop.com.br">contato@maisvoipshop.com.br</a>
Site: <a class="moz-txt-link-abbreviated" href="http://www.maisvoipshop.com.br">www.maisvoipshop.com.br</a>

- Maisvoipshop: Placas E1, GSM, FXS e FXO para Asterisk. 
- Hardware Maistel com excelente qualidade e garantia
- Consultoria, suporte, termina&ccedil;&atilde;o voip. Contrate DID Brasil por 29,90. 
- Conhe&ccedil;a a linha completa de produtos Maistel <a class="moz-txt-link-abbreviated" href="http://www.maisvoipshop.com.br">www.maisvoipshop.com.br</a>
___________________________________________________________________________</pre>
  </body>
</html>