Проговаривание личного ФИО сотрудника перед соединением из очереди

Skip to end of metadata
Go to start of metadata

Проговаривание личного ФИО сотрудника перед соединением из очереди

[working-time-manager]
exten => s,1,Answer
exten => s,n,Wait(1.5)
exten => s,n,Background(autospace/new/zdravstruite-eto-avtospace)
exten => s,n,Background(autospace/new/mi-zanimaemsa-prodajei-i-remontom)
exten => s,n,Background(autospace/new/${FROM_DID}-car)
exten => s,n,Goto(personal-q,${FROM_DID},1)
exten => i,1,Goto(personal-q,${FROM_DID},1)
[non-working-time-manager]
exten => s,1,Answer
exten => s,n,Wait(1.5)
exten => s,n,Background(autospace/new/zdravstruite-eto-avtospace)
exten => s,n,Background(autospace/new/mi-zanimaemsa-prodajei-i-remontom)
exten => s,n,Background(autospace/new/${FROM_DID}-car)
exten => s,n,Background(autospace/new/vi-pozvonili-v-nerabocee-vremea)
exten => s,n,Background(autospace/new/vi-mojete-perezvoniti-zavtra-ili-vm)
exten => s,n,Background(autospace/new/${FROM_DID}-name-i)
exten => s,n,Background(autospace/new/sveajetsa-pri-pervoi-vozmojnosti)
exten => s,n,VoiceMail(${FROM_DID}@dids|s)
exten => i,1,VoiceMail(${FROM_DID}@dids|s)
[personal-q]
; Try personal Q
exten => _X.,1,Ringing
exten => _X.,n,Set(car_number=${FROM_DID})
exten => _X.,n,Set(members=${QUEUE_MEMBER_LIST(${car_number})})
exten => _X.,n,Set(member=${CUT(members,\,,1)})
exten => _X.,n,Set(member_exten=${CUT(member,@,1)})
exten => _X.,n,Set(member_exten=${CUT(member_exten,/,2)})
exten => _X.,n,Set(sip_status=${DEVSTATE(SIP/${member_exten})})
exten => _X.,n,Set(phone_status=${DEVSTATE(Custom:DND${member_exten})})
exten => _X.,n,Set(member_status=${sip_status}+${phone_status})
exten => _X.,n,GotoIf($["${member_status}" = "NOT_INUSE+NOT_INUSE"]?avail:not-avail)
exten => _X.,n(avail),Playback(autospace/new/soidiniaem-s-managerom)
exten => _X.,n,Playback(autospace/new/${member_exten}-name-r)
exten => _X.,n,Dial(SIP/${member_exten},15,tr)
exten => _X.,n(not-avail),Goto(general-q,${EXTEN},1)
exten => h,1,ExecIf(${STAT(e,${MIXMON_DIR}${CALLFILENAME}.${MIXMON_FORMAT})}|Set|CDR(userfield)=${CALLFILENAME})
exten => h,n,Hangup
[general-q]
exten => _X.,1,Set(members=${QUEUE_MEMBER_LIST(3130000)})
exten => _X.,n(hunt),Set(member=${CUT(members,\,,1)}); take one
exten => _X.,n,Set(member=${CUT(members,\,,1)})
exten => _X.,n,Set(member=${CUT(member,@,1)})
exten => _X.,n,Set(members=${CUT(members,\,,2-)}); Reset members
exten => _X.,n,Set(member_exten=${CUT(member,/,2)})
exten => _X.,n,Set(sip_status=${DEVSTATE(SIP/${member_exten})})
exten => _X.,n,Set(phone_status=${DEVSTATE(Custom:DND${member_exten})})
exten => _X.,n,Set(member_status=${sip_status}+${phone_status})
exten => _X.,n,NoOp(${member_status})
exten => _X.,n,GotoIf($["${member_status}" = "NOT_INUSE+NOT_INUSE"]?avail:not-avail)
exten => _X.,n(avail),Playback(autospace/new/soidiniaem-s-managerom)
exten => _X.,n,Playback(autospace/new/${member_exten}-name-r)
exten => _X.,n,Macro(record-enable,${member_exten},IN)
exten => _X.,n,Dial(SIP/${member_exten},15,tr)
exten => _X.,n(not-avail),GotoIf($["${members}" = ""]?no-more)
exten => _X.,n,Goto(hunt)
exten => _X.,n(no-more),Ringing
exten => _X.,n,Set(reception_status=${DEVSTATE(SIP/101)})
exten => _X.,n,GotoIf($["${reception_status}" = "NOT_INUSE"]?reception-avail:reception-not-avail)
exten => _X.,n(reception-avail),Playback(autospace/new/k-sojaleniu-manager-sei4as-zaneata)
exten => _X.,n,Playback(autospace/new/podojdite-otveta-operatora)
exten => _X.,n,Macro(record-enable,101,IN)
exten => _X.,n,Set(member_exten=101)
exten => _X.,n,Dial(SIP/${member_exten},15,tr)
exten => _X.,n,Ringing
exten => _X.,n(reception-not-avail),Wait(10); Let wait sometime before retry
exten => _X.,n,Goto(1)
exten => h,1,ExecIf(${STAT(e,${MIXMON_DIR}${CALLFILENAME}.${MIXMON_FORMAT})}|Set|CDR(userfield)=${CALLFILENAME})
exten => h,n,Hangup
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.