If you want to do a condition based on the caller id name or number then use the &quot;special&quot; variables like this:<br><br>&lt;condition field=&quot;caller_id_name&quot; field=&quot;^(.*)&quot;&gt;<br>or<br>&lt;condition field=&quot;caller_id_number&quot; field=&quot;^(.*)&quot;&gt;<br>
<br>If that doesn&#39;t work then you&#39;ll need to pastebin your dialplan and the console debug output of a call traversing the dialplan so that we can have a look.<br>-MC<br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 2:16 AM, sanjay soni <span dir="ltr">&lt;<a href="mailto:sanjay.sanjaysoni@gmail.com" target="_blank">sanjay.sanjaysoni@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>In all the dialplan examples (Both in the book and wiki) most places destination_number is being tested in the &lt;condition&gt;, BUT I want to do something based on caller-id-name / caller-id-number channel variables. But I see that all these variables (Caller-Caller-ID-Name, sip_callee_id_name, sip_auth_username, caller-id-name, caller-id-number) are empty. </div>

<div>however, i see these values properly in the event being fired But not in the xml dialplan (Which is the place i want ot use them) ! What should I do ? </div><div> </div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>
Sanjay </div>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>