[general]
priorityjumping=yes
[appels_entrants]
exten => s,1,set(NUM_APPELE=${CUT(CUT(SIP_HEADER(To),@,1),: ,2)})
;exten => s,n,gotoif(${NUM_APPELE}="0285521378"?entreprise,s ,1)
exten => s,n,agi(identification_praticien.agi,${NUM_APPELE} )
exten => s,n,gotoif(${PRATICIEN_ID}!=0?praticien,s,1)
exten => s,n,Answer
exten => s,n,Hangup
[praticien]
exten => s,1,macro(decroche)
exten => s,n(Accueil),playback(${SOUND_FILE},j)
exten => s,n,NoOp(Etat Playback : ${PLAYBACKSTATUS})
exten => s,n,goto(queuing)
exten => s,Accueil+101,playback(agent-alreadyon)
;exten => s,106,playback(defaut_pre-decroche)
exten => s,n(queuing),queue(patient-queue,htR)
exten => s,n,hangup