<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><font face="Arial" size="3" style="font-size:12pt;">&nbsp; &nbsp;Não ficou como eu queria, mas fiz assim :</font></div><div><font face="Arial" size="3" style="font-size:12pt;"><br></font></div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 55 =&gt; {set(orif=55);</div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dial(sip/48199200);<span style="font-size: 12pt;">}</span></div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 56 =&gt; {set(orif=56);</div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dial(sip/48199200);<span style="font-size: 12pt;">}</span></div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 57 =&gt; {set(orif=57);</div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dial(sip/48199200);<span style="font-size: 12pt;">}</span></div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;"><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;h =&gt; {if (orif=55) noop(executar &nbsp; x5-----);</span></div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (orif=56) noop(executar &nbsp; x6-----);</div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (orif=57) noop(executar &nbsp; x7-----);}</div><div style="line-height: 22px; color: rgb(68, 68, 68); font-family: Arial;"><br></div>&nbsp; &nbsp;Agradeço a todos pelas dicas<font face="Arial">.</font><div><br></div><div><br><pre style="line-height:17px;white-space:normal;color:rgb(42, 42, 42);background-color:rgb(255, 255, 255)">Hudson&nbsp;<br>(048) 8413-7000<br>Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa.&nbsp;</pre><br><br><div><hr id="stopSpelling">Date: Thu, 29 Aug 2013 14:15:10 -0300<br>From: thiagoo.anselmoo@gmail.com<br>To: asteriskbrasil@listas.asteriskbrasil.org<br>Subject: Re: [AsteriskBrasil] procedimento a ser executado depois de        originate desliga<br><br><div>Hudson,</div>
<div>&nbsp;</div>
<div>Eu sei que você programa ael, eu tambe´m então&nbsp;usa uma variavel e faz um switch </div>
<div>caso for o número X faz tal coisa caso for y faz tal coisa.</div>
<div>&nbsp;</div>
<div>qualque coisa me passa por PVT que te mando os arquivos.<br><br></div>
<div class="ecxgmail_quote">Em 29 de agosto de 2013 14:02, Marcio - Google <span dir="ltr">&lt;<a href="mailto:marciorp@gmail.com" target="_blank">marciorp@gmail.com</a>&gt;</span> escreveu:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex;" class="ecxgmail_quote">
<div dir="ltr">
<div style="FONT-FAMILY:arial,helvetica,sans-serif;" class="ecxgmail_default">Você não pode colocar a extensão H e verificar com GotoIf o número discado?</div></div>
<div class="ecxgmail_extra"><br clear="all">
<div>
<div dir="ltr"><br>[...]'s<br><br>Marcio 
<div><br></div>
<div>
<div style="FONT-FAMILY:arial;FONT-SIZE:small;">========================================</div>
<div style="FONT-FAMILY:arial;FONT-SIZE:small;">########### Campanha Ajude o Marcio! ###########</div>
<div style="FONT-FAMILY:arial;FONT-SIZE:small;"><a style="COLOR:rgb(17,85,204);" href="http://sosmarcio.blogspot.com.br/" target="_blank">http://sosmarcio.blogspot.com.br/</a></div>
<div style="FONT-FAMILY:arial;FONT-SIZE:small;"><a style="COLOR:rgb(17,85,204);" href="http://www.vakinha.com.br/VaquinhaP.aspx?e=195793" target="_blank">http://www.vakinha.com.br/VaquinhaP.aspx?e=195793</a><br></div>
<div style="FONT-FAMILY:arial;FONT-SIZE:small;">========================================</div></div></div></div><br><br>
<div class="ecxgmail_quote">Em 29 de agosto de 2013 11:30, Hudson Cardoso <span dir="ltr">&lt;<a href="mailto:hudsoncardoso@hotmail.com" target="_blank">hudsoncardoso@hotmail.com</a>&gt;</span> escreveu: 
<div>
<div class="h5"><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex;" class="ecxgmail_quote">
<div>
<div dir="ltr"><font style="COLOR:rgb(68,68,68);FONT-SIZE:12pt;" face="Arial">&nbsp; &nbsp;Ex :</font> 
<div style="LINE-HEIGHT:21px;COLOR:rgb(68,68,68);FONT-SIZE:15px;"><font style="LINE-HEIGHT:normal;FONT-SIZE:12pt;" face="Arial">se discar 55 apos desligamento faz reboot</font></div>
<div style="LINE-HEIGHT:21px;COLOR:rgb(68,68,68);FONT-SIZE:15px;"><font style="LINE-HEIGHT:normal;FONT-SIZE:12pt;" face="Arial">se discar 56 apos desligamento envia mail</font></div>
<div style="LINE-HEIGHT:21px;COLOR:rgb(68,68,68);FONT-SIZE:15px;"><font style="LINE-HEIGHT:normal;FONT-SIZE:12pt;" face="Arial">se discar 57 apos desligamento faz sip reload</font></div>
<div style="LINE-HEIGHT:21px;COLOR:rgb(68,68,68);FONT-SIZE:15px;"><font style="LINE-HEIGHT:normal;FONT-SIZE:12pt;" face="Arial">&nbsp;e assim por diante.</font></div><br>
<div><br><pre style="LINE-HEIGHT:17px;WHITE-SPACE:normal;COLOR:rgb(42,42,42);">Hudson&nbsp;<br><a target="_blank">(048) 8413-7000</a><br>Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa.&nbsp;</pre>
<br><br></div>
<div>
<hr>
Date: Thu, 29 Aug 2013 12:27:01 -0300 
<div>
<div><br>From: <a href="mailto:thiagoo.anselmoo@gmail.com" target="_blank">thiagoo.anselmoo@gmail.com</a><br>To: <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org" target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a><br>
Subject: Re: [AsteriskBrasil] procedimento a ser executado depois de originate desliga<br><br>
<div dir="ltr">Hudson,&nbsp; 
<div><br></div>
<div>Não entendi, me explica melhor!</div></div>
<div><br><br>
<div>Em 29 de agosto de 2013 12:23, Hudson Cardoso <span dir="ltr">&lt;<a href="mailto:hudsoncardoso@hotmail.com" target="_blank">hudsoncardoso@hotmail.com</a>&gt;</span> escreveu:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex;">
<div>
<div dir="ltr"><font style="FONT-SIZE:12pt;" size="3" face="Arial">&nbsp; &nbsp;Ate ai tudo bem, dentro do contexto fica legal, mas precisava que fosse&nbsp;</font> 
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">num determinado numero que está dentro do contexto</font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial"><br></font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5555 =&gt; {dial(sip/48199200);</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;noop(terminou---------);}</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;h =&gt; noop(origem terminou---------);</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;H =&gt; noop(destino terminou---------);</div>
<div><br></div></font>
<div><br><br><pre style="LINE-HEIGHT:17px;WHITE-SPACE:normal;COLOR:rgb(42,42,42);">Hudson&nbsp;<br><a target="_blank">(048) 8413-7000</a><br>Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa.&nbsp;</pre>
<br><br></div>
<div>
<hr>
Date: Thu, 29 Aug 2013 12:15:12 -0300<br>From: <a href="mailto:thiagoo.anselmoo@gmail.com" target="_blank">thiagoo.anselmoo@gmail.com</a><br>To: <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org" target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a><br>
Subject: Re: [AsteriskBrasil] procedimento a ser executado depois de originate desliga 
<div>
<div><br><br>
<div dir="ltr">Ops falei errado, não é contexto h. e sim extensão! 
<div><br></div>
<div>;)</div></div>
<div><br><br>
<div>Em 29 de agosto de 2013 12:11, Nicolas Tanski <span dir="ltr">&lt;<a href="mailto:nicolas.tanski@gmail.com" target="_blank">nicolas.tanski@gmail.com</a>&gt;</span> escreveu:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex;">
<div dir="ltr">Hudson, 
<div><br></div>
<div>não sei se é isso que você precisa, mas segue uma dica</div>
<div><br></div>
<div><br></div>
<div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px;"><b>Exemplo de funcionamento:</b></div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px;">RAMAL A &nbsp; &nbsp;-------liga------&gt; &nbsp; RAMAL B</div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px;">Quando RAMAL A desligar encaminha para um contexto que executa o áudio em RAMAL B.</div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px;"><br></div>
<div style="FONT-FAMILY:arial,sans-serif;FONT-SIZE:13px;">
<div>[ramal]</div>
<div>exten =&gt; _X.,1,Dial(SIP/${EXTEN},10,<b>F(<span>audio</span>^s^1)</b>)</div>
<div><br></div>
<div>[<span>audio</span>]</div>
<div>exten =&gt; s,1,Playback(tt-monkeys)</div>
<div>exten =&gt; s,n,<span>Hangup</span></div>
<div><span><br></span></div>
<div><span>Para executar algum procedimento após o Hangup, deve criar dentro do contexto uma exten com o valor h.</span></div>
<div><span>exten =&gt; h,1,Agi(teste.php)</span></div>
<div><span><br></span></div></div></div>
<div><br clear="all">
<div>
<div dir="ltr">
<div><span style="BORDER-COLLAPSE:separate;FONT-SIZE:medium;"><font face="tahoma, sans-serif"><span style="FONT-SIZE:small;"><font color="#cccccc">_____________________</font></span><span style="FONT-SIZE:small;"><font color="#666666"><br>
</font></span></font></span></div><span style="BORDER-COLLAPSE:separate;FONT-SIZE:medium;"><span style="FONT-SIZE:small;"><font color="#666666" face="tahoma, sans-serif">
<div><br></div>
<div>Att,</div></font></span></span>
<div>
<div><span style="TEXT-ALIGN:right;COLOR:rgb(102,102,102);FONT-SIZE:small;"><b><font face="tahoma, sans-serif">Nicolas Tanski Pavão</font></b></span></div>
<div><span style="TEXT-ALIGN:right;FONT-FAMILY:tahoma,sans-serif;COLOR:rgb(102,102,102);FONT-SIZE:small;">skype: nicolastanski</span></div></div></div></div><br><br>
<div>
<div>Em 29 de agosto de 2013 12:02, Hudson Cardoso <span dir="ltr">&lt;<a href="mailto:hudsoncardoso@hotmail.com" target="_blank">hudsoncardoso@hotmail.com</a>&gt;</span> escreveu:<br></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;PADDING-LEFT:1ex;">
<div>
<div dir="ltr"><font style="FONT-SIZE:12pt;" size="3" face="Arial">&nbsp; &nbsp; Bom dia colegas.</font> 
<div>
<div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">&nbsp; &nbsp;Estou com uma dificuldade no HangUp, gostaria de após o HangUp da Extensão A terminar a chamada,</font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">que executasse um procedimento.</font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">&nbsp; &nbsp; O problema é que isso não acontece. &nbsp;tá faltando algo ?</font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial"><br></font></div>
<div><font style="FONT-SIZE:12pt;" size="3" face="Arial">
<div>_X. =&gt;{ dial(sip/provedor/55${numerodiscar},90,T);</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;procedimento a ser executado depois de originate desligar;</div>
<div>&nbsp; &nbsp; &nbsp;&nbsp;<span style="FONT-SIZE:12pt;">&nbsp; &nbsp; &nbsp; &nbsp;HangUp;}</span></div>
<div><br></div></font></div>
<div><br><br><pre style="LINE-HEIGHT:17px;WHITE-SPACE:normal;COLOR:rgb(42,42,42);">Hudson&nbsp;<br><a target="_blank">(048) 8413-7000</a><br>


