<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>utiliza follow-me<br><br><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"Marcelo Busana" &lt;celobusana@gmail.com&gt;<br><b>Para: </b>asteriskbrasil@listas.asteriskbrasil.org<br><b>Enviadas: </b>Quarta-feira, 11 de Maio de 2011 13:18:49<br><b>Assunto: </b>[AsteriskBrasil] DDR Ocupado dá hungup<br><br><div class="gmail_quote">Pessoal,<div><br></div><div>Seguinte precisava de uma dica<br><br><b>Ligações para um DDR ocupado</b><br>Qndo um DDR esta ocupado e outra ligação é efetuada para ele simplesmente a ligação recebem um hangup e que esta ligando fica com o telefone mudo, nem tom de ocupado nem nada.<br>

Eu queria que qndo o DDR estivesse ocupado a ligação fosse redirecionada para a rota de entrada.</div><div>Ocorre que eu poderia fazer uma rota de entrada para cada DDR mas imagino ter uma forma mais simples. Estou correto?</div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">Estrutura: Tenho um Servidor com placa E1 conectado por IAX a outro Servidor que tem os ramais.</span></div>

<div><i>Log abaixo</i><br><br><span style="background-color: rgb(255, 255, 0);"><b>Liguei para o DDR 8622, que esta ocupado<br>A rota de entrada aponta para o ramal 8628<br>A interessante que isto aparece, mas ele não chama o 8628 (mesmo estando liberado) e da um hungup</b></span></div>

<div><br></div><div><div>&nbsp;&nbsp;&nbsp; &nbsp;-- Accepting AUTHENTICATED call from <a href="http://192.168.2.215" target="_blank">192.168.2.215</a>:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &gt; requested format = alaw,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &gt; requested prefs = (alaw|ulaw|gsm),</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &gt; actual format = ulaw,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &gt; host prefs = (ulaw|alaw|gsm),</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &gt; priority = mine</div><div>&nbsp;&nbsp; &nbsp;-- Executing [<span style="background-color: rgb(255, 255, 0);"><b>8622</b></span>@from-pstn:1] Macro("IAX2/E1-6245", "exten-vm,novm,8622") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:1] Macro("IAX2/E1-6245", "user-callerid,") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:1] Set("IAX2/E1-6245", "AMPUSER=47XXXXXXXX") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:2] GotoIf("IAX2/E1-6245", "0?report") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:3] ExecIf("IAX2/E1-6245", "1?Set(REALCALLERIDNUM=47XXXXXXXX)") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:4] Set("IAX2/E1-6245", "AMPUSER=") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:5] Set("IAX2/E1-6245", "AMPUSERCIDNAME=") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:6] GotoIf("IAX2/E1-6245", "1?report") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (macro-user-callerid,s,10)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:10] GotoIf("IAX2/E1-6245", "0?continue") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:11] Set("IAX2/E1-6245", "__TTL=64") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:12] GotoIf("IAX2/E1-6245", "1?continue") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Goto (macro-user-callerid,s,19)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:19] NoOp("IAX2/E1-6245", "Using CallerID "47XXXXXXXX" &lt;47XXXXXXXX&gt;") in new stack</div><div>

&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:2] Set("IAX2/E1-6245", "RingGroupMethod=none") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:3] Set("IAX2/E1-6245", "VMBOX=novm") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:4] Set("IAX2/E1-6245", "EXTTOCALL=8622") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:5] Set("IAX2/E1-6245", "CFUEXT=") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:6] Set("IAX2/E1-6245", "CFBEXT=") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:7] Set("IAX2/E1-6245", "RT=""") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:8] Macro("IAX2/E1-6245", "record-enable,8622,IN") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-record-enable:1] GotoIf("IAX2/E1-6245", "1?check") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Goto (macro-record-enable,s,4)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-record-enable:4] ExecIf("IAX2/E1-6245", "0?MacroExit()") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-record-enable:5] GotoIf("IAX2/E1-6245", "0?Group:OUT") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Goto (macro-record-enable,s,15)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-record-enable:15] GotoIf("IAX2/E1-6245", "1?IN") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (macro-record-enable,s,20)</div><div>

&nbsp;&nbsp; &nbsp;-- Executing [s@macro-record-enable:20] ExecIf("IAX2/E1-6245", "1?MacroExit()") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:9] Macro("IAX2/E1-6245", "dial,,tTr,8622") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-dial:1] GotoIf("IAX2/E1-6245", "1?dial") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (macro-dial,s,3)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-dial:3] AGI("IAX2/E1-6245", "dialparties.agi") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi</div><div>&nbsp;&nbsp; &nbsp;-- IAX2/E1-25302 is ringing</div><div>&nbsp;dialparties.agi: Starting New Dialparties.agi</div><div>&nbsp;dialparties.agi: Caller ID name is '47XXXXXXXX' number is '47XXXXXXXX'</div>

<div>&nbsp;dialparties.agi: Methodology of ring is &nbsp;'none'</div><div>&nbsp;&nbsp; &nbsp;-- dialparties.agi: Added extension 8622 to extension map</div><div>&nbsp;&nbsp; &nbsp;-- dialparties.agi: Extension 8622 cf is disabled</div><div>&nbsp;&nbsp; &nbsp;-- dialparties.agi: Extension 8622 do not disturb is disabled</div>

