If you want to do a condition based on the caller id name or number then use the "special" variables like this:
<condition field="caller_id_name" field="^(.*)">
or
<condition field="caller_id_number" field="^(.*)">
If that doesn't work then you'll need to pastebin your dialplan and the console debug output of a call traversing the dialplan so that we can have a look.
-MC
In all the dialplan examples (Both in the book and wiki) most places destination_number is being tested in the <condition>, 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.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 ?ThanksSanjay
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.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