<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-2022-jp http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Verdana>Pessoal (Daviramos),</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>No e-mail anexo, Daviramos demonstrou uma
possibilidade de executar por include, uma função que a interface web não
contemplasse. Ótimo.</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Fiz meus testes conforme o exemplo, mas fiquei na
dúvida sobre a sequencia desses comandos.</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Minha dúvida pode ser simples, boba, pode até ter
sido discutida aqui por outros ângulos, mas ainda me considero um iniciante e
preciso da ajuda de vocês.</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Explico melhor, adotando o próprio exemplo que
foi passado, segue:</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV>#extensions_additional.conf<BR><BR>[ivr-3]<BR>include =>
ivr-3-custom<BR>include => from-did-direct-ivr<BR>include =>
app-directory<BR>exten => #,1,dbDel(${BLKVM_OVERRIDE})<BR>exten =>
#,n,Set(__NODEST=)<BR>exten => #,n,Goto(app-directory,#,1)<BR>exten =>
h,1,Hangup<BR>exten => s,1,Set(MSG=custom/no_expediente)<BR>exten =>
s,n,Set(LOOPCOUNT=0)<BR>exten => s,n,Set(__DIR-CONTEXT=default)<BR>exten
=> s,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT})<BR>exten =>
s,n,Set(_IVR_CONTEXT=${CONTEXT})<BR>exten =>
s,n,GotoIf($["${CDR(disposition)}" = "ANSWERED"]?begin)<BR>exten =>
s,n,Answer<BR>exten => s,n,Wait(1)<BR>exten =>
s,n(begin),Set(TIMEOUT(digit)=3)<BR>exten =>
s,n,Set(TIMEOUT(response)=10)<BR>exten => s,n,Set(__IVR_RETVM=)<BR>exten
=> s,n,ExecIf($["${MSG}" != ""],Background,${MSG})<BR>exten =>
s,n,WaitExten(,)<BR>exten => hang,1,Playback(vm-goodbye)<BR>exten =>
hang,n,Hangup<BR>exten => 1,1,dbDel(${BLKVM_OVERRIDE})<BR>exten =>
1,n,Set(__NODEST=)<BR>exten => 1,n,Goto(ext-queues,4001,1)<BR>exten =>
2,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => 2,n,Set(__NODEST=)<BR>exten =>
2,n,Goto(ext-queues,4002,1)<BR>exten => 3,1,dbDel(${BLKVM_OVERRIDE})<BR>exten
=> 3,n,Set(__NODEST=)<BR>exten => 3,n,Goto(ivr-8,s,1)<BR>exten =>
4,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => 4,n,Set(__NODEST=)<BR>exten =>
4,n,Goto(ext-queues,4005,1)<BR>exten => 9,1,dbDel(${BLKVM_OVERRIDE})<BR>exten
=> 9,n,Set(__NODEST=)<BR>exten => 9,n,Goto(ext-queues,4003,1)<BR>exten
=> i,1,Playback(invalid)<BR>exten => i,n,Goto(loop,1)<BR>exten =>
t,1,Goto(loop,1)<BR>exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} +
1])<BR>exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)<BR>exten =>
loop,n,Goto(ivr-3,s,begin)<BR>exten =>
return,1,Set(MSG=custom/no_expediente)<BR>exten =>
return,n,Set(_IVR_CONTEXT=${CONTEXT})<BR>exten =>
return,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT_${CONTEXT}})<BR>exten =>
return,n,Goto(ivr-3,s,begin)<BR>exten =>
fax,1,Goto(ext-fax,in_fax,1)<BR><BR>; end of [ivr-3]<BR></DIV>
<DIV>#extensions_custom.conf<BR><BR>[ivr-3-custom]<BR>exten =>
5,1,Answer()<BR>exten => 5,n,NoOp(FUNCIONOU)<BR>exten => 5,n,Hangup</DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Se entendi bem, mesmo o include "ivr-3-custom"
estando no início de "IVR-3", este include faz a menção do item 'exten =>
5,xxxxxxx', que me parece entrar entre as linhas '<FONT size=3
face="Times New Roman">exten => 4,n,Goto(ext-queues,4005,1)' e 'exten =>
9,1,dbDel(${BLKVM_OVERRIDE})', estou certo?</FONT></FONT></DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3
face="Times New Roman"></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman">Agora, a
dúvida que tenho é a seguinte: </FONT></FONT></DIV>
<DIV><FONT size=2 face=Verdana><FONT size=2
face=Verdana></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman"><FONT size=2
face=Verdana></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman"><FONT size=2
face=Verdana>Se tenho o seguinte "IVR-10"</FONT></FONT></FONT></DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman"><FONT size=2
face=Verdana></FONT></FONT></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman"><FONT size=2
face=Verdana>[ivr-10]<BR>include => ivr-10-custom<BR>include =>
from-did-direct-ivr<BR>include => app-directory<BR>exten =>
#,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => #,n,Set(__NODEST=)<BR>exten =>
#,n,Goto(app-directory,#,1)<BR>exten => h,1,Hangup<BR>exten =>
s,1,Set(LOOPCOUNT=0)<BR>exten => s,n,Set(__DIR-CONTEXT=default)<BR>exten
=> s,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT})<BR>exten =>
s,n,Set(_IVR_CONTEXT=${CONTEXT})<BR>exten =>
s,n,GotoIf($["${CDR(disposition)}" = "ANSWERED"]?begin)<BR>exten =>
s,n,Answer<BR>exten => s,n,Wait(1)<BR>exten =>
s,n(begin),Set(TIMEOUT(digit)=3)<BR>exten =>
s,n,Set(TIMEOUT(response)=10)<BR>exten =>
s,n,Background(custom/ura-pt/ramal&custom/ura-pt/marketing&custom/ura-pt/farmacia&custom/ura-pt/laboratorio&custom/ura-pt/sistemas&custom/ura-pt/cobranca)<BR>exten
=> s,n,WaitExten(,)<BR>exten => hang,1,Playback(vm-goodbye)<BR>exten =>
hang,n,Hangup<BR>exten => 1,1,dbDel(${BLKVM_OVERRIDE})<BR>exten =>
1,n,Set(__NODEST=)<BR>exten => 1,n,Goto(from-did-direct,10,1)<BR>exten =>
2,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => 2,n,Set(__NODEST=)<BR>exten =>
2,n,Goto(ext-group,333,1)<BR>exten => 3,1,dbDel(${BLKVM_OVERRIDE})<BR>exten
=> 3,n,Set(__NODEST=)<BR>exten => 3,n,Goto(ext-group,335,1)<BR>exten =>
4,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => 4,n,Set(__NODEST=)<BR>exten =>
4,n,Goto(ext-group,334,1)<BR>exten => 5,1,dbDel(${BLKVM_OVERRIDE})<BR>exten
=> 5,n,Set(__NODEST=)<BR>exten => 5,n,Goto(ext-group,330,1)<BR>exten =>
6,1,dbDel(${BLKVM_OVERRIDE})<BR>exten => 6,n,Set(__NODEST=)<BR>exten =>
6,n,Goto(ext-group,331,1)<BR>exten => 7,1,dbDel(${BLKVM_OVERRIDE})<BR>exten
=> 7,n,Set(__NODEST=)<BR>exten => 7,n,Goto(from-did-direct,52,1)<BR>exten
=> i,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])<BR>exten =>
i,n,ExecIf($[${LOOPCOUNT} <= 2],Playback,invalid)<BR>exten =>
i,n,GotoIf($[${LOOPCOUNT} <= 2]?s,begin)<BR>exten =>
i,n,dbDel(${BLKVM_OVERRIDE})<BR>exten => i,n,Set(__NODEST=)<BR>exten =>
i,n,Goto(app-blackhole,hangup,1)<BR>exten => t,1,Goto(loop,1)<BR>exten =>
loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])<BR>exten =>
loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)<BR>exten =>
loop,n,Goto(ivr-10,s,begin)<BR>exten =>
return,1,Set(_IVR_CONTEXT=${CONTEXT})<BR>exten =>
return,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT_${CONTEXT}})<BR>exten =>
return,n,Goto(ivr-10,s,begin)<BR>exten =>
fax,1,Goto(ext-fax,in_fax,1)</FONT></FONT></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana><FONT size=3 face="Times New Roman"><FONT size=2
face=Verdana>; end of [ivr-10]<BR></FONT></DIV>
<DIV><FONT size=2 face=Verdana>.... E se eu quero deixar em um "custom" o menu
de opções de discagem ["exten =>
s,n,Background(custom/ura-pt/ramal&custom/ura-pt/marketing&custom/ura-pt/farmacia&custom/ura-pt/laboratorio&custom/ura-pt/sistemas&custom/ura-pt/cobranca)"],
posso deixar somente essa linha no meu custom ou tenho que deixar todas as
linhas "s,n," ? Se tiver que deixar todas as linhas "s,n,", como posso saber que
serão executas na sequencia desejada?</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Muitissimo obrigado,</FONT></DIV>
<DIV><FONT size=2 face=Verdana>Juda Benhur.</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana> </DIV>
<DIV><BR></FONT><BR></FONT><BR></DIV></FONT></BODY></HTML>