|
Voici mes parametres actuels sur le server telephonique :
/etc/asterisk/sip_general_custom.conf
notifyringing=yes
notifybusy=yes
notifyhold=yes
limitonpeers=yes
#subscribecontext=blf
|
/etc/asterisk/extensions_custom.conf
Le fichier complet, j’ai juste rajouté la section [blf] :
; This file contains the contexts the agents login for the module call center.
; and contains the context conferences for module conferences of elastix 1.0.
[blf]
exten => *280,hint,Custom:DAYNIGHT0
#[app-daynight-toggle]
#exten => *280,hint,Custom:DAYNIGHT0
#[from-internal]
#exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
#exten => 1234,2,Hangup()
#exten => h,1,Hangup()
#include => agentlogin
#include => conferences
#include => calendar-event
#include => weather-wakeup
#exten => *280,1,Answer
#exten => *280,n,Set(miscapps:miscapp_2)=BUSY)
#exten => *280,hint,miscapps:miscapp_2
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
include => agentlogin
include => conferences
include => calendar-event
include => weather-wakeup
##exten => *280,n,Goto(app-daynight-toggle,s,1)
##exten => *280,hint,Custom:DAYNIGHT0
#exten => s,1,Set(DAYNIGHTMODE=${DB(DAYNIGHT/C${INDEX})})
#exten => *280,1,Answer
#exten => *280,n,Set(miscapps:miscapp_2)=BUSY)
#exten => *280,hint,miscapps:miscapp_2
[agentlogin]
exten => _*8888.,1,Set(AGENTNUMBER=${EXTEN:5})
exten => _*8888.,n,NoOp(AgentNumber is ${AGENTNUMBER})
exten => _*8888.,n,AgentLogin(${AGENTNUMBER})
exten => _*8888.,n,Hangup()
[mm-announce]
exten => 9999,1,Set(CALLERID(name)="MMGETOUT")
exten => 9999,n,Answer
exten => 9999,n,Playback(conf-will-end-in)
exten => 9999,n,Playback(digits/5)
exten => 9999,n,Playback(minutes)
exten => 9999,n,Hangup
[conferences]
;Used by cbEnd script to play end of conference warning
exten => 5555,1,Answer
exten => 5555,n,Wait(3)
exten => 5555,n,CBMysql()
exten => 5555,n,Hangup
|
Voici maintenant un core show hints
core show hints
core show hints
-= Registered Asterisk Dial Plan Hints =-
203@ext-local : SIP/203&Custom:DND20 State:Unavailable Watchers 2
202@ext-local : SIP/202&Custom:DND20 State:Idle Watchers 1
201@ext-local : SIP/201&Custom:DND20 State:Idle Watchers 1
*740202@ext-cf-hints : Custom:DEVCF202 State:Idle Watchers 0
*740203@ext-cf-hints : Custom:DEVCF203 State:Idle Watchers 0
*740201@ext-cf-hints : Custom:DEVCF201 State:Idle Watchers 0
72@park-hints : park:72@parkedcalls State:Idle Watchers 0
73@park-hints : park:73@parkedcalls State:Idle Watchers 0
71@park-hints : park:71@parkedcalls State:Idle Watchers 0
76@park-hints : park:76@parkedcalls State:Idle Watchers 0
77@park-hints : park:77@parkedcalls State:Idle Watchers 0
74@park-hints : park:74@parkedcalls State:Idle Watchers 0
75@park-hints : park:75@parkedcalls State:Idle Watchers 0
78@park-hints : park:78@parkedcalls State:Idle Watchers 0
79@park-hints : park:79@parkedcalls State:Idle Watchers 0
851@ext-meetme : MeetMe:851 State:Idle Watchers 0
*21201@ext-findmefollow : Custom:FOLLOWME201 State:Idle Watchers 2
*21203@ext-findmefollow : Custom:FOLLOWME203 State:Idle Watchers 0
*21202@ext-findmefollow : Custom:FOLLOWME202 State:Idle Watchers 0
*76203@ext-dnd-hints : Custom:DEVDND203 State:Idle Watchers 0
*76202@ext-dnd-hints : Custom:DEVDND202 State:Idle Watchers 0
*76201@ext-dnd-hints : Custom:DEVDND201 State:Idle Watchers 0
*280@blf : Custom:DAYNIGHT0 State:InUse Watchers 0
*280@app-daynight-toggle : Custom:DAYNIGHT0 State:InUse Watchers 2
80@park-hints : park:80@parkedcalls State:Idle Watchers 0
----------------
- 25 hints registered
dialplan show app-daynight-toggle
|
dialplan show app-daynight-toggle
[ Context 'app-daynight-toggle' created by 'pbx_config' ]
'*280' => hint: Custom:DAYNIGHT0 [pbx_config]
1. Answer() [pbx_config]
2. Wait(1) [pbx_config]
3. Authenticate(2467,) [pbx_config]
4. Set(INDEX=0) [pbx_config]
5. Set(DAYREC=custom/repondeur-desactive) [pbx_config]
6. Set(NIGHTREC=custom/repondeur-active) [pbx_config]
7. Goto(app-daynight-toggle,s,1) [pbx_config]
's' => 1. Set(DAYNIGHTMODE=${DB(DAYNIGHT/C${INDEX})}) [pbx_config]
2. GotoIf($["${DAYNIGHTMODE}" = "NIGHT"]?day:night) [pbx_config]
[day] 3. Set(DB(DAYNIGHT/C${INDEX})=DAY) [pbx_config]
4. Set(DEVICE_STATE(Custom:DAYNIGHT${INDEX})=NOT_INUSE) [pbx_config]
[hook_day] 5. Playback(${DAYREC}) [pbx_config]
6. Hangup() [pbx_config]
[night] 7. Set(DB(DAYNIGHT/C${INDEX})=NIGHT) [pbx_config]
8. Set(DEVICE_STATE(Custom:DAYNIGHT${INDEX})=INUSE) [pbx_config]
[hook_night] 9. Playback(${NIGHTREC}) [pbx_config]
10. Hangup() [pbx_config]
Include => 'app-daynight-toggle-custom' [pbx_config]
-= 2 extensions (18 priorities) in 1 context. =-
Et voici mon fichier /etc/asterisk/extensions_additional.conf : section [app-daynight-toggle]
[app-daynight-toggle]
include => app-daynight-toggle-custom
exten => *280,1,Answer
exten => *280,n,Wait(1)
exten => *280,n,Authenticate(xxxxxx,)
exten => *280,n,Set(INDEX=0)
exten => *280,n,Set(DAYREC=custom/repondeur-desactive)
exten => *280,n,Set(NIGHTREC=custom/repondeur-active)
exten => *280,n,Goto(app-daynight-toggle,s,1)
exten => *280,hint,Custom:DAYNIGHT0
exten => s,1,Set(DAYNIGHTMODE=${DB(DAYNIGHT/C${INDEX})})
exten => s,n,GotoIf($["${DAYNIGHTMODE}" = "NIGHT"]?day:night)
exten => s,n(day),Set(DB(DAYNIGHT/C${INDEX})=DAY)
exten => s,n,Set(DEVICE_STATE(Custom:DAYNIGHT${INDEX})=NOT_INUSE)
exten => s,n(hook_day),Playback(${DAYREC})
exten => s,n,Hangup
exten => s,n(night),Set(DB(DAYNIGHT/C${INDEX})=NIGHT)
exten => s,n,Set(DEVICE_STATE(Custom:DAYNIGHT${INDEX})=INUSE)
exten => s,n(hook_night),Playback(${NIGHTREC})
exten => s,n,Hangup
; end of [app-daynight-toggle]
|