[AsteriskBrasil] Ações simultâneas no asterisk

Wagner Mazuchi wagner em sincronismotelecom.com
Terça Fevereiro 7 11:20:18 BRST 2017


Olá Luan,

Pode dar um exemplo mais real do que pretende fazer?
Existem varias formas de disparar contextos simultâneos em Dial  ou Queue:

*F(context^exten^pri)*: When the caller hangs up, transfer the called party
to the specified context and extension and continue execution.
*G(context^exten^pri)*: 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.
*M(**x**)*: Executes the macro (x) upon connect of the call (i.e. when the
called party answers). See also *U*. 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 *${MACRO_RESULT}*
to the following:

   - *ABORT*: Hang up both legs
   - *CONGESTION*: Signal congestion to the caller
   - *BUSY*: Signal busy to the caller
   - *CONTINUE*: Hangup the called party but continue execution at the next
   priority in the dialplan for the caller
   - *GOTO*: Transfer the execution to *context^exten^pri*


Por exemplo:

Dial(DAHDI/g1/${EXTEN},60,tTwWF(pesquisa^A${NUMERO}^Inicio));






Em 6 de fevereiro de 2017 15:11, Luan Freitas <luan.lrf at gmail.com> escreveu:

> Olá pessoal,
>
>
>
>         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.
>
>
>
>         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?
>
>
>
> Segue o contexto de exemplo:
>
>
>
> context anlz01 {
>
>         _X. => {
>
>                 Dial(local/200 at anlz03,30,CU(anlz02,s,1));
>
>         }
>
> }
>
>
>
> context anlz02 {
>
>         200 => {
>
>                 Playback(gravacoes/21971192789-20170103-143043-P1C55-E1,
> noanswer);
>
>         }
>
> }
>
>
>
> context anlz03 {
>
>         s => {
>
>                 Wait(3);
>
>                 Progress();
>
>                 Wait(5);
>
>                 Hangup();
>
>         }
>
> }
>
> _______________________________________________
> 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
> Intercomunicador e acesso remoto via rede IP e telefones IP
> Conheça todo o portfólio em www.Khomp.com
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe at listas.asteriskbrasil.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20170207/cd5bcfe7/attachment.html>


Mais detalhes sobre a lista de discussão AsteriskBrasil