cid_name = session.getVariable(&quot;caller_id_name&quot;);<br>cid_num = session.getVariable(&quot;caller_id_number&quot;);<br><br>Try<br><br>session.execute(&quot;info&quot;);<br>to see all the other variables you have to work with.<br>
<br><br><div class="gmail_quote">On Fri, Jun 27, 2008 at 6:52 AM, Klaus Teller &lt;<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Right now I&#39;m using a thread to maintain a reference to the objects i want to keep alive. &nbsp;The caller id issue is right now more critical to me. There is nothing like that in the channel.<br>
<br>
Klaus.<br>
<div><div></div><div class="Wj3C7c"><br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; i got two questions:<br>
&gt; &gt;<br>
&gt; &gt; 1) How can i get the caller ID in Java? In javascript this is accessible<br>
&gt; &gt; through session.caller_id_num.<br>
&gt;<br>
&gt; Not sure - check whether it&#39;s some kind of channel variable in freeswitch.<br>
&gt;<br>
&gt; &gt; 2) Considere the following application declaration:<br>
&gt; &gt;<br>
&gt; &gt; &lt;action application=&quot;java&quot; data=&quot;org.delta.MyApp&quot;/&gt;<br>
&gt; &gt;<br>
&gt; &gt; I noticed that the class MyApp will be instantiated for each incoming<br>
&gt; &gt; call. Is there anyway to tell FS to reuse the same object? Or<br>
&gt; alternately<br>
&gt; &gt; is there a way to store an object (e.g. database connections) at the FS<br>
&gt; or<br>
&gt; &gt; VM level and reuse it accross different instances of MyApp?<br>
&gt;<br>
&gt; A different URLClassLoader loads the class on each call, so there is no<br>
&gt; sharing of classes between the different invocations. You&#39;d have to modify<br>
&gt; the mod_java code to reuse the same URLClassLoader, but then you would<br>
&gt; lose the ability to hot swap a class while Freeswitch is running.<br>
&gt;<br>
&gt; The only other way I can think of to share anything is to load it with its<br>
&gt; own class loader and/or create a thread that holds a reference to what you<br>
&gt; want to share, but those are real hacks...<br>
&gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Klaus L&#39;Imbecile.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Bye<br>
&gt; Damjan<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</div></div><font color="#888888">--<br>
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!<br>
Ideal für Modem und ISDN: <a href="http://www.gmx.net/de/go/smartsurfer" target="_blank">http://www.gmx.net/de/go/smartsurfer</a><br>
</font><div><div></div><div class="Wj3C7c"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400