[AsteriskBrasil] parking e includes
Josué Conti
josueconti em gmail.com
Domingo Novembro 27 13:30:52 BRT 2005
Pessoal, boa tarde. Estou com o seguinte problema: Tenho um 0800, que
chega num determinado ramal Sip, só que gostaria que no
extensions.conf, funcionasse uns includes de horarios (expediente e
final de expediente), mas não funciona, tipo o Asterisk, não entende
esses includes e segue para a macro de voicemail, quando está ocupado
e tbm no final de expediente, entra na queue e não na gravaçao de
final de expediente.Isso por que o código de deslogar o agente tbm não
funciona.Outro problema que estou enfrentando é a inclusão da
facilidade parking,(# + 700, e o asterisk retornaria com a extensão
onde está esta chamada) onde vc teria até 20 linhas para estacionar,
já habilitei no features.conf, mas tbm não funciona. Abaixo todas as
minhas programações, alguém poderia me ajudar? Desde já agradeço a
atenção.
agents.conf
[agents]
musiconhold => default
autologoff=600
ackcall=yes
;wrapuptime=5000
group=1
agent => 1000,1000,Paulo
agent => 1001,1001,Cris
agent => 1002,1002,Marcia
queues.conf
[general]
;[entrada]
[0800]
music=default
timeout=15
retry=5
wrapuptime=0
context = entrada
maxlen = 0
leavewhenempty=yes
joinempty=no
strategy=roundrobin
announce-frequency = 0
announce-holdtime = no
leavewhenempty = yes
queue-minutes = "queue-minutes"
queue-thankyou = "queue-thankyou"
member => Agent/1000
member => Agent/1001
member => Agent/1002
sip.conf
[1000]
type=friend
secret=1000
host=dynamic
canreinvite=no
regexten=1000
callerid="Paulo" <1000>
dtmfmode=rfc2833
callgroup=1
pickupgroup=2
nat=yes
amaflags=billing
maibox=1000
[1010]
type=friend
secret=1010
host=dynamic
regexten=1010
callerid="Piloto 0800" <1010>
dtmfmode=rfc2833
;context=default
callgroup=1
pickupgroup=2
nat=yes
amaflags=billing
mailbox=1010
[1001]
type=friend
secret=1001
host=dynamic
canreinvite=no
regexten=1001
callerid="Cris" <1001>
dtmfmode=rfc2833
callgroup=1
pickupgroup=2
nat=yes
amaflags=billing
mailbox=1001
[1002]
type=friend
secret=1002
host=dynamic
canreinvite=no
regexten=1002
callerid="Marcia" <1002>
dtmfmode=rfc2833
callgroup=1
pickupgroup=2
nat=yes
amaflags=billing
mailbox=1002
extensions.conf
[default]
;SIP
exten=>5010,1,macro(voicemail,sip/${EXTEN},${EXTEN})
exten=>5014,1,macro(voicemail,sip/${EXTEN},${EXTEN})
exten=>_1xxx,1,macro(voicemail,sip/${EXTEN},${EXTEN})
;call 0300
exten=>_0300.,1,dial(Unicall/g1/${EXTEN},)
;call 0800
exten=>_0800.,1,dial(Unicall/g1/${EXTEN},)
;LOCAL
exten=>_xxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
exten=>_xxxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
exten=>_xxxxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
;VC1
exten=>_7xxxxxxx,1,dial(Unicall/g1/${EXTEN})
exten=>_8xxxxxxx,1,dial(Unicall/g1/${EXTEN})
exten=>_9xxxxxxx,1,dial(Unicall/g1/${EXTEN})
;DDD
exten=>_xxxxxxxxx,1,dial(Unicall/g1/021${EXTEN})
exten=>_xxxxxxxxxx,1,dial(Unicall/g1/021${EXTEN})
exten=>_xxxxxxxxxxxx,1,dial(Unicall/g1/021${EXTEN})
;DDI
exten=>_00xxxxxxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
exten=>_00xxxxxxxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
exten=>_00xxxxxxxxxxxxx,1,dial(Unicall/g1/${EXTEN},30)
;[entrada]
include => expediente|08:50-17:10|mon-fri|*|*
include => foradoexpediente|17:10-23:59|mon-fri|*|*
include => foradoexpediente|00:00-08:49|mon-fri|*|*
include => foradoexpediente|*|sat-sun|*|*
;[expediente]
exten=>_1010,1,Queue(0800)
exten=>_1010,2,Playback(agentesocupados)
exten=>_1010,3,WaitMusicOnHold(30)
exten=>_1010,4,Playback(agentesocupados)
exten=>_1010,5,Queue(0800)
;[foradoexpediente]
exten=>s,1,Playback(fimdeexpediente)
exten=>s,2,Hangup
gravacao de anuncio - ocupado
exten=>9000,1,wait(2)
exten=>9000,2,record(agentesocupados:gsm)
exten=>9000,3,hangup
exten=>9002,1,playback(agentesocupados)
exten=>9002,2,playback(fimdeexpediente)
;gravacao de anuncio - final de expediente
exten=>9001,1,wait(2)
exten=>9001,2,record(fimdeexpediente:gsm)
exten=>9001,3,hangup
exten=>88,1,Wait,2
exten=>88,2,Agentcallbacklogin()
exten=>89,1,Wait,2
exten=>89,2,Removequeuemember(0800|sip/${CALLERIDNUM})
exten=>89,3,userevent(refreshqueue)
exten=>89,4,playback(agent-loggedoff)
exten=>89,5,hangup
;VOICEMAILMENU
exten=>99/_1xxx,1,voicemailmain(&{CALLERIDNUM})
exten=>99/_1xxx,2,Busy(3)
exten=>99/_1xxx,3,Hangup
[macro-voicemail]
exten=>s,1,Dial(${ARG1},30t)
exten=>s,2,voicemail(b${ARG2})
exten=>s,3,Hangup
exten=>s,102,voicemail(u${ARG2})
exten=>s,103,Hangup
include=>parkedcalls
features.conf
;
; Sample Parking configuration
;
[general]
parkext => 700 ; What ext. to dial to park
parkpos => 701-720 ; What extensions to park calls on
context => parkedcalls ; Which context parked calls are in
;parkingtime => 45 ; Number of seconds a call can be parked for
; (default is 45 seconds)
;transferdigittimeout => 3 ; Number of seconds to wait between
digits when transfering a call
;courtesytone = beep ; Sound file to play to the parked caller
; when someone dials a parked call
;adsipark = yes ; if you want ADSI parking announcements
pickupexten = *8 ; Configure the pickup extension. Default is *8
atxfer = #2 ; Transferencia assistida
Mais detalhes sobre a lista de discussão AsteriskBrasil