<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=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {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;}
/* List Definitions */
@list l0
        {mso-list-id:1105005810;
        mso-list-type:hybrid;
        mso-list-template-ids:1614959638 68550673 68550681 68550683 68550671 68550681 68550683 68550671 68550681 68550683;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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>SRs,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Baseado na ideia do Eder de mandar um comando sip usando netcat para saber se o ramal esta no ar, implementei outro script.<o:p></o:p></p><p class=MsoNormal>Acabei de receber 250 ramais sip e precisava desligar TODOS eles para atualizar uma informação com auto-provisionamento.<o:p></o:p></p><p class=MsoNormal>Mas fiquei assustado com o que eu consegui fazer.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Vamos a receita de bolo:<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Baixe o netcat da internet (para Windows no meu caso).<o:p></o:p></p><p class=MsoNormal style='text-indent:35.4pt'><a href="http://www.downloadnetcat.com/nc11nt.zip">http://www.downloadnetcat.com/nc11nt.zip</a><o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Crie o arquivo notify.txt com o seguinte texto não inclua a linha com &#8220;-----------&#8220; nem deixe espaço no inicio:<o:p></o:p></p><p class=MsoNormal style='margin-left:54.0pt'>------------INICIO-----------<o:p></o:p></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>NOTIFY sip:0.0.0.0 SIP/2.0<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>Via: SIP/2.0/UDP 0.0.0.0:5060<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>From: &quot;U&quot; &lt;sip:U@0.0.0.0&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>To: &lt;sip:0.0.0.0&gt;<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>Call-ID: 0@0.0.0.0<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>CSeq: 102 NOTIFY<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'><span lang=EN-US>Event: check-sync;reboot=true<o:p></o:p></span></p><p class=MsoNormal style='margin-left:54.0pt'>Content-Length: 0<o:p></o:p></p><p class=MsoNormal style='margin-left:54.0pt'>-----------FIM------------<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Digite nc -u 255.255.255.255 &lt; notify.txt<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Claro que o arquivo e o programa devem estar descompactados no mesmo diretório ou com parâmetro &#8220;path&#8221; corretamente configurado.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Ajuste as duas ultimas linhas conforme o modelo de seu aparelho. De uma olhada no arquivo sip_notify.conf. Google sobre sip notify.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'>Att,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'>José Eduardo C. Mazolini<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'>Analista de Telecom<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:PT-BR'>(11) 2136-3642<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><font style="font-size:7.0pt;font-family:Verdana">
                <br/>A informação contida nesta mensagem é confidencial e de propriedade da Fidelity Processadora e Serviços S/A. Se você recebeu este e-mail por engano, por favor: (i) apague a mensagem e todas as suas cópias e anexos; (ii) não revele, distribua ou utilize a mensagem ou seu conteúdo de qualquer maneira; e (iii) notifique o remetente imediatamente. Adicionalmente, por favor esteja informado de que qualquer mensagem endereçada ao domínio da Fidelity está sujeita ao arquivamento e leitura por outros membros da companhia, além do próprio destinatário da mensagem. A Fidelity agradece a sua colaboração.<br/><br/>The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.<br/></font></body></html>