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
anthony.minessale at g...
Guest





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

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@telenet.be (pabx_freeswitch@telenet.be)> wrote:
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 (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



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mcollins at fcnetwork.com
Guest





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

Can you use the <anti-action> tags to handle the non-matching case?
-MC

Quote:
-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-
Quote:
users-bounces@lists.freeswitch.org] On Behalf Of henkoegema
Sent: Friday, November 21, 2008 8:15 AM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] Nested conditions not allowed.


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-
Quote:
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
Quote:
http://www.freeswitch.org

_______________________________________________
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
pabx_freeswitch at tel...
Guest





PostPosted: Fri Nov 21, 2008 1:28 pm    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

Where in the wiki ?



Anthony Minessale-2 wrote:
Quote:

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@telenet.be>wrote:

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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400

_______________________________________________
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



--
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.


_______________________________________________
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
mike at jerris.com
Guest





PostPosted: Fri Nov 21, 2008 2:00 pm    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

http://wiki.freeswitch.org/wiki/Dialplan_XML

On Nov 21, 2008, at 1:24 PM, henkoegema wrote:

Quote:

Where in the wiki ?



Anthony Minessale-2 wrote:
Quote:

instead you stack the conditions and they must all be true to
proceed to
the
next unless you change the break attribute (see wiki)




_______________________________________________
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
brian at freeswitch.org
Guest





PostPosted: Fri Nov 21, 2008 2:02 pm    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

Also look at the global extension in the default config.. that is an
example of stacking them.

/b

On Nov 21, 2008, at 12:24 PM, henkoegema wrote:

Quote:

Where in the wiki ?



_______________________________________________
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
anthony.minessale at g...
Guest





PostPosted: Fri Nov 21, 2008 2:32 pm    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

the wiki search sucks but i am pretty sure you can find it just by searching for
"dialplan" =/


On Fri, Nov 21, 2008 at 1:00 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Also look at the global extension in the default config.. that is an
example of stacking them.

/b

On Nov 21, 2008, at 12:24 PM, henkoegema wrote:

Quote:

Where in the wiki ?





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
pabx_freeswitch at tel...
Guest





PostPosted: Fri Nov 21, 2008 5:27 pm    Post subject: [Freeswitch-users] Nested conditions not allowed. Reply with quote

Brian West-3 wrote:
Quote:

Also look at the global extension in the default config.. that is an
example of stacking them.


Tnx. =)
--
View this message in context: http://www.nabble.com/Nested-conditions-not-allowed.-tp20624343p20630498.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