<div>&nbsp;dialparties.agi: EXTENSION_STATE: 1 (INUSE)</div><div>&nbsp;dialparties.agi: Extension 8622 has ExtensionState: 1</div><div>&nbsp;&nbsp; &nbsp;-- dialparties.agi: Checking CW and CFB status for extension 8622</div><div>&nbsp;dialparties.agi: Extension 8622 is not available to be called</div>

<div>&nbsp;dialparties.agi: Extension 8622 has call waiting disabled</div><div>&nbsp;&nbsp; &nbsp;-- dialparties.agi: Filtered ARG3:</div><div>&nbsp;&nbsp; &nbsp;-- &lt;IAX2/E1-6245&gt;AGI Script dialparties.agi completed, returning 0</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-dial:4] NoOp("IAX2/E1-6245", "Returned from dialparties with no extensions to call and DIALSTATUS: BUSY") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:10] GotoIf("IAX2/E1-6245", "0?exit,return") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:11] Set("IAX2/E1-6245", "SV_DIALSTATUS=<span style="background-color: rgb(255, 255, 0);"><b>BUSY</b></span>") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:12] GosubIf("IAX2/E1-6245", "0?docfu,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:13] GosubIf("IAX2/E1-6245", "0?docfb,1") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:14] Set("IAX2/E1-6245", "DIALSTATUS=BUSY") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:15] NoOp("IAX2/E1-6245", "Voicemail is 'novm'") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:16] GotoIf("IAX2/E1-6245", "1?s-BUSY,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (macro-exten-vm,s-BUSY,1)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s-BUSY@macro-exten-vm:1] NoOp("IAX2/E1-6245", "Extension is reporting BUSY and not passing to Voicemail") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s-BUSY@macro-exten-vm:2] GotoIf("IAX2/E1-6245", "0?exit,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s-BUSY@macro-exten-vm:3] PlayTones("IAX2/E1-6245", "busy") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s-BUSY@macro-exten-vm:4] Busy("IAX2/E1-6245", "20") in new stack</div><div>&nbsp;&nbsp;== Spawn extension (macro-exten-vm, s-BUSY, 4) exited non-zero on 'IAX2/E1-6245' in macro 'exten-vm'</div>

<div>&nbsp;&nbsp;== Spawn extension (from-pstn, 8622, 1) exited non-zero on 'IAX2/E1-6245'</div><div>&nbsp;&nbsp; &nbsp;-- Executing [h@from-pstn:1] NoOp("IAX2/E1-6245", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [h@from-pstn:2] Goto("IAX2/E1-6245", "ext-did,s,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (ext-did,s,1)</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:1] Set("IAX2/E1-6245", "__FROM_DID=s") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:2] Gosub("IAX2/E1-6245", "app-blacklist-check,s,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@app-blacklist-check:1] GotoIf("IAX2/E1-6245", "0?blacklisted") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@app-blacklist-check:2] Set("IAX2/E1-6245", "CALLED_BLACKLIST=1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@app-blacklist-check:3] Return("IAX2/E1-6245", "") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:3] ExecIf("IAX2/E1-6245", "0 ?Set(CALLERID(name)=47XXXXXXXX)") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:4] Set("IAX2/E1-6245", "__CALLINGPRES_SV=allowed_not_screened") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:5] Set("IAX2/E1-6245", "CALLERPRES()=allowed_not_screened") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@ext-did:6] Goto("IAX2/E1-6245", "from-did-direct,8628,1") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-<font style="background-color: rgb(255, 255, 255);" color="#ff0000">- Goto (from-did-direct,8628,1)</font></div><div>&nbsp;&nbsp; &nbsp;-- Executing [8628@from-did-direct:1] Macro("IAX2/E1-6245", "exten-vm,novm,8628") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-exten-vm:1] Macro("IAX2/E1-6245", "user-callerid,") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Executing [s@macro-user-callerid:1] Set("IAX2/E1-6245", "AMPUSER=47XXXXXXXX") in new stack</div>

<div>&nbsp;&nbsp; &nbsp;-- Executing [8628@from-did-direct:2] Goto("IAX2/E1-6245", ",return,1") in new stack</div><div>&nbsp;&nbsp; &nbsp;-- Goto (from-did-direct,return,1)</div><div>&nbsp;<font style="background-color: rgb(204, 0, 0);" color="#ffffff"><b>&nbsp; &nbsp;-- Hungup 'IAX2/E1-6245'</b></font></div>

</div><div><br></div><div><br></div><div><br></div>
</div><br>
<br>_______________________________________________<br>KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. <br>- Hardware com alta disponibilidade de recursos e qualidade KHOMP<br>- Suporte técnico local qualificado e gratuito <br>Conheça a linha completa de produtos KHOMP em www.khomp.com.br<br>_______________________________________________<br>DIGIVOICE: Lider no mercado de placas para Asterisk<br>Único fabricante com Centro de Treinamento especializado.<br>LANÇAMENTO: Channel Bank TDMoE, até 64 canais FXS / FXO. <br>www.digivoice.com.br ou (11)3016-5200.<br>________<br>Lista de discussões AsteriskBrasil.org<br>AsteriskBrasil@listas.asteriskbrasil.org<br>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil<br>______________________________________________<br>Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</div><br></div></body></html>