exten => 01xxxxxxxxx,1,Verbose(${SIP_HEADER})
same => n,Verbose(${CALLERID(number)})
^^^ That doesn’t really do anything but log stuff… FreePBX logs stuff so yes this is possible
same => n,Answer()
same => n,Wait(1)
^^^ Depends on where you are putting the call
same => n,GotoIfTime(18:00-09:00,,,*?personne1)
same => n,GotoIfTime(12:30-13:30,,,*?personne1)
same => n,GotoIfTime(,sat-sun,,*?personne1)
^^^ Time conditions and time groups
same => n,Playback(accc)
^^^System recordings
;same => n,Set(foo=${CURL(http://bo.xxxxxxx.fr/estla.php?user=5)})
;same => n,NoOp(${foo})
;same => n,GotoIf($[${foo} = 1]?Cestla:Cpasla)
^^^random commented out dialplan… no need for that
same => n(Cestla),Dial(SIP/cor,45,tTkK)
^^^Outbound Route + Trunk or extension… depends what this hopes to dial
same => n(Cpasla),Set(foo=${CURL(http://bo.xxxxxxxx.fr/estla.php?user=2)})
same => n,NoOp(${foo})
same => n,GotoIf($[${foo} = 1]?Eestla:Epasla)
^^^No idea what your purpose is here…
same => n(Eestla),Dial(SIP/em,15,tTkK)
same => n(Epasla),Dial(SIP/so&SIP/em&SIP/co,15,tTkK)
same => n,Dial(SIP/Maison,15,tTkK)
same => n(personne1),VoiceMail(30@default,us)
^^^over all I am suprised some of this works now as it is kinda terrible inbound routes + extensions + ringgroups