I am now considering the ${rdnis} variable is empty. So am doing something like<div><br></div><div><div>&lt;condition field=&quot;${sip_h_Diversion}&quot; expression=&quot;^.*(917xxxxxxx).*$&quot;/&gt;</div><div><br></div>
<div>\RR</div><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 1:57 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
are you looking at sip_h_Diversion variable?<br>
<font color="#888888"><br>
/b<br>
</font><div class="im"><br>
On Jun 23, 2010, at 12:40 PM, RR wrote:<br>
<br>
&gt; yeah that was the first variable I&#39;d tried when I started looking into this but it came out empty. This is what I was seeing in the debug dump<br>
&gt;<br>
&gt; Regex (FAIL) [Test_Diversion] rdnis() =~ /^(917xxxxxxx)$/ break=on-false<br>
&gt;<br>
&gt; even if the condition failed, it usually shows what&#39;s in the variable to then compare with the regex<br>
&gt;<br>
&gt; Thanks<br>
&gt; \RR<br>
&gt;<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>