<br>Thanks for reply. Actually I want to match values and strings. Like IP_CALL=="true" or IP_CALL != "true" or Date >= "22/10/09" and vice versa. Last thing I forgot to mention, how can I implement condition in dial plan xml when using operation and/or i.e. IP_CALL == "false" and PST_CALL == "false" / IP_CALL == "false" or PST_CALL == "false".<br>
<br>Note: I only want to implement it in dial plan not in any script.<br><br><br>Kindly advise the solution.<br><br>---------- Forwarded message ----------<br>From: Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Date: Wed, 21 Oct 2009 21:36:31 -0700<br>Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 40, Issue 179<br>
<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 9:28 PM, Mark Campbell-Smith <span dir="ltr"><<a href="mailto:mcampbellsmith@gmail.com" target="_blank">mcampbellsmith@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can't you use the inline statement to set a variable so that it can be<br>
used directly in a condition?<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions</a><br>
<div><div><br></div></div></blockquote><div><br>Yes you can.
Just don't abuse it like Tony said. If you find yourself doing it a lot
then it's a sure sign that you're taking the wrong approach.<br>
-MC<br><br></div></div>
<br><br>---------- Forwarded message ----------<br>From: Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Date: Wed, 21 Oct 2009 21:41:31 -0700<br>Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 40, Issue 179<br><br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 9:08 PM, Ahmed Munir <span dir="ltr"><<a href="mailto:ahmedmunir007@gmail.com" target="_blank">ahmedmunir007@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div>Hi,<br><br>Thanks for reply, it really
helped me. One more thing to ask, how can we make decision against
>,<, >=, <= in condition header? Like we use == for action
and != for anti-action.<br>
<br>Kindly highlight it.<br><br></div></div></blockquote><div><br>You
can only do greater than and less than in the date/time matching. See
the date/time example in the default.xml dialplan file.<br><br>You can
also use regular expressions if you're in a pinch. For example, if you
need to match numbers >= 1100 and <= 1500 you could just use this
regex:<br>
<br>^(1[1234]\d\d|1500)$<br><br>The real question, though, is this:
what types of values do you need to match for GT or LT? Date/time?
Money? Other? That will determine if you need to use a script or just
the dialplan.<br>
-MC<br><br></div></div>