Para quem nao cre, nenhuma prova converte,Para aquele que cre, nenhuma prova precisa.&nbsp;</pre></div></div></div></div></div><br>
<div>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
</div></blockquote></div><br></div></div><br>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>
Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>.<br>_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>.<br>_______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote>
</div><br><br clear="all">
<div><br></div>-- <br>Thiago Anselmo </div><br></div></div>_______________________________________________ KHOMP: completa linha de placas externas FXO, FXS, GSM e E1; Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7; Intercomunicadores para acesso remoto via rede IP. Conhe�a em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>. _______________________________________________ ALIGERA � Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7. Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express. Channel Bank � Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>. _______________________________________________ Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></div>
</div></div></div><br>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
</blockquote></div><br><br clear="all">
<div><br></div>-- <br>Thiago Anselmo </div><br>_______________________________________________ KHOMP: completa linha de placas externas FXO, FXS, GSM e E1; Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7; Intercomunicadores para acesso remoto via rede IP. Conhe�a em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>. _______________________________________________ ALIGERA � Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7. Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express. Channel Bank � Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>. _______________________________________________ Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></div>
</div></div></div></div><br>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>.<br>
_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>.<br>
_______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br>
</blockquote></div></div></div><br></div><br>_______________________________________________<br>KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;<br>Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;<br>
Intercomunicadores para acesso remoto via rede IP. Conheça em <a href="http://www.khomp.com/" target="_blank">www.Khomp.com</a>.<br>_______________________________________________<br>ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.<br>
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.<br>Channel Bank – Appliance Asterisk - Acesse <a href="http://www.aligera.com.br/" target="_blank">www.aligera.com.br</a>.<br>_______________________________________________<br>
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></blockquote></div>
<br><br clear="all"><br>-- <br>Thiago Anselmo 
<br>_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1;
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7;
Intercomunicadores para acesso remoto via rede IP. Conhe�a em www.Khomp.com.
_______________________________________________
ALIGERA � Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Channel Bank � Appliance Asterisk - Acesse www.aligera.com.br.
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</div></div>                                               </div></body>
</html>