<div dir="ltr"><div><div><div><div>Olá Luan,<br><br></div>Pode dar um exemplo mais real do que pretende fazer?<br></div>Existem varias formas de disparar contextos simultâneos em Dial ou Queue:<br><br><b>F(context^exten^pri)</b>: When the caller hangs up, transfer the called party to the specified context and extension and continue execution.<br><b>G(context^exten^pri)</b>: If the call is answered, transfer
both parties to the specified context and extension. The calling party
is transferred to priority x, and the called party to priority x+1. This
allows the dialplan to distinguish between the calling and called legs
of the call (new in v1.2). You cannot use any options that would affect
the post-answer state if this option is used.<br><b>M(</b><i>x</i><b>)</b>: Executes the macro (x) upon connect of the call (i.e. when the called party answers). See also <b>U</b>.
IMPORTANT - The CDR 'billsecs' field is set to zero if the callee
answers the call, but hangs up whilst the macro is still running (if the
callee answers and the macro finishes, 'billsecs' contains the correct
value). The macro can set <b>${MACRO_RESULT}</b> to the following:<br><ul><li> <b>ABORT</b>: Hang up both legs</li><li> <b>CONGESTION</b>: Signal congestion to the caller</li><li> <b>BUSY</b>: Signal busy to the caller</li><li> <b>CONTINUE</b>: Hangup the called party but continue execution at the next priority in the dialplan for the caller</li><li> <b>GOTO</b>: Transfer the execution to <b>context^exten^pri</b></li></ul></div><br></div>Por exemplo:<br><br>Dial(DAHDI/g1/${EXTEN},60,tTwWF(pesquisa^A${NUMERO}^Inicio));<br><div><br><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><br><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><p style="margin:0px;color:rgb(136,136,136);background-color:rgb(255,255,255)"><img src="http://sincronismo.com.br/assinaturas/assinatura_wagner.jpg"> </p></span></div></div></div></div>
<br><div class="gmail_quote">Em 6 de fevereiro de 2017 15:11, Luan Freitas <span dir="ltr"><<a href="mailto:luan.lrf@gmail.com" target="_blank">luan.lrf@gmail.com</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Olá
pessoal,</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Gostaria de ajuda para
configurar meu plano de discagem para executar mais de uma aplicação ao mesmo
tempo. No exemplo abaixo criei 3 contextos, onde a ligação efetuada pelo
contexto anlz01 realiza uma discagem para o contexto anlz02 e faz uma subrotina
para o contexto anlz03.</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">A minha necessidade é
que enquanto o playback está sendo executado as outras aplicações do contexto
anlz03 também sejam executadas. Como eu poderia alcançar este objetivo?</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Segue
o contexto de exemplo:</span><span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">context
anlz01 {</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">_X. => {</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Dial(local/200@anlz03,30,CU(<wbr>anlz02,s,1));</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">context
anlz02 {</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">200 => {</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Playback(gravacoes/<wbr>21971192789-20170103-143043-<wbr>P1C55-E1, noanswer);</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">context
anlz03 {</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">s => {</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Wait(3);</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Progress();</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Wait(5);</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
Hangup();</span><span></span></p>
<p class="MsoNormal"><span class="m_-675628877698425484gmail-apple-tab-span"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)"> </span></span><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p>
<p class="MsoNormal"><span style="font-family:verdana,sans-serif;color:rgb(11,83,148)">}</span><span></span></p></div>
<br>______________________________<wbr>_________________<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>
Intercomunicador e acesso remoto via rede IP e telefones IP<br>
Conheça todo o portfólio em <a href="http://www.Khomp.com" rel="noreferrer" target="_blank">www.Khomp.com</a><br>
______________________________<wbr>_________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@<wbr>listas.asteriskbrasil.org</a><br></blockquote></div><br></div>