<div dir="ltr"><div><div>Check this out:<br><br><a href="https://wiki.freeswitch.org/wiki/Mod_perl_Hangup_Hook">https://wiki.freeswitch.org/wiki/Mod_perl_Hangup_Hook</a><br><br></div>I think the &quot;our $env&quot; trick is what you want. That object should have all the chan vars at the point the channel ended.<br>
<br></div>-MC<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 4:01 AM, Mohammad Abdullah <span dir="ltr">&lt;<a href="mailto:abdullah@smonte.com" target="_blank">abdullah@smonte.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 dir="ltr"><pre style="line-height:1.1em;background-color:rgb(249,249,249);border:1px dashed rgb(47,111,171);padding:1em">
hi all, below mentioned example is in lua Language for getting variable in Freeswitch.</pre>
<pre style="line-height:1.1em;background-color:rgb(249,249,249);border:1px dashed rgb(47,111,171);padding:1em">can you please help me how to get in Perl language . </pre><pre style="line-height:1.1em;background-color:rgb(249,249,249);border:1px dashed rgb(47,111,171);padding:1em">
local caller_id = session:getVariable(&quot;caller_id_number&quot;)
</pre><div>Many thanks ,</div><div><br></div><div><br></div><div><br></div></div>
<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>
</div>