Re: [Freeswitch-users] Using Variables in Dialplans

2009-04-23 Thread Michael Collins
On Wed, Apr 22, 2009 at 5:20 PM, Chris Fowler ch...@fowler.cc wrote: Brian, Michael, Thanks for the help - I had read that but not fully comprehended it until you spun it the way you did. Here's what I ended up with - if there's optimization that could be done let me know. Happy to update

Re: [Freeswitch-users] Using Variables in Dialplans

2009-04-23 Thread Chris Fowler
, 2009 08:29 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Using Variables in Dialplans On Wed, Apr 22, 2009 at 5:20 PM, Chris Fowler ch...@fowler.cc wrote: Brian, Michael, Thanks for the help - I had read that but not fully comprehended it until you spun it the way

Re: [Freeswitch-users] Using Variables in Dialplans

2009-04-23 Thread Michael Collins
On Thu, Apr 23, 2009 at 1:07 PM, Chris Fowler ch...@fowler.cc wrote: I added a Wiki example on this. Hopefully it will help the next FreeSWITCHer… http://wiki.freeswitch.org/wiki/Time_of_Day_Routing Thanks - it definitely will help. Having the perspective of newer users seeking help

[Freeswitch-users] Using Variables in Dialplans

2009-04-22 Thread Chris Fowler
I have the following defined: !-- Billing Open? -- extension name=billing_open continue=true !-- man strftime - M-F, 9AM to 5PM -- condition field=${strftime(%w)} expression=^([1-5])$/ condition field=${strftime(%H%M)} expression=^((09|1[0-6])[0-5][0-9]|1700)$

Re: [Freeswitch-users] Using Variables in Dialplans

2009-04-22 Thread Brian West
This again? ;) Lets see if this helps! http://wiki.freeswitch.org/wiki/Dialplan_XML#Anatomy_of_the_XML_Dialplan The dialplan is not processed and executed line by line... its compiled and installed into the session before it goes into execute state. So you can't use set on one line then use

Re: [Freeswitch-users] Using Variables in Dialplans

2009-04-22 Thread Chris Fowler
[mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Wednesday, April 22, 2009 13:10 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Using Variables in Dialplans On Wed, Apr 22, 2009 at 12:19 PM, Chris Fowler ch...@fowler.cc wrote: I