[AsteriskBrasil] DDR Ocupado dá hungup

Marcelo Busana celobusana em gmail.com
Sábado Abril 23 14:32:58 BRT 2011


Pessoal,

Seguinte precisava de uma dica

*Ligações para um DDR ocupado*
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.
Eu queria que qndo o DDR estivesse ocupado a ligação fosse redirecionada
para a rota de entrada.
Ocorre que eu poderia fazer uma rota de entrada para cada DDR mas imagino
ter uma forma mais simples. Estou correto?
*Log abaixo*

*Liguei para o DDR 8622
A rota de entrada aponta para o ramal 8628
A interessante que isto aparece, mas ele não chama o 8628 (mesmo estando
liberado) e da um hungup*

     -- Accepting AUTHENTICATED call from 192.168.2.215:
       > requested format = alaw,
       > requested prefs = (alaw|ulaw|gsm),
       > actual format = ulaw,
       > host prefs = (ulaw|alaw|gsm),
       > priority = mine
    -- Executing [*8622*@from-pstn:1] Macro("IAX2/E1-6245",
"exten-vm,novm,8622") in new stack
    -- Executing [s em macro-exten-vm:1] Macro("IAX2/E1-6245",
"user-callerid,") in new stack
    -- Executing [s em macro-user-callerid:1] Set("IAX2/E1-6245",
"AMPUSER=47XXXXXXXX") in new stack
    -- Executing [s em macro-user-callerid:2] GotoIf("IAX2/E1-6245",
"0?report") in new stack
    -- Executing [s em macro-user-callerid:3] ExecIf("IAX2/E1-6245",
"1?Set(REALCALLERIDNUM=47XXXXXXXX)") in new stack
    -- Executing [s em macro-user-callerid:4] Set("IAX2/E1-6245", "AMPUSER=")
in new stack
    -- Executing [s em macro-user-callerid:5] Set("IAX2/E1-6245",
"AMPUSERCIDNAME=") in new stack
    -- Executing [s em macro-user-callerid:6] GotoIf("IAX2/E1-6245",
"1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s em macro-user-callerid:10] GotoIf("IAX2/E1-6245",
"0?continue") in new stack
    -- Executing [s em macro-user-callerid:11] Set("IAX2/E1-6245", "__TTL=64")
