Hello @everyone,
This my IVR syntax :
exten => ${WEBMASTER_IN},1,NoOp(## Incoming Call from ${CALLERID(all)} ##)
same => n,GotoIfTime(9:00-13:00,mon-fri,*,*?incoming-open,s,1)
same => n,GotoIfTime(14:00-18:00,mon-fri,*,*?incoming-open,s,1)
same => n,Goto(incoming-closed,s,1)
same => n(incoming-open),NoOp(## Call during the hours office ##)
same => n,Ringing()
same => n,System(echo "--appel_sortant --- callerid : ${CALLERID(num)} ---- ${STRFTIME(${EPOCH},,%Y/%m/%d %H:%M:%S)} ----" >> /var/spool/asterisk/log/debug.txt)
same => n,Set(REC_FILE_NAME=OUT_${NOW}_${EXTEN}_${POSTE}.wav)
same => n,MixMonitor(${REC_FILE_NAME},b V(1))
same => n,Dial(PJSIP/100,20)
same => n,VoiceMail(100@default)
same => n,Hangup()
same => n(incoming-closed),NoOp(## Call during hours office's closed ##)
same => n,Playback(ivr/answering_file)
same => n,VoiceMail(100@default,u)
same => n,Handup()
But in the CLI console I have this message :
localhost*CLI>
== Setting global variable 'SIPDOMAIN' to '91.180.9.84'
-- Executing [028992018@from-external:1] NoOp("PJSIP/belgium-voip-0000008e", "## Incoming Call from "Arnold" <028085449> ##") in new stack
-- Executing [028992018@from-external:2] GotoIfTime("PJSIP/belgium-voip-0000008e", "9:00-13:00,mon-fri,*,*?incoming-open,s,1") in new stack
-- Executing [028992018@from-external:3] GotoIfTime("PJSIP/belgium-voip-0000008e", "14:00-18:00,mon-fri,*,*?incoming-open,s,1") in new stack
-- Goto (incoming-open,s,1)
[Sep 13 14:57:15] WARNING[13060][C-0000004c]: pbx.c:4418 __ast_pbx_run: Channel 'PJSIP/belgium-voip-0000008e' sent to invalid extension but no invalid handler: context,exten,priority=incoming-open,s,1
Someone knows what’s happen here ?