[AsteriskBrasil] Siga-me
luis
luis em dinamicca.com.br
Quarta Setembro 23 16:55:56 BRT 2009
Olá Lista!
Estou tentando implantar um siga-me porém estou com uns probleminhas...
Para entender melhor vou mostrar o siga-me e a macro disca do
extensions.conf
Obs: tenho banco de canais...
>>>extension.conf
[interno]
exten => 201,1,Macro(disca,36,${EXTEN})
exten => 202,1,Macro(disca,6,${EXTEN})
exten => 203,1,Macro(disca,7,${EXTEN})
exten => 204,1,Macro(disca,8,${EXTEN})
[sigateste]
;Ativar Siga-me
exten => _94.,1,NoCDR
exten => _94.,n,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:2})
exten => _94.,n,Playback(siga-me)
exten => _94.,n,Playback(ativado)
exten => _94.,n,Hangup
;Retirar Sita-me
exten => 93,1,NoCDR
exten => 93,2,DBdel(CFIM/${CALLERID(num)})
exten => 93,3,Playback(siga-me)
exten => 93,4,Playback(desativado)
exten => 93,5,Hangup
[macro-disca]
exten => s,1,Set(temp=${DB(CFIM/${ARG1})})
exten => s,n,GotoIf($["${temp}" = ""]?300)
exten => s,n,Dial(SIP/${temp},30,Tt) ;Se For Siga-me Interno
;exten => s,n,Dial(ZAP/g1/${temp},30,TtwW) ;Se For Siga-me Externo
exten => s,n,Dial(Zap/${ARG2},60,rtT)
exten => s,n,Hangup
exten => s,300,Dial(SIP/${ARG1},35,tT)
exten => s,n,Dial(ZAP/${ARG1},35,tT)
exten => s,n,Hangup()
Ai está a CLI
-- Ringing on port 9 - callstate=0
-- Answering port 9
-- Executing [1841 em entrada-e1:1] MixMonitor("DGV/9",
"5491824890-2009-09-23-16-39-59-1841.wav49|b") in new stack
-- Executing [1841 em entrada-e1:2] Answer("DGV/9", "") in new stack
-- Executing [1841 em entrada-e1:3] Dial("DGV/9", "sip/241|30|tT") in new
stack
-- Called 241
== Begin MixMonitor Recording DGV/9
-- SIP/241-08406cd8 is ringing
[Sep 23 16:40:00] NOTICE[2847]: chan_dgv.c:9601 event_handler:
dialplan_echo_thread Created(3) - port 9
-- SIP/243-b2f05eb8 answered DGV/9
[Sep 23 16:40:17] NOTICE[29980]: chan_dgv.c:12824 dgv_indicate:
dgv_indicate: ast_moh_start on port 9
-- Started music on hold, class 'default', on DGV/9
-- Executing [202 em cod:1] Macro("SIP/243-b2f07448", "disca|202|Ttr") in
new stack
-- Executing [s em macro-disca:1] Set("SIP/243-b2f07448", "temp=") in new
stack
-- Executing [s em macro-disca:2] GotoIf("SIP/243-b2f07448", "1?300") in
new stack
-- Goto (macro-disca,s,300)
-- Executing [s em macro-disca:300] Dial("SIP/243-b2f07448",
"SIP/202|35|tT") in new stack
[Sep 23 16:40:19] WARNING[29984]: chan_sip.c:2923 create_addr: No such host:
202
[Sep 23 16:40:19] WARNING[29984]: app_dial.c:1183 dial_exec_full: Unable to
create channel of type 'SIP' (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s em macro-disca:301] Dial("SIP/243-b2f07448",
"ZAP/202|35|tT") in new stack
[Sep 23 16:40:19] WARNING[29984]: app_dial.c:1183 dial_exec_full: Unable to
create channel of type 'ZAP' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s em macro-disca:302] Hangup("SIP/243-b2f07448", "") in new
stack
== Spawn extension (macro-disca, s, 302) exited non-zero on
'SIP/243-b2f07448' in macro 'disca'
== Spawn extension (macro-disca, s, 302) exited non-zero on
'SIP/243-b2f07448'
-- Stopped music on hold on DGV/9
== Spawn extension (entrada-e1, 1841, 3) exited non-zero on 'DGV/9'
== End MixMonitor Recording DGV/9
[Sep 23 16:40:25] NOTICE[29980]: chan_dgv.c:12205 dgv_hangup: Calling
dg_HangUp on port 9
Pelo que pude notar este 202 não poderia ser 202 teria que ser 6 zap/6
que ai sim tocaria o ramal 202
Obrigado pela atenção...
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20090923/eb2cf90b/attachment-0001.htm
Mais detalhes sobre a lista de discussão AsteriskBrasil