in new stack
    -- Executing [s em macro-user-callerid:12] GotoIf("IAX2/E1-6245",
"1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s em macro-user-callerid:19] NoOp("IAX2/E1-6245", "Using
CallerID "47XXXXXXXX" <47XXXXXXXX>") in new stack
    -- Executing [s em macro-exten-vm:2] Set("IAX2/E1-6245",
"RingGroupMethod=none") in new stack
    -- Executing [s em macro-exten-vm:3] Set("IAX2/E1-6245", "VMBOX=novm") in
new stack
    -- Executing [s em macro-exten-vm:4] Set("IAX2/E1-6245", "EXTTOCALL=8622")
in new stack
    -- Executing [s em macro-exten-vm:5] Set("IAX2/E1-6245", "CFUEXT=") in new
stack
    -- Executing [s em macro-exten-vm:6] Set("IAX2/E1-6245", "CFBEXT=") in new
stack
    -- Executing [s em macro-exten-vm:7] Set("IAX2/E1-6245", "RT=""") in new
stack
    -- Executing [s em macro-exten-vm:8] Macro("IAX2/E1-6245",
"record-enable,8622,IN") in new stack
    -- Executing [s em macro-record-enable:1] GotoIf("IAX2/E1-6245", "1?check")
in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s em macro-record-enable:4] ExecIf("IAX2/E1-6245",
"0?MacroExit()") in new stack
    -- Executing [s em macro-record-enable:5] GotoIf("IAX2/E1-6245",
"0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s em macro-record-enable:15] GotoIf("IAX2/E1-6245", "1?IN")
in new stack
    -- Goto (macro-record-enable,s,20)
    -- Executing [s em macro-record-enable:20] ExecIf("IAX2/E1-6245",
"1?MacroExit()") in new stack
    -- Executing [s em macro-exten-vm:9] Macro("IAX2/E1-6245",
"dial,,tTr,8622") in new stack
    -- Executing [s em macro-dial:1] GotoIf("IAX2/E1-6245", "1?dial") in new
stack
    -- Goto (macro-dial,s,3)
    -- Executing [s em macro-dial:3] AGI("IAX2/E1-6245", "dialparties.agi") in
new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
    -- IAX2/E1-25302 is ringing
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is '47XXXXXXXX' number is '47XXXXXXXX'
 dialparties.agi: Methodology of ring is  'none'
    -- dialparties.agi: Added extension 8622 to extension map
    -- dialparties.agi: Extension 8622 cf is disabled
    -- dialparties.agi: Extension 8622 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 1 (INUSE)
 dialparties.agi: Extension 8622 has ExtensionState: 1
    -- dialparties.agi: Checking CW and CFB status for extension 8622
 dialparties.agi: Extension 8622 is not available to be called
 dialparties.agi: Extension 8622 has call waiting disabled
    -- dialparties.agi: Filtered ARG3:
    -- <IAX2/E1-6245>AGI Script dialparties.agi completed, returning 0
    -- Executing [s em macro-dial:4] NoOp("IAX2/E1-6245", "Returned from
dialparties with no extensions to call and DIALSTATUS: BUSY") in new stack
    -- Executing [s em macro-exten-vm:10] GotoIf("IAX2/E1-6245",
"0?exit,return") in new stack
    -- Executing [s em macro-exten-vm:11] Set("IAX2/E1-6245", "SV_DIALSTATUS=*
BUSY*") in new stack
    -- Executing [s em macro-exten-vm:12] GosubIf("IAX2/E1-6245", "0?docfu,1")
in new stack
    -- Executing [s em macro-exten-vm:13] GosubIf("IAX2/E1-6245", "0?docfb,1")
in new stack
    -- Executing [s em macro-exten-vm:14] Set("IAX2/E1-6245",
"DIALSTATUS=BUSY") in new stack
    -- Executing [s em macro-exten-vm:15] NoOp("IAX2/E1-6245", "Voicemail is
'novm'") in new stack
    -- Executing [s em macro-exten-vm:16] GotoIf("IAX2/E1-6245", "1?s-BUSY,1")
in new stack
    -- Goto (macro-exten-vm,s-BUSY,1)
    -- Executing [s-BUSY em macro-exten-vm:1] NoOp("IAX2/E1-6245", "Extension
is reporting BUSY and not passing to Voicemail") in new stack
    -- Executing [s-BUSY em macro-exten-vm:2] GotoIf("IAX2/E1-6245",
"0?exit,1") in new stack
    -- Executing [s-BUSY em macro-exten-vm:3] PlayTones("IAX2/E1-6245", "busy")
in new stack
    -- Executing [s-BUSY em macro-exten-vm:4] Busy("IAX2/E1-6245", "20") in new
stack
  == Spawn extension (macro-exten-vm, s-BUSY, 4) exited non-zero on
'IAX2/E1-6245' in macro 'exten-vm'
  == Spawn extension (from-pstn, 8622, 1) exited non-zero on 'IAX2/E1-6245'
    -- Executing [h em from-pstn:1] NoOp("IAX2/E1-6245", "Catch-All DID Match -
Found h - You probably want a DID for this.") in new stack
    -- Executing [h em from-pstn:2] Goto("IAX2/E1-6245", "ext-did,s,1") in new
stack
    -- Goto (ext-did,s,1)
    -- Executing [s em ext-did:1] Set("IAX2/E1-6245", "__FROM_DID=s") in new
stack
    -- Executing [s em ext-did:2] Gosub("IAX2/E1-6245",
"app-blacklist-check,s,1") in new stack
    -- Executing [s em app-blacklist-check:1] GotoIf("IAX2/E1-6245",
"0?blacklisted") in new stack
    -- Executing [s em app-blacklist-check:2] Set("IAX2/E1-6245",
"CALLED_BLACKLIST=1") in new stack
    -- Executing [s em app-blacklist-check:3] Return("IAX2/E1-6245", "") in new
stack
    -- Executing [s em ext-did:3] ExecIf("IAX2/E1-6245", "0
?Set(CALLERID(name)=47XXXXXXXX)") in new stack
    -- Executing [s em ext-did:4] Set("IAX2/E1-6245",
"__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [s em ext-did:5] Set("IAX2/E1-6245",
"CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [s em ext-did:6] Goto("IAX2/E1-6245",
"from-did-direct,8628,1") in new stack
    -- Goto (from-did-direct,8628,1)
    -- Executing [8628 em from-did-direct:1] Macro("IAX2/E1-6245",
"exten-vm,novm,8628") in new stack
    -- Executing [s em macro-exten-vm:1] Macro("IAX2/E1-6245",
"user-callerid,") in new stack
    -- Executing [s em macro-user-callerid:1] Set("IAX2/E1-6245",
"AMPUSER=47XXXXXXXX") in new stack
    -- Executing [8628 em from-did-direct:2] Goto("IAX2/E1-6245", ",return,1")
in new stack
    -- Goto (from-did-direct,return,1)
 *   -- Hungup 'IAX2/E1-6245'*
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20110423/354b5003/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil