Vale comentar a estrutura:<br>Tenho um Servidor com placa E1 conectado por IAX a outro Servidor que tem os ramais.<br><br><div class="gmail_quote">2011/4/23 Marcelo Busana <span dir="ltr"><<a href="mailto:celobusana@gmail.com">celobusana@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span></span>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><i>Log abaixo</i><br><br><span style="background-color:rgb(255, 255, 0)"><b>Liguei para o DDR 8622<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> -- Accepting AUTHENTICATED call from <a href="http://192.168.2.215" target="_blank">192.168.2.215</a>:</div><div> > requested format = alaw,</div><div> > requested prefs = (alaw|ulaw|gsm),</div>
<div> > actual format = ulaw,</div><div> > host prefs = (ulaw|alaw|gsm),</div><div> > priority = mine</div><div> -- 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> -- Executing [s@macro-exten-vm:1] Macro("IAX2/E1-6245", "user-callerid,") in new stack</div><div> -- Executing [s@macro-user-callerid:1] Set("IAX2/E1-6245", "AMPUSER=47XXXXXXXX") in new stack</div>
<div> -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/E1-6245", "0?report") in new stack</div><div> -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/E1-6245", "1?Set(REALCALLERIDNUM=47XXXXXXXX)") in new stack</div>
<div> -- Executing [s@macro-user-callerid:4] Set("IAX2/E1-6245", "AMPUSER=") in new stack</div><div> -- Executing [s@macro-user-callerid:5] Set("IAX2/E1-6245", "AMPUSERCIDNAME=") in new stack</div>
<div> -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/E1-6245", "1?report") in new stack</div><div> -- Goto (macro-user-callerid,s,10)</div><div> -- Executing [s@macro-user-callerid:10] GotoIf("IAX2/E1-6245", "0?continue") in new stack</div>
<div> -- Executing [s@macro-user-callerid:11] Set("IAX2/E1-6245", "__TTL=64") in new stack</div><div> -- Executing [s@macro-user-callerid:12] GotoIf("IAX2/E1-6245", "1?continue") in new stack</div>
<div> -- Goto (macro-user-callerid,s,19)</div><div> -- Executing [s@macro-user-callerid:19] NoOp("IAX2/E1-6245", "Using CallerID "47XXXXXXXX" <47XXXXXXXX>") in new stack</div><div>
-- Executing [s@macro-exten-vm:2] Set("IAX2/E1-6245", "RingGroupMethod=none") in new stack</div><div> -- Executing [s@macro-exten-vm:3] Set("IAX2/E1-6245", "VMBOX=novm") in new stack</div>
<div> -- Executing [s@macro-exten-vm:4] Set("IAX2/E1-6245", "EXTTOCALL=8622") in new stack</div><div> -- Executing [s@macro-exten-vm:5] Set("IAX2/E1-6245", "CFUEXT=") in new stack</div>
<div> -- Executing [s@macro-exten-vm:6] Set("IAX2/E1-6245", "CFBEXT=") in new stack</div><div> -- Executing [s@macro-exten-vm:7] Set("IAX2/E1-6245", "RT=""") in new stack</div>
<div> -- Executing [s@macro-exten-vm:8] Macro("IAX2/E1-6245", "record-enable,8622,IN") in new stack</div><div> -- Executing [s@macro-record-enable:1] GotoIf("IAX2/E1-6245", "1?check") in new stack</div>
<div> -- Goto (macro-record-enable,s,4)</div><div> -- Executing [s@macro-record-enable:4] ExecIf("IAX2/E1-6245", "0?MacroExit()") in new stack</div><div> -- Executing [s@macro-record-enable:5] GotoIf("IAX2/E1-6245", "0?Group:OUT") in new stack</div>
<div> -- Goto (macro-record-enable,s,15)</div><div> -- Executing [s@macro-record-enable:15] GotoIf("IAX2/E1-6245", "1?IN") in new stack</div><div> -- Goto (macro-record-enable,s,20)</div><div>
-- Executing [s@macro-record-enable:20] ExecIf("IAX2/E1-6245", "1?MacroExit()") in new stack</div><div> -- Executing [s@macro-exten-vm:9] Macro("IAX2/E1-6245", "dial,,tTr,8622") in new stack</div>
<div> -- Executing [s@macro-dial:1] GotoIf("IAX2/E1-6245", "1?dial") in new stack</div><div> -- Goto (macro-dial,s,3)</div><div> -- Executing [s@macro-dial:3] AGI("IAX2/E1-6245", "dialparties.agi") in new stack</div>
<div> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi</div><div> -- IAX2/E1-25302 is ringing</div><div> dialparties.agi: Starting New Dialparties.agi</div><div> dialparties.agi: Caller ID name is '47XXXXXXXX' number is '47XXXXXXXX'</div>
<div> dialparties.agi: Methodology of ring is 'none'</div><div> -- dialparties.agi: Added extension 8622 to extension map</div><div> -- dialparties.agi: Extension 8622 cf is disabled</div><div> -- dialparties.agi: Extension 8622 do not disturb is disabled</div>
<div> dialparties.agi: EXTENSION_STATE: 1 (INUSE)</div><div> dialparties.agi: Extension 8622 has ExtensionState: 1</div><div> -- dialparties.agi: Checking CW and CFB status for extension 8622</div><div> dialparties.agi: Extension 8622 is not available to be called</div>
<div> dialparties.agi: Extension 8622 has call waiting disabled</div><div> -- dialparties.agi: Filtered ARG3:</div><div> -- <IAX2/E1-6245>AGI Script dialparties.agi completed, returning 0</div><div> -- 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> -- Executing [s@macro-exten-vm:10] GotoIf("IAX2/E1-6245", "0?exit,return") in new stack</div><div> -- 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> -- Executing [s@macro-exten-vm:12] GosubIf("IAX2/E1-6245", "0?docfu,1") in new stack</div><div> -- Executing [s@macro-exten-vm:13] GosubIf("IAX2/E1-6245", "0?docfb,1") in new stack</div>
<div> -- Executing [s@macro-exten-vm:14] Set("IAX2/E1-6245", "DIALSTATUS=BUSY") in new stack</div><div> -- Executing [s@macro-exten-vm:15] NoOp("IAX2/E1-6245", "Voicemail is 'novm'") in new stack</div>
<div> -- Executing [s@macro-exten-vm:16] GotoIf("IAX2/E1-6245", "1?s-BUSY,1") in new stack</div><div> -- Goto (macro-exten-vm,s-BUSY,1)</div><div> -- 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> -- Executing [s-BUSY@macro-exten-vm:2] GotoIf("IAX2/E1-6245", "0?exit,1") in new stack</div><div> -- Executing [s-BUSY@macro-exten-vm:3] PlayTones("IAX2/E1-6245", "busy") in new stack</div>
<div> -- Executing [s-BUSY@macro-exten-vm:4] Busy("IAX2/E1-6245", "20") in new stack</div><div> == Spawn extension (macro-exten-vm, s-BUSY, 4) exited non-zero on 'IAX2/E1-6245' in macro 'exten-vm'</div>
<div> == Spawn extension (from-pstn, 8622, 1) exited non-zero on 'IAX2/E1-6245'</div><div> -- 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> -- Executing [h@from-pstn:2] Goto("IAX2/E1-6245", "ext-did,s,1") in new stack</div><div> -- Goto (ext-did,s,1)</div><div> -- Executing [s@ext-did:1] Set("IAX2/E1-6245", "__FROM_DID=s") in new stack</div>
<div> -- Executing [s@ext-did:2] Gosub("IAX2/E1-6245", "app-blacklist-check,s,1") in new stack</div><div> -- Executing [s@app-blacklist-check:1] GotoIf("IAX2/E1-6245", "0?blacklisted") in new stack</div>
<div> -- Executing [s@app-blacklist-check:2] Set("IAX2/E1-6245", "CALLED_BLACKLIST=1") in new stack</div><div> -- Executing [s@app-blacklist-check:3] Return("IAX2/E1-6245", "") in new stack</div>
<div> -- Executing [s@ext-did:3] ExecIf("IAX2/E1-6245", "0 ?Set(CALLERID(name)=47XXXXXXXX)") in new stack</div><div> -- Executing [s@ext-did:4] Set("IAX2/E1-6245", "__CALLINGPRES_SV=allowed_not_screened") in new stack</div>
<div> -- Executing [s@ext-did:5] Set("IAX2/E1-6245", "CALLERPRES()=allowed_not_screened") in new stack</div><div> -- Executing [s@ext-did:6] Goto("IAX2/E1-6245", "from-did-direct,8628,1") in new stack</div>
<div> -<font color="#FF0000" style="background-color:rgb(255, 255, 255)">- Goto (from-did-direct,8628,1)</font></div><div> -- Executing [8628@from-did-direct:1] Macro("IAX2/E1-6245", "exten-vm,novm,8628") in new stack</div>
<div> -- Executing [s@macro-exten-vm:1] Macro("IAX2/E1-6245", "user-callerid,") in new stack</div><div> -- Executing [s@macro-user-callerid:1] Set("IAX2/E1-6245", "AMPUSER=47XXXXXXXX") in new stack</div>
<div> -- Executing [8628@from-did-direct:2] Goto("IAX2/E1-6245", ",return,1") in new stack</div><div> -- Goto (from-did-direct,return,1)</div><div> <font color="#FFFFFF" style="background-color:rgb(204, 0, 0)"><b> -- Hungup 'IAX2/E1-6245'</b></font></div>
</div><div><br></div><div><br></div><div><br></div>
</blockquote></div><br>