cid_name = session.getVariable("caller_id_name");<br>cid_num = session.getVariable("caller_id_number");<br><br>Try<br><br>session.execute("info");<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 <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>> 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'm using a thread to maintain a reference to the objects i want to keep alive. 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>
><br>
> > Hi,<br>
> ><br>
> > i got two questions:<br>
> ><br>
> > 1) How can i get the caller ID in Java? In javascript this is accessible<br>
> > through session.caller_id_num.<br>
><br>
> Not sure - check whether it's some kind of channel variable in freeswitch.<br>
><br>
> > 2) Considere the following application declaration:<br>
> ><br>
> > <action application="java" data="org.delta.MyApp"/><br>
> ><br>
> > I noticed that the class MyApp will be instantiated for each incoming<br>
> > call. Is there anyway to tell FS to reuse the same object? Or<br>
> alternately<br>
> > is there a way to store an object (e.g. database connections) at the FS<br>
> or<br>
> > VM level and reuse it accross different instances of MyApp?<br>
><br>
> A different URLClassLoader loads the class on each call, so there is no<br>
> sharing of classes between the different invocations. You'd have to modify<br>
> the mod_java code to reuse the same URLClassLoader, but then you would<br>
> lose the ability to hot swap a class while Freeswitch is running.<br>
><br>
> The only other way I can think of to share anything is to load it with its<br>
> own class loader and/or create a thread that holds a reference to what you<br>
> want to share, but those are real hacks...<br>
><br>
> > Thanks,<br>
> ><br>
> > Klaus L'Imbecile.<br>
> ><br>
><br>
> Bye<br>
> Damjan<br>
><br>
><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>
</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