[Freeswitch-users] Nested conditions not allowed.
henkoegema
pabx_freeswitch at telenet.be
Fri Nov 21 10:24:00 PST 2008
Where in the wiki ?
Anthony Minessale-2 wrote:
>
> instead you stack the conditions and they must all be true to proceed to
> the
> next unless you change the break attribute (see wiki)
>
>
> On Fri, Nov 21, 2008 at 10:14 AM, henkoegema
> <pabx_freeswitch at telenet.be>wrote:
>
>>
>> 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:213-799-1400
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
--
View this message in context: http://www.nabble.com/Nested-conditions-not-allowed.-tp20624343p20626999.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.
More information about the FreeSWITCH-users
mailing list