freeswitch get variable list after hangup in perl script
hi all, below mentioned example is in lua Language for getting variable in Freeswitch. can you please help me how to get in Perl language . local caller_id = session:getVariable("caller_id_number") Many thanks ,
In Perl we do it like this: $session->getVariable("caller_id_number"); On Fri, Jun 21, 2013 at 4:31 PM, Mohammad Abdullah <abdullah@smonte.com>wrote:
hi all, below mentioned example is in lua Language for getting variable in Freeswitch.
can you please help me how to get in Perl language .
local caller_id = session:getVariable("caller_id_number")
Many thanks ,
_________________________________________________________________________ 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
-- Ashish Gautam Nucleus Microsystems (Pvt.) Ltd. Ph. 011 47574758
Check this out: https://wiki.freeswitch.org/wiki/Mod_perl_Hangup_Hook I think the "our $env" trick is what you want. That object should have all the chan vars at the point the channel ended. -MC On Fri, Jun 21, 2013 at 4:01 AM, Mohammad Abdullah <abdullah@smonte.com>wrote:
hi all, below mentioned example is in lua Language for getting variable in Freeswitch.
can you please help me how to get in Perl language .
local caller_id = session:getVariable("caller_id_number")
Many thanks ,
_________________________________________________________________________ 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
hi , many thanks .. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/freeswitch-get-variable-list-a... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (4)
-
Abdullah
-
Ashish gautam
-
Michael Collins
-
Mohammad Abdullah