[Freeswitch-users] TimeOfDay for company phone

mailinglist mailinglist at fribert.dk
Fri Jan 15 09:56:42 PST 2010


Hi Guys
 
Still working on my pfsense based freeswitch.
So far it's actually working really good, thanks to all the help on the mailinglist and the excellent tutorials, thankyou very much to all!
 
I'm trying to have one of the phonenumbers react on the TimeOfDay. I followed the guide in the wiki.
 
In public I have set it up to dial the local extension 8203 when the company phone rings.
So I put all this in the default.xml to have it process it:
 
 
   <extension name="Company-x8203">
     <condition field="destination_number" expression="^8203$">
       <action application="transfer" data="CompanyIn"/>
     </condition>
   </extension>
 
   <extension name="CompanyIn" continue="true">
     <condition field="destination_number" expression="^CompanyIn$"/>
     <condition wday="2-6"/>
     <condition minute-of-day="540-1020">
       <action application="set" data="Company_open=true"/>
       <action application="transfer" data="xfer-to-company"/>
       <anti-action application="set" data="Company_open=false"/>
       <anti-action application="transfer" data="xfer-to-company"/>
     </condition>
   </extension>
 
   <extension name="xfer-to-company">
     <condition field="destination_number" expression="^xfer-to-company$"/>
     <condition field="${Company_open}" expression="^true$">
       <action application="bridge" data="group/company@${domain_name}"/ ( 'mailto:group/company@$domain_name"/' )>
       <action application="answer"/>
       <action application="sleep" data="2000"/>
       <action application="voicemail" data="default ${domain_name} 1011"/>
       <anti-action application="voicemail" data="default ${domain_name} 1011"/>
     </condition>
   </extension>
But it doesn't react on the time. I'm wondering if wday and minute-of-day is working on the pfsense package, as far as I know it's version 0.9.5?
 
Any input on this?
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100115/bed55349/attachment-0002.html 


More information about the FreeSWITCH-users mailing list