<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorted, thank you Mike :)<div class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On 10 Aug 2016, at 14:55, Michael Jerris <<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">check out the inline attribute <span class=""></span><br class=""><br class="">On Wednesday, August 10, 2016, Rick Jarvis <<a href="mailto:rick@magicmail.mooo.com" class="">rick@magicmail.mooo.com</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I have to admit, I’ve always struggled with conditions. <div class=""><br class=""></div><div class="">Here I’m trying to have a different close time on a Friday to the rest of the week. Ignore the resulting actions, that’s just for testing. It appears the issue is matching the variable. I’ve tried export instead of set as well. Can anyone tell me where I’m going wrong, or if this should work?</div><div class=""><br class=""></div><div class=""><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span class=""><include></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:16px" class=""><span class=""></span><br class=""></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><extension</span><span class=""> name="Time-of-day" continue="true"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><condition</span><span class=""> wday="6" time-of-day="09:00-16:30" break="never"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="set" data="officestatus=open"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><anti-action</span><span class=""> application="set" data="officestatus=closed"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></condition></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><condition</span><span class=""> wday="2-5" time-of-day="09:00-17:00"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="set" data="officestatus=open"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></condition></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></extension></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:16px" class=""><span class=""></span><br class=""></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><extension</span><span class=""> name="mainin"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><condition</span><span class=""> field="${officestatus}" expression="^open$"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="answer"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="playback" data="ivr/ivr-in_line.wav"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></condition></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></extension></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:16px" class=""><span class=""></span><br class=""></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><extension</span><span class=""> name="vmin"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><condition</span><span class=""> field="${officestatus}" expression="^closed$"</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="answer"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span style="color:#34bbc7" class=""><action</span><span class=""> application="playback" data="ivr/ivr-im_sorry.wav"/</span><span style="color:#34bbc7" class="">></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></condition></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span style="color:#f5f5f5" class=""> </span><span class=""></extension></span></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:16px" class=""><span class=""></span><br class=""></div><div style="margin:0px;line-height:normal;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0)" class=""><span class=""></include></span></div><div class=""><span class=""><br class=""></span></div>
R</div></div></blockquote>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>