2
0

01_Talking_Clock.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <include>
  2. <extension name="Talking Clock Time" ><!--e.g. 10:56pm-->
  3. <condition field="destination_number" expression="^9170$">
  4. <action application="answer"/>
  5. <action application="sleep" data="1000"/>
  6. <action application="say" data="en CURRENT_TIME pronounced
  7. ${strepoch()}"/>
  8. <action application="hangup"/>
  9. </condition>
  10. </extension>
  11. <extension name="Talking Clock Date" ><!--e.g. March 8, 2011-->
  12. <condition field="destination_number" expression="^9171$">
  13. <action application="answer"/>
  14. <action application="sleep" data="1000"/>
  15. <action application="say" data="en CURRENT_DATE pronounced
  16. ${strepoch()}"/>
  17. <action application="hangup"/>
  18. </condition>
  19. </extension>
  20. <extension name="Talking Clock Date and Time" ><!--e.g. March 8, 2011
  21. 10:56pm-->
  22. <condition field="destination_number" expression="^9172$">
  23. <action application="answer"/>
  24. <action application="sleep" data="1000"/>
  25. <action application="say" data="en CURRENT_DATE_TIME pronounced
  26. ${strepoch()}"/>
  27. <action application="hangup"/>
  28. </condition>
  29. </extension>
  30. </include>