<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Renato, eu me esqueci dos erros.<br>
    <br>
    <br>
    <b>Deprecated</b>: Call-time pass-by-reference has been deprecated
    in <b>C:\xampp\htdocs\teste\click_new.php</b> on line <b>44</b><br>
    <br>
    <b>Deprecated</b>: Call-time pass-by-reference has been deprecated
    in <b>C:\xampp\htdocs\teste\click_new.php</b> on line <b>44</b><br>
    <br>
    <b>Notice</b>: Undefined index: XXXX in <b>C:\xampp\htdocs\teste\click_new.php</b>
    on line <b>20</b><br>
    <br>
    <b>Notice</b>: Undefined index: XXXX in <b>C:\xampp\htdocs\teste\click_new.php</b>
    on line <b>35</b><br>
    <br>
    Em 02/08/2011 13:14, Asterisk escreveu:
    <blockquote cite="mid:4E38225D.6070606@teknisa.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Renato, alterei os campos que vc indicou e estou recebendo essas
      mensagens de erro.<br>
      <br>
      Agora uma duvida, como fica o audio do cliente, ele pega
      automaticamente os dispositivos padr&atilde;o?<br>
      <br>
      Obrigado.<br>
      <br>
      Em 02/08/2011 12:54, Renato Amorim escreveu:
      <blockquote
cite="mid:CADij9utE2+WYn7+W=fgOp1bWef0dChX0feF=N4FmCiSmykEmrA@mail.gmail.com"
        type="cite">Uso esta fun&ccedil;&atilde;o:<br>
        <br>
        <br>
        <br>
        &lt;?php<br>
        // Copyright 2006 Baldwin Technology Solutions, Inc.<br>
        // Requires Asterisk, Apache, and PHP.&nbsp; Place this file<br>
        // onto your apache server and call the URL like so<br>
        // <a moz-do-not-send="true"
          href="http://yourapacheserver/c2c.php?number=15185551234">http://yourapacheserver/c2c.php?number=15185551234</a><br>
        // A page will display that it is calling your extension and<br>
        // what number it is calling.<br>
        // On the callerid on the phone it will show Web Call
        15185551234<br>
        #ip address that asterisk is on.<br>
        $strHost = "aqui entra o ip do pabx";<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 = "Usuario com permissao no PABX";<br>
        #specify the password for the above user<br>
        $strSecret = "SENHA DO USUARIO";<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/".$_REQUEST['ramal']; //RAMAL DE QUEM LIGA<br>
        <br>
        #specify the context to make the outgoing call from.&nbsp; By
        default, AAH uses from-internal<br>
        #Using from-internal will make your outgoing dialing rules apply<br>
        $strContext = "from-internal";<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>
        $number=strtolower($_REQUEST['number']); //Se for um n&uacute;mero de
        suporte apenas coloca aqui<br>
        $pos=strpos ($number,"local");<br>
        if ($number == null) :<br>
        &nbsp;exit() ;<br>
        endif ;<br>
        if ($pos===false) :<br>
        $errno=0 ;<br>
        $errstr=0 ;<br>
        $strCallerId = "Clique aqui &lt;$strChannel&gt;";<br>
        $oSocket = fsockopen ("$strHost", 5038, &amp;$errno,
        &amp;$errstr, 20);<br>
        &nbsp;if (!$oSocket) {<br>
        &nbsp; echo "$errstr ($errno)&lt;br&gt;\n";<br>
        } else {<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: $number\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>
        &nbsp;}<br>
        echo "Extension $strChannel should be calling $number." ;<br>
        echo "&lt;script&gt;window.close()&lt;/script&gt;" ;<br>
        else :<br>
        &nbsp;exit() ;<br>
        endif ;<br>
        ?&gt;<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 2 de agosto de 2011 12:44, Asterisk
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:asterisk@teknisa.com">asterisk@teknisa.com</a>&gt;</span>
          escreveu:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;"> &nbsp;Boa tarde amigos<br>
            <br>
            Alguem conhece alguma aplica&ccedil;&atilde;o click-to-call em PHP ou ASP,
            mas que n&atilde;o<br>
            seja para disparar uma liga&ccedil;&atilde;o para o cliente.<br>
            <br>
            EX:<br>
            <br>
            click-to-call &gt;&gt; liga_suporte.<br>
            <br>
            Desde ja agrade&ccedil;o a aten&ccedil;&atilde;o.<br>
            <br>
            Obrigado.<br>
            <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 (11)3016-5200.<br>
            ________<br>
            LAN&Ccedil;AMENTO SHOPVOIP! Gateway Xibelis Lyric VoIP com 2,4 e 6
            canais GSM.<br>
            Arquitetura Escal&aacute;vel, Balanceamento de Carga, Portabilidade
            Num&eacute;rica.<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>
            Mais informa&ccedil;&otilde;es: <a moz-do-not-send="true"
              href="http://www.shopvoip.com.br" target="_blank">www.shopvoip.com.br</a>
            ou 0800-6021244<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>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.digivoice.com.br">www.digivoice.com.br</a> ou (11)3016-5200.
________
LAN&Ccedil;AMENTO SHOPVOIP! Gateway Xibelis Lyric VoIP com 2,4 e 6 canais GSM.
Arquitetura Escal&aacute;vel, Balanceamento de Carga, Portabilidade Num&eacute;rica.
Confira em <a moz-do-not-send="true" 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>
Mais informa&ccedil;&otilde;es: <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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.
________
LAN&Ccedil;AMENTO SHOPVOIP! Gateway Xibelis Lyric VoIP com 2,4 e 6 canais GSM.
Arquitetura Escal&aacute;vel, Balanceamento de Carga, Portabilidade Num&eacute;rica.
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>
Mais informa&ccedil;&otilde;es: <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>
  </body>
</html>