Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Nested conditions not allowed.


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
pabx_freeswitch at tel...
Guest





PostPosted: Fri Nov 21, 2008 11:16 am    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

How do I program following:

I call extension 1234.
Only if the time is between 9 am and 6 pm then play the file were-sorry.wav


I tried:

<extension name="tempdisconnected">
<condition field="destination_number" expression="^1234">
<condition field="${strftime(%H%M)}"
expression="^((09|1[0-7])[0-5][0-9]|1800)$">
<action application="playback"
data=".../.../sounds/were-sorry.wav"/>
</condition>
</condition>
</extension>

but that doesn't work, because nested conditions are not allowed.

How do I solve a problem like this.
--
View this message in context: http://www.nabble.com/Nested-conditions-not-allowed.-tp20624343p20624343.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services