caller-id-number not getting set
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 ? Thanks Sanjay
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 On Thu, Dec 27, 2012 at 2:16 AM, sanjay soni <sanjay.sanjaysoni@gmail.com>wrote:
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 ?
Thanks Sanjay
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
On Thu, Dec 27, 2012 at 3:16 AM, sanjay soni <sanjay.sanjaysoni@gmail.com> wrote:
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 ?
I suspect they *are* there, but you're calling them by the wrong name or looking for them in the wrong place. I don't know, that just a guess. Start by putting a info app in your dialplan (somewhere it will always get run) and have a look at what's there. <action application="info"/> Hope that helps. Let us know what you find. Best, Gabe
participants (3)
-
Gabriel Gunderson
-
Michael Collins
-
sanjay soni