<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Bradley Hand ITC";
        panose-1:3 7 4 2 5 3 2 3 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EstiloDeEmail19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EstiloDeEmail20
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Boa Noite,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Primeiramente agradeço a todos que responderam.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>O problema está no seguinte ponto:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Se eu logo no console CLI do Asterisk 1.8 e executo o comando <b>dongle sms dongle0 5511989091838 teste2 </b>a mensagem é enviada com sucesso.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Mas, se eu tento executar via linha de comando, sem logar, ocorre o seguinte:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>asterisk -rx dongle sms dongle0 5511989091838 teste2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>No such command 'dongle' (type 'core show help dongle' for other possible commands)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><i><span style='font-size:14.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Atenciosamente,<o:p></o:p></span></i></b></p><p class=MsoNormal><b><span style='font-size:16.0pt;font-family:"Bradley Hand ITC";color:#1F497D;mso-fareast-language:EN-US'>Rafael Ribeiro</span></b><b><span style='font-size:16.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'> </span></b><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>– CEO XPS NetWorks Group<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><a href="mailto:rafael.ribeiro@xpsnetworks.net"><span lang=EN-US>rafael.ribeiro@xpsnetworks.net</span></a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Skype:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'> <i>xpsnetworks<o:p></o:p></i></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Celular:</span></b><i><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'> 11 98909-1838 / 51 9201-6908</span></i><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>11 3522-5293<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>21 3527-0235<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>51 4063-9078<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>De:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Rodrigo Maia [mailto:rod.pmaia@gmail.com] <br><b>Enviada em:</b> segunda-feira, 14 de março de 2016 14:16<br><b>Para:</b> asteriskbrasil@listas.asteriskbrasil.org; rafaelribeiro.sp@gmail.com<br><b>Assunto:</b> Re: [AsteriskBrasil] RES: PHP - SMS<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p><a href="http://stackoverflow.com/questions/21228742/system-command-run-from-console-but-not-from-crontab-in-linux">http://stackoverflow.com/questions/21228742/system-command-run-from-console-but-not-from-crontab-in-linux</a><o:p></o:p></p><p><a href="http://pbxinaflash.com/community/threads/getting-a-php-script-to-execute-an-asterisk-cli-command.13192/">http://pbxinaflash.com/community/threads/getting-a-php-script-to-execute-an-asterisk-cli-command.13192/</a><o:p></o:p></p><p>Outra coisa que tentaria, seria lê os .php do elastix e similares com web manager for asterisk!!!<o:p></o:p></p><p>Em 14/03/2016 1:53 PM, &quot;Rafael Ribeiro&quot; &lt;<a href="mailto:rafaelribeiro.sp@gmail.com">rafaelribeiro.sp@gmail.com</a>&gt; escreveu:<br>&gt;<br>&gt; O problema é que quando executo o dongle via linha de comando fora do CLI nada acontece.<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; Atenciosamente,<br>&gt;<br>&gt; Rafael Ribeiro – CEO XPS NetWorks Group<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; <a href="mailto:rafael.ribeiro@xpsnetworks.net">rafael.ribeiro@xpsnetworks.net</a><br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; Skype: xpsnetworks<br>&gt;<br>&gt; Celular: 11 98909-1838 / 51 9201-6908<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; 11 3522-5293<br>&gt;<br>&gt; 21 3527-0235<br>&gt;<br>&gt; 51 4063-9078<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; De: Isac Borgert [mailto:<a href="mailto:isacborgert@gmail.com">isacborgert@gmail.com</a>] <br>&gt; Enviada em: segunda-feira, 14 de março de 2016 12:38<br>&gt; Para: Rafael Ribeiro &lt;<a href="mailto:rafaelribeiro.sp@gmail.com">rafaelribeiro.sp@gmail.com</a>&gt;; <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a><br>&gt; Assunto: Re: [AsteriskBrasil] PHP - SMS<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; Se me lembro bem, vc pode usar o system do php para executar a linha de comando direto no linux...<br>&gt;<br>&gt;<br>&gt; Atenciosamente Isac Borgert<br>&gt;<br>&gt; Analista de TI - Informática<br>&gt;<br>&gt; Santa Luzia, Criciúma/SC<br>&gt;<br>&gt; &nbsp;<br>&gt;<br>&gt; Em 14 de março de 2016 11:16, Rafael Ribeiro &lt;<a href="mailto:rafaelribeiro.sp@gmail.com">rafaelribeiro.sp@gmail.com</a>&gt; escreveu:<br>&gt;&gt;<br>&gt;&gt; Bom Dia!<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Alguem teria documentação, referente ao envio de SMS por PHP?<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Os Dongles já estão instalados e funcionando, consigo fazer e receber chamadas, bem como enviar SMS via linha de comando no CLI.<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Estou me perdendo na hora de executar estes comandos no PHP para o CLI do Asterisk.<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Obrigado!<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Atenciosamente,<br>&gt;&gt;<br>&gt;&gt; Rafael Ribeiro – CEO XPS NetWorks Group<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; <a href="mailto:rafael.ribeiro@xpsnetworks.net">rafael.ribeiro@xpsnetworks.net</a><br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; Skype: xpsnetworks<br>&gt;&gt;<br>&gt;&gt; Celular: 11 98909-1838 / 51 9201-6908<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt; 11 3522-5293<br>&gt;&gt;<br>&gt;&gt; 21 3527-0235<br>&gt;&gt;<br>&gt;&gt; 51 4063-9078<br>&gt;&gt;<br>&gt;&gt; &nbsp;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; KHOMP: completa linha de placas externas FXO, FXS, GSM e E1<br>&gt;&gt; Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7<br>&gt;&gt; Intercomunicador e acesso remoto via rede IP e telefones IP<br>&gt;&gt; Conheça todo o portfólio em <a href="http://www.Khomp.com">www.Khomp.com</a><br>&gt;&gt; _______________________________________________<br>&gt;&gt; Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>&gt;<br>&gt; &nbsp;<br>&gt;<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; Intercomunicador e acesso remoto via rede IP e telefones IP<br>&gt; Conheça todo o portfólio em <a href="http://www.Khomp.com">www.Khomp.com</a><br>&gt; _______________________________________________<br>&gt; Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><o:p></o:p></p></div></body></html>