[AsteriskBrasil] Atendimento Digital

Rafael Lucindo rafael em ad2.com.br
Sexta Junho 20 08:18:19 BRT 2008


continua sim, ja estava habilitado!

saca só, a linha chega direto na placa X100P, ele
atende tudo e tal, mas nao reconhece os DTMF.

Via sip ele funciona perfeito!

segue abaixo as confs. do zapata.conf, zaptel.conf e a extension

zaptel.conf
=======
fxsks=1
loadzone        = br
defaultzone     = br

zapata.conf
=======
[channels]
context=entrada
signalling=fxs_ks
callerid=asreceived
mailbox=
group=0
relaxdtmf=yes
busydetect=no
channel => 1

extensions.conf
==========
[entrada]
    exten => s,1, Answer
    exten => s,2, GoTo(valida_funcionario,s,1)

[valida_funcionario]

exten => s,1,PlayBack(dig_funcionario)
exten => s,2,Read(digi_func,,4,,,30000)
exten => s,3,System(echo ${digi_func} >
/usr/share/asterisk/agi-bin/funcionario.txt)
exten => s,4,PlayBack(dig_senha)
exten => s,5,Read(digi_senha,,5,,,30000)
exten => s,6,System(echo ${digi_senha} >
/usr/share/asterisk/agi-bin/senha.txt)
exten => s,7,Agi,valida_funcionario.php


Tambem estou postando aqui o debug do console do asterisk

    -- Starting simple switch on 'Zap/1-1'
Jun 19 10:30:40 NOTICE[21503]: chan_zap.c:6195 ss_thread: Got event 18 (Ring
Begin)...
Jun 19 10:30:41 NOTICE[21503]: chan_zap.c:6195 ss_thread: Got event 2
(Ring/Answered)...
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing Goto("Zap/1-1", "valida_funcionario|s|1") in new stack
    -- Goto (valida_funcionario,s,1)
    -- Executing Playback("Zap/1-1", "dig_funcionario") in new stack
    -- Playing 'dig_funcionario' (language 'en')
    -- Executing Read("Zap/1-1", "digi_func||4|||30000") in new stack
    -- Accepting a maximum of 4 digits.


Obrigado



More information about the AsteriskBrasil mailing list