[AsteriskBrasil] RES: RES: RES: RES: Problemas com DialPlan

Felipe Silva fr.paes em uol.com.br
Domingo Março 5 09:47:08 BRT 2006


Ola amigo !

A config da rota para a ZAP do meu AMP esta assim:
http://www.geocities.com/frps 

Abraços

Felipe Rafael
-----Mensagem original-----
De: asteriskbrasil-bounces em listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces em listas.asteriskbrasil.org] Em nome de Lucio
Gonzalez
Enviada em: domingo, 5 de março de 2006 08:12
Para: asteriskbrasil em listas.asteriskbrasil.org
Assunto: Re: [AsteriskBrasil] RES: RES: RES: Problemas com DialPlan


Eu fiz uma Rota pelo AMP com XXXXXXXXXXXXX para minha ZAP e as ligações
discando 0145432781664 por exemplo funciona OK.
Aqui a Tua rrota tem que ser exten => _0XXNXXXXXXX
Porem queria fazer ligações locais direto exemplo 32781664 sem o 01454.

Tentei adiciona uma rota XXXXXXXX mas não adianta.
Aqui exten => _NXXXXXXX

Como teria que fazer meu plano de discagem?


O Log quando disco direto 32781664.

36;40mPlayback("SIP/9600-a4cb", "pls-try-call-later") in new stack
-- Playing 'pls-try-call-later' (language 'en')
Verbosity is at least 3
-- Executing Macro("SIP/9600-a4cb", "hangupcall") in new stack
-- Executing ResetCDR("SIP/9600-a4cb", "w") in new stack
-- Executing NoCDR("SIP/9600-a4cb", "") in new stack
-- Executing Wait("SIP/9600-a4cb", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/9600-a4cb' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on
'SIP/9600-a4cb' in macro 'outisbusy'
== Spawn extension (from-internal, 32781664, 2) exited non-zero on
'SIP/9600-a4cb'
-- Executing Macro("SIP/9600-a4cb", "hangupcall") in new stack
-- Executing ResetCDR("SIP/9600-a4cb", "w") in new stack
-- Executing NoCDR("SIP/9600-a4cb", "") in new stack
-- Executing Wait("SIP/9600-a4cb", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/9600-a4cb' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/9600-a4cb'
asterisk1*CLI>
[root em asterisk1 asterisk]# asterisk -r
Asterisk 1.2.2, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster em digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.2 currently running on asterisk1 (pid = 2758)
Verbosity is at least 3
-- Executing Macro("SIP/9600-9b32", "dialout-trunk|1|32781664|") in new
stack
-- Executing GotoIf("SIP/9600-9b32", "1?3:2)") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("SIP/9600-9b32", "user-callerid") in new stack
-- Executing DBget("SIP/9600-9b32", "AMPUSER=DEVICE/9600/user") in new
stack
-- DBget: varname=AMPUSER, family=DEVICE, key=9600/user
-- DBget: set variable AMPUSER to 9600
-- Executing DBget("SIP/9600-9b32",
"AMPUSERCIDNAME=AMPUSER/9600/cidname") in new stack
-- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=9600/cidname
-- DBget: set variable AMPUSERCIDNAME to PDH
-- Executing GotoIf("SIP/9600-9b32", "0?5") in new stack
-- Executing SetCallerID("SIP/9600-9b32", ""PDH" <9600>") in new stack
-- Executing NoOp("SIP/9600-9b32", "Using CallerID "PDH" <9600>") in new
stack
-- Executing Macro("SIP/9600-9b32", "record-enable|9600|OUT") in new
stack
-- Executing GotoIf("SIP/9600-9b32", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("SIP/9600-9b32",
"recordingcheck|20060303-133454|1141410894.22") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20060303-133454|1141410894.22: Outbound recording not
enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/9600-9b32", "No recording needed") in new stack
-- Executing Macro("SIP/9600-9b32", "outbound-callerid|1") in new stack
-- Executing DBget("SIP/9600-9b32",
"USEROUTCID=AMPUSER/9600/outboundcid") in new stack
-- DBget: varname=USEROUTCID, family=AMPUSER, key=9600/outboundcid
-- DBget: set variable USEROUTCID to PDH <5432789600>
-- Executing GotoIf("SIP/9600-9b32", "1?4") in new stack
-- Goto (macro-outbound-callerid,s,4)
-- Executing GotoIf("SIP/9600-9b32", "0?6") in new stack
-- Executing SetCallerID("SIP/9600-9b32", "PDH <5432789600>") in new
stack
-- Executing NoOp("SIP/9600-9b32", "CallerID set to "PDH" <5432789600>")
in new stack
-- Executing SetGroup("SIP/9600-9b32", "OUT_1") in new stack
-- Executing CheckGroup("SIP/9600-9b32", "30") in new stack
-- Executing SetVar("SIP/9600-9b32", "DIAL_NUMBER=32781664") in new
stack
-- Executing SetVar("SIP/9600-9b32", "DIAL_TRUNK=1") in new stack
-- Executing AGI("SIP/9600-9b32", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
-- AGI Script fixlocalprefix completed, returning 0
-- Executing SetVar("SIP/9600-9b32", "OUTNUM=32781664") in new stack
-- Executing Cut("SIP/9600-9b32", "custom=OUT_1|:|1") in new stack
-- Executing GotoIf("SIP/9600-9b32", "0?16") in new stack
-- Executing Dial("SIP/9600-9b32", "ZAP/g1/32781664") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/32781664
-- Channel 0/1, span 1 got hangup request
-- Hungup 'Zap/1-1'
== No one is available to answer at this time (1:0/0/0)
-- Executing Goto("SIP/9600-9b32", "s-NOANSWER|1") in new stack
-- Goto (macro-dialout-trunk,s-NOANSWER,1)
-- Executing NoOp("SIP/9600-9b32", "Dial failed due to NOANSWER") in new
stack
-- Executing Macro("SIP/9600-9b32", "outisbusy") in new stack
-- Executing Playback("SIP/9600-9b32", "all-circuits-busy-now") in new
stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing Playback("SIP/9600-9b32", "pls-try-call-later") in new
stack
-- Playing 'pls-try-call-later' (language 'en')
-- Executing Macro("SIP/9600-9b32", "hangupcall") in new stack
-- Executing ResetCDR("SIP/9600-9b32", "w") in new stack
-- Executing NoCDR("SIP/9600-9b32", "") in new stack
-- Executing Wait("SIP/9600-9b32", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/9600-9b32' in macro 'hangupcall'
== Spawn extension (macro-outisbusy, s, 3) exited non-zero on
'SIP/9600-9b32' in macro 'outisbusy'
== Spawn extension (from-internal, 32781664, 2) exited non-zero on
'SIP/9600-9b32'
-- Executing Macro("SIP/9600-9b32", "hangupcall") in new stack
-- Executing ResetCDR("SIP/9600-9b32", "w") in new stack
-- Executing NoCDR("SIP/9600-9b32", "") in new stack
-- Executing Wait("SIP/9600-9b32", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/9600-9b32' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/9600-9b32'


_______________________________________________
LIsta de discussões AsteriskBrasil.org
AsteriskBrasil em listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

_______________________________________________
Acesse o  wiki AsteriskBrasil.org:
http://www.asteriskbrasil.org

_______________________________________________
LIsta de discussões AsteriskBrasil.org
AsteriskBrasil em listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

_______________________________________________
Acesse o  wiki AsteriskBrasil.org:
http://www.asteriskbrasil.org

_______________________________________________
LIsta de discussões AsteriskBrasil.org
AsteriskBrasil em listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

_______________________________________________
Acesse o  wiki AsteriskBrasil.org:
http://www.asteriskbrasil.org

_______________________________________________
LIsta de discussões AsteriskBrasil.org
AsteriskBrasil em listas.asteriskbrasil.org
http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil

_______________________________________________
Acesse o  wiki AsteriskBrasil.org:
http://www.asteriskbrasil.org




Mais detalhes sobre a lista de discussão AsteriskBrasil