Você pode criar 3 scripts para executar cada necessidade no Asterisk de modo separado!
Apos isto você utiliza um AGI para chamar estes 3 scripts em bg Técnicamente eles executam praticamente juntos (sem ser sequencial). Abs *Gian Silva | **Consultor de Novos Negócios* *[email protected] <[email protected]>* (11) 9 8979-1849 *Terminação VoIP | Pabx Virtual | Callcenter | **Fábrica de Software* *Soluções para Operadoras VoIP e Provedores de Internet* *Matriz - São Paulo: (11) 2908-0106* *Filial - Goiania: (62) 3142-0449* *www.evence.com.br <http://www.evence.com.br>* 2017-02-07 11:20 GMT-02:00 Wagner Mazuchi <[email protected]>: > 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 <[email protected]> > 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@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 >> [email protected] >> > > > _______________________________________________ > 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 > [email protected] >
_______________________________________________ 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 [email protected]

