<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Bom dia,<div><br></div><div>Eu fiz um em PHP onde importo os numero com cvs e depois um campo onde digito a msg e ele envia para todos que importei para o banco isso para realizar campanha com asterisk e chan_dongle</div><div><br></div><div>att</div><div><br></div><div><br></div><div>Eduardo Souza<br><div><div>Em 11/12/2013, à(s) 22:20, Leomar Soares de Almeida <<a href="mailto:leomarsa@gmail.com">leomarsa@gmail.com</a>> escreveu:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Boa noite galera.<div><br></div><div><br></div><div>Alguém consegue fazer envia de SMS por chan_dongle.</div><div><br></div><div><br></div><div>segue script php com modelo de pagina.</div><div><br></div><div>
pagina smser.php</div><div><br></div><div><div><?</div><div>/*</div><div> Simple and easy for modification, PHP script for SMS sending through HTTP with you own Sender ID and delivery reports. </div><div> You just have to type your account information on <a href="http://www.2-waysms.com/">www.2-waysms.com</a> and upload file on server.</div>
<div> </div><div> Istruction:</div><div> </div><div> // Find 2 parameters in <body> and type your account information on <a href="http://www.2-waysms.com/">www.2-waysms.com</a></div><div> </div><div> 1. $from = "********"; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div>
<div> 2. $token = "********"; // Change ********, and put your token code in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div><div> </div><div>*/</div><div>?></div><div><br></div><div><html></div>
<div><head></div><div><meta name="robots" content="index"></div><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></div><div><title>Sistema de Envio de SMS com Chan_dongle</title></div>
<div><style type="text/css"></div><div>body{</div><div><span class="" style="white-space:pre">        </span>font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif; </div>
<div><span class="" style="white-space:pre">        </span>font-size:12px;</div><div>}</div><div>p, h1, form, button{border:0; margin:0; padding:0;}</div><div>.spacer{clear:both; height:1px;}</div><div>/* ----------- My Form ----------- */</div>
<div>.myform{</div><div><span class="" style="white-space:pre">        </span>margin:0 auto;</div><div><span class="" style="white-space:pre">        </span>width:340px;</div><div><span class="" style="white-space:pre">        </span>padding:14px;</div>
<div>}</div><div>/* ----------- stylized ----------- */</div><div><span class="" style="white-space:pre">        </span>#stylized{</div><div><span class="" style="white-space:pre">                </span>border:solid 2px #b7ddf2;</div><div><span class="" style="white-space:pre">                </span>background:#ebf4fb;</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized h1 {</div><div><span class="" style="white-space:pre">                </span>font-size:14px;</div><div><span class="" style="white-space:pre">                </span>font-weight:bold;</div>
<div><span class="" style="white-space:pre">                </span>margin-bottom:8px;</div><div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span>#stylized p{</div><div><span class="" style="white-space:pre">                </span>font-size:11px;</div>
<div><span class="" style="white-space:pre">                </span>color:#666666;</div><div><span class="" style="white-space:pre">                </span>margin-bottom:20px;</div><div><span class="" style="white-space:pre">                </span>border-bottom:solid 1px #b7ddf2;</div>
<div><span class="" style="white-space:pre">                </span>padding-bottom:10px;</div><div><span class="" style="white-space:pre">        </span></div><div>}</div><div><span class="" style="white-space:pre">        </span></style> </div>
<div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span><script type="text/javascript"></div><div><span class="" style="white-space:pre">        </span></div>
<div>//Edit the counter/limiter value as your wish</div><div>var count = "160"; //Example: var count = "175";</div><div>function limiter(){</div><div>var tex = document.myform.text.value;</div><div>var len = tex.length;</div>
<div>if(len > count){</div><div> tex = tex.substring(0,count);</div><div> document.myform.text.value =tex;</div><div> return false;</div><div>}</div><div>document.myform.limit.value = count-len;</div>
<div>}</div><div><br></div><div>// +,- delete</div><div>var r={'special':/[\W]/g}</div><div>function valid(o,w)</div><div>{</div><div> o.value = o.value.replace(r[w],'');</div><div>}</div><div><br></div><div>
// phone number checker</div><div>function isNumeric()</div><div>{</div><div> var elem=document.myform.to.value;</div><div> var nalt=document.getElementById('phno1');</div><div> if(elem!="")</div><div>
{</div><div> var numericExpression = /^[0-9]+$/;</div><div><span class="" style="white-space:pre">        </span> if(elem.match(numericExpression))</div><div> {</div><div> nalt.innerHTML="";</div><div> return true;</div>
<div> }</div><div> </div><div> else{</div><div><span class="" style="white-space:pre">                </span></div><div> nalt.innerHTML="<font size=1 > Numbers Only</font>";</div><div><span class="" style="white-space:pre">                </span> document.myform.to.focus();</div>
<div><span class="" style="white-space:pre">        </span> <span class="" style="white-space:pre">        </span> document.myform.to.value="";</div><div> return false;</div><div><span class="" style="white-space:pre">        </span> }</div>
<div> }</div><div> else if(elem.length==0) {</div><div> nalt.innerHTML="<font size=1 > Ex. 6599...</font>";</div><div> document.myform.to.focus();;</div><div> return false;</div><div> }</div>
<div>}</div><div></script> </div><div><span class="" style="white-space:pre">        </span></div><div></head></div><div><body></div><div><?</div><div> </div><div>$from = "********"; // Change ********, and put your SMS Number in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div>
<div>$token = "********"; // Change ********, and put your token code in <a href="http://www.2-waysms.com/">www.2-waysms.com</a> account</div><div><br></div><div> </div><div>$option = $_REQUEST["option"];</div>
<div>$text = $_REQUEST["text"];</div><div>$to = $_REQUEST["to"];</div><div>$senderid = $_REQUEST["senderid"];</div><div><br></div><div><br></div><div><span class="" style="white-space:pre">        </span>switch ($option) {</div>
<div><span class="" style="white-space:pre">        </span></div><div><br></div><div><span class="" style="white-space:pre">        </span>case sendsms:</div><div><span class="" style="white-space:pre">                </span>if ($text == "") { echo </div>
<div><span class="" style="white-space:pre">        </span>"<center><br>Erro!<br><b>Digite um texto para mensagem<b><br><a href=\"javascript:history.back(-1)\"><b>Voltar<b></a><br></center>"; </div>
<div>die; } else { }</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>if ($to == "") { echo "<center><br>Error!<br><b>Number not entered<b><br><a href=\"javascript:history.back(-1)\"><b>Go Back<b></a><br></center>";</div>
<div> die; } else { }</div><div> </div><div><span class="" style="white-space:pre">                </span>if ($senderid == "") { echo "<center><br>Error!<br><b>From not entered<b><br><a href=\"javascript:history.back(-1)\"><b>Go Back<b></a><br></center>";</div>
<div>die; } else { }</div><div><br></div><div><span class="" style="white-space:pre">                </span>$url = "<a href="http://www.2-waysms.com/my/api/sms.php">http://www.2-waysms.com/my/api/sms.php</a>";</div><div><br></div>
<div><span class="" style="white-space:pre">                </span>$postfields = array ("from" => "$from",</div><div> "token" => "$token",</div><div> "text" => "$text",</div>
<div><span class="" style="white-space:pre">                </span>"to" => "$to",</div><div><span class="" style="white-space:pre">                </span>"senderid" => "$senderid");</div><div><span class="" style="white-space:pre">                </span></div>
<div><span class="" style="white-space:pre">                </span>if (!$curld = curl_init()) {</div><div><span class="" style="white-space:pre">                </span>echo "Could not initialize cURL session.";</div><div><span class="" style="white-space:pre">                </span>exit;</div>
<div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POST, true);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_POSTFIELDS, $postfields);</div>
<div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_URL, $url);</div><div><span class="" style="white-space:pre">                </span>curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);</div><div><span class="" style="white-space:pre">                </span>$output = curl_exec($curld);</div>
<div><span class="" style="white-space:pre">                </span>curl_close ($curld);</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">                </span>$out = explode('|',$output);</div>
<div><span class="" style="white-space:pre">                </span></div><div>echo "<center>Message Status: Sua mensagem foi enviado com sucesso para $to $out[1]<br><a href=\"smser.php\"><b>Enviar nova mensagem?</b></a></center>"; </div>
<div><br></div><div><span class="" style="white-space:pre">        </span>break;</div><div><br></div><div><span class="" style="white-space:pre">        </span>default:</div><div><span class="" style="white-space:pre">                </span></div><div>
<span class="" style="white-space:pre">        </span>echo</div><div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">        </span> "<div id=\"stylized\" class=\"myform\">"</div>
<div><span class="" style="white-space:pre">        </span> ."<form name=\"myform\" method=post action=\"$PHP_SELF?option=sendsms\">"</div><div><span class="" style="white-space:pre">        </span> ."<table border=\"0\">"</div>
<div><span class="" style="white-space:pre">        </span> ."<tr>"</div><div><span class="" style="white-space:pre">        </span> ."<center><h1>Envio de SMS com Chan_Dongle</h1></center>"</div>
<div><span class="" style="white-space:pre">                </span> ."<td>Remetente</td>"</div><div><span class="" style="white-space:pre">                </span> ."<td><input type=\"text\" name=\"senderid\" onkeyup=\"valid(this,'special')\" onblur=\"valid(this,'special')\"></td>"</div>
<div><span class="" style="white-space:pre">        </span> ."</tr>"</div><div><span class="" style="white-space:pre">        </span> ."<tr>"</div><div><span class="" style="white-space:pre">                </span> ."<td>Destinatario</td>"</div>
<div><span class="" style="white-space:pre">                </span> ."<td><input type=\"text\" name=\"to\" id=\"to\" onKeyup=\"isNumeric()\"><span id=phno1></span></td>"</div>
<div><span class="" style="white-space:pre">        </span> ."</tr>"</div><div><span class="" style="white-space:pre">        </span> ."<tr>"</div><div><span class="" style="white-space:pre">                </span> ."<td>Mensagem</td>"</div>
<div><span class="" style="white-space:pre">                </span> ."<td><textarea name=text wrap=physical rows=4 cols=25 onkeyup=limiter()></textarea></td><br>"</div><div> ."</tr>"</div>
<div><span class="" style="white-space:pre">        </span> ."<tr>"</div><div><span class="" style="white-space:pre">        </span> ."<td></td>"</div><div> ."<td>Caracter: <script type=\"text/javascript\">"</div>
<div> ."document.write(\"<input type=text name=limit size=4 readonly value=\"+count+\">\");"</div><div> ."</script><br></td>"</div><div><span class="" style="white-space:pre">        </span> ."</tr>"</div>
<div><span class="" style="white-space:pre">        </span> ."<tr>"</div><div><span class="" style="white-space:pre">                </span> ."<td>&nbsp;</td>"</div><div><span class="" style="white-space:pre">                </span> ."<td><input type=submit name=submit value=Enviar>"</div>
<div><span class="" style="white-space:pre">                </span> ."<div class=\"spacer\"></div></td>"</div><div><span class="" style="white-space:pre">        </span> ."</tr>"</div><div>
<span class="" style="white-space:pre">        </span> ."</table>"</div><div><span class="" style="white-space:pre">        </span> ."</form>"</div><div><span class="" style="white-space:pre">        </span>."</div><br>";</div>
<div><span class="" style="white-space:pre">        </span>}</div><div><span class="" style="white-space:pre">        </span></div><div>?></div><div></center></div><div></body></div><div></html></div></div><div><br>
</div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr"><p><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">==================================</span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113)"><br>
<span style="background-color:rgb(245,255,250)"><b>INNOVA INFORMÁTICA
LTDA<br><br></b></span></span><span style="background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt"><font face="Verdana, sans-serif">LEOMAR SOARES DE ALMEIDA<b><br></b></font></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Fixo: (65)
3357-3357<br></span><span style="font-family:Verdana,sans-serif;background-color:rgb(245,255,250);color:rgb(74,85,113);font-size:9pt">Vivo. (65) 9676-0062<br></span><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(74,85,113);background-color:rgb(245,255,250)">E-mail: </span><a href="mailto:leomarsa@gmail.com" target="_blank">comercial@innovainformatica.net</a> <br>
<span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">E-mail: <a href="mailto:leomarsa@gmail.com" target="_blank">leomarsa@gmail.com</a><br></font></span></span><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Linkedin: </font></span></span><font color="#4a5571" face="Verdana, sans-serif"><a href="http://lnkd.in/YMwxrW" target="_blank">http://lnkd.in/YMwxrW</a><br>
</font><span style="font-size:9pt;color:rgb(74,85,113)"><span style="background-color:rgb(245,255,250)"><font face="Verdana, sans-serif">Endereço: </font></span></span><font color="#4a5571" face="Verdana, sans-serif"><span style="font-size:12px"><a href="http://goo.gl/maps/2YfjW" target="_blank">http://goo.gl/maps/2YfjW</a></span></font></p><p><font color="#4a5571" face="Verdana, sans-serif"><br></font></p><p><br></p></div>
</div></div><div><br class="webkit-block-placeholder"></div>
-- <br>
<br>
--- <br>
Você está recebendo esta mensagem porque se inscreveu no grupo "ElastixBrasil" dos Grupos do Google.<br>
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para <a href="mailto:elastixbrasil+unsubscribe@googlegroups.com">elastixbrasil+unsubscribe@googlegroups.com</a>.<br>
Para postar neste grupo, envie um e-mail para <a href="mailto:elastixbrasil@googlegroups.com">elastixbrasil@googlegroups.com</a>.<br>
Visite este grupo em <a href="http://groups.google.com/group/elastixbrasil">http://groups.google.com/group/elastixbrasil</a>.<br>
Para obter mais opções, acesse <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br>
</blockquote></div><br></div></body></html>