I have a call flow control that I want to use twice - I’d like to keep the ‘GUI version’ I’ve made with the front end, but is it possible to in dialplan code query the status of that control and then depending on its state send the call to different locations?
As in pseudocode
`exten => s,n,gotoif($["${day}"=“false”]?app-announcement,s,3) ;
?
EDIT
exten => s,n,Set(switchnr=${IF($["${DB(DAYNIGHT/C${i})}" = “NIGHT”]?${i}:“NULL”)})
exten => s,n,GotoIf($[${switchnr}!=“NULL”]?app-daynight,${switchnr},1:${default-dest})
Very similar to this, I guess! I just can’t translate that (which I’ve pinched from elsewhere on the forum) into dialplan I can use.
Thanks