[AsteriskBrasil] URA com captura de dígitos

Jefaokpta jefaokpta em hotmail.com
Quinta Julho 25 14:56:51 BRT 2013


Cara vc pode fazer assim:

1º armazena o num digitado pelo cliente no AstDB identificando com o 
callerid do cliente, tipo assim:
Set(DB(URA/${CALLERID(num)})=${numDigitado})

2º A Queue num certo momento ela disca para o ramal de um agente, neste 
Dial vc coloca o parametro 'M' do Dial:

Dial(SIP/1010,60,tkM(nome_macro,param1,param2)
os parametros serão o num do ramal e o num armazenado no AstDB.

Pra resgatar do AstDB use o ${DB_DELETE(URA/${CALLERID(num)})}

Assim qnd o agente atender o ast* lança essa macro.

/M(macro[^arg[^...]]):
         macro - Name of the macro that should be executed.
         arg - Macro arguments
     Execute the specified <macro> for the *called* channel  before
     connecting to the calling channel. Arguments can be specified to 
the Macro
     using '^' as a delimiter. The macro can set the variable 
${MACRO_RESULT}
     to specify the following actions after the macro is finished executing:
         ${MACRO_RESULT}: If set, this action will be taken after
         the macro finished executing.
             ABORT: Hangup both legs of the call
             CONGESTION: Behave as if line congestion was
             encountered
             BUSY: Behave as if a busy signal was encountered
             CONTINUE: Hangup the called party and allow the
             calling party to continue dialplan execution at the next 
priority
GOTO:[[<context>^]<exten>^]<priority>: Transfer the
             call to the specified destination.
     NOTE: You cannot use any additional action post answer options in
     conjunction with this option. Also, pbx services are run on the peer
     (called) channel, so you will not be able to set timeouts via the 
TIMEOUT()
     function in this macro.
     WARNING!!!: Be aware of the limitations that macros have, specifically
     with regards to use of the 'WaitExten' application. For more 
information,
     see the documentation for Macro()/

Vc tb pode usar o parametro macro ou agi do app Queue:

AGI
     Will setup an AGI script to be executed on the calling party's channel
     once they are connected to a queue member.
macro
     Will run a macro on the calling party's channel once they are
     connected to a queue member.

Falows

On 25-07-2013 13:32, Luiz Felipph wrote:
> Boa tarde,
>
> algo assim:
>
> URA atende e pede pra digitar um numero
> o cliente digita o numero.
> a ura fala que está redirecionando para um dos atendentes,
> cai em uma queue
> um dos operadores atende.(nesse momento, queria executar um comando 
> passando dois paramentros: o ramal que atendeu e o numero digitado 
> pelo usuário. Tem como?
>
>
>
>
>
>
> Felipph
>
>
> Em 25 de julho de 2013 13:27, info em magnussolution.com 
> <mailto:info em magnussolution.com> <info em magnussolution.com 
> <mailto:info em magnussolution.com>> escreveu:
>
>     ola, pasar numero digita para onde?
>
>     At.. Magnus
>     www.magnusbilling.com <http://www.magnusbilling.com>
>
>
>
>
>
>
>     On jul 25, 2013, at 1:15 p.m., Luiz Felipph <luizfelipph em gmail.com
>     <mailto:luizfelipph em gmail.com>> wrote:
>
>     > Boa tarde senhores,
>     >
>     > Estou montando uma URA com o propósito de melhorar e acelerar o
>     atendimento aqui na empresa.
>     >
>     > Queria saber se é possível fazer o seguinte:
>     >
>     > A ura recebe a ligação, solicita do cliente o numero do registro
>     dele(se houver, se não aguarda para ser atendido), entra na fila
>     de espera e, quando um dos operadores atende, executa um comando
>     passando o numero digitado lá na frente.
>     >
>     > tem como?
>     >
>     > Alguém tem algum material bom sobre os dialplans?
>     >
>     > Att,
>     >
>     >
>     > Felipph
>     > _______________________________________________
>     > 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 <http://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
>     <http://www.aligera.com.br>.
>     > _______________________________________________
>     > Para remover seu email desta lista, basta enviar um email em
>     branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>     <mailto:asteriskbrasil-unsubscribe em listas.asteriskbrasil.org>
>
>
>     _______________________________________________
>     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 <http://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
>     <http://www.aligera.com.br>.
>     _______________________________________________
>     Para remover seu email desta lista, basta enviar um email em
>     branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>     <mailto:asteriskbrasil-unsubscribe em listas.asteriskbrasil.org>
>
>
>
>
> _______________________________________________
> 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 em listas.asteriskbrasil.org

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130725/d08a47ea/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil