3.2 SLA e Voicemail
Este é um exemplo de como você pode configurar uma caixa de voicemail simples para o sistema telefone. O número da caixa voicemail usado neste exemplo é 1234, que seria configurado no arquivo voicemail.conf.
Para esse exemplo, pressupõe que existem 2 troncos e 3 aparelhos. Os troncos são o Zap/1 e o Zap/2. Os aparelhos são SIP/station1, SIP/station2 e SIP/station3.
No arquivo zapata.conf, o canal 1 tem o parâmetro context=line1 e o canal 2 tem context=line2. No arquivo sip.conf, todos os três aparelhos são configurados com context=sla_stations.
Quando os aparelhos pegam seus telefones para discar, eles são permitidos discar números NANP para ligações saintes ou 8500 para verificar a caixa de voicemail.
sla.conf:
[line1]
type=trunk
device=Local/disa@line1_outbound
[line2]
type=trunk
device=Local/disa@line2_outbound
[station](!)
type=station
trunk=line1
trunk=line2
[station1](station)
device=SIP/station1
[station2](station)
device=SIP/station2
[station3](station)
device=SIP/station3
extensions.conf:
[macro-slaline]
exten => s,1,SLATrunk(${ARG1})
exten => s,n,Goto(s-${SLATRUNK_STATUS}|1)
exten => s-FAILURE,1,Voicemail(1234|u)
exten => s-UNANSWERED,1,Voicemail(1234|u)
[line1]
exten => s,1,Macro(slaline|line1)
[line2]
exten => s,2,Macro(slaline|line2)
[line1_outbound]
exten => disa,1,Disa(no-password|line1_outbound)
exten => _1NXXNXXXXXX,1,Dial(Zap/1/${EXTEN})
exten => 8500,1,VoicemailMain(1234)
[line2_outbound]
exten => disa,1,Disa(no-password|line2_outbound)
exten => _1NXXNXXXXXX,1,Dial(Zap/2/${EXTEN})
exten => 8500,1,VoicemailMain(1234)
[sla_stations]
exten => station1,1,SLAStation(station1)
exten => station1_line1,hint,
exten => station1_line1,1,SLAStation(station1_line1)
exten => station1_line2,hint,
exten => station1_line2,1,SLAStation(station1_line2)
exten => station2,1,SLAStation(station2)
exten => station2_line1,hint,
exten => station2_line1,1,SLAStation(station2_line1)
exten => station2_line2,hint,
exten => station2_line2,1,SLAStation(station2_line2)
exten => station3,1,SLAStation(station3)
exten => station3_line1,hint,
exten => station3_line1,1,SLAStation(station3_line1)
exten => station3_line2,hint,
exten => station3_line2,1,SLAStation(station3_line2)
Nenhum comentário:
Postar um comentário