If you want to create a new one you can feed an originate string to the constructor instead of a uuid<br><br>if you are just planning to bridge a call you can just execute bridge on your existing session.<br><br>session.execute("brodge", "sofia/default/<a href="mailto:foo@bar.com">foo@bar.com</a>");<br>
<br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 9:06 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;">
Thanks for the feedback. But where do I get a GUID/UUID from if I want to create a brand new session?<br>
Do I need to create one myself?<br>
<br>
<br>
As the sample code on the wiki shows, if a FS session already exists, i can use the JavaSession constructor and pass it the UUID. But I tend to beleive that to originate a new call i would need to create a fresh JavaSession.<br>
<br>
Then, what do I pass to originate as first parameter? It's expecting a CoreSession.<br>
<br>
<br>
Klaus L'Imbecile.<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Thu, 26 Jun 2008 15:25:59 +0200 (SAST)<br>
> Von: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a><br>
> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Betreff: Re: [Freeswitch-users] Java Support<br>
<br>
> X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms<br>
> X-ECN Telecoms-MailScanner: Found to be clean<br>
> X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,<br>
> score=-101.81, required 6, autolearn=not spam, AWL 0.79,<br>
> BAYES_00 -2.60, NO_RELAYS -0.00, USER_IN_WHITELIST -100.00)<br>
> X-ECN Telecoms-MailScanner-From: <a href="mailto:damjan@ecntelecoms.com">damjan@ecntelecoms.com</a><br>
> X-Spam-Status: No<br>
><br>
> > Hi Folks,<br>
> ><br>
> > Questions regading Java (not Javascript):<br>
> ><br>
> > 1) How do I originate a call? I tried somethis as following without<br>
> > success<br>
> ><br>
> > JavaSession session2= new JavaSession();<br>
> > session2.originate(null,"sofia/gateway/<a href="http://did.voip.les.net/14163442000" target="_blank">did.voip.les.net/14163442000</a>");<br>
><br>
> You need to use the JavaSession constructor that takes a GUID/UUID string.<br>
><br>
> > The error messgae I get is that session2 is not initialized. Any idea?<br>
> ><br>
> > 2) Assuming I have two legs session1 and session2. Bridging them would<br>
> be<br>
> > done with freeswitch.birdge(session1, session2) is that correct? I<br>
> > coudln't test this since I'm not able to create session2.<br>
><br>
> I guess.<br>
><br>
> > Quick Observations:<br>
> ><br>
> > 1) The wiki says that Java 1.6 would cause FS to crash. But, actually<br>
> the<br>
> > current Java 1.6 works just fine while the current Java 1.5 (update 15)<br>
> > causes the FS to crash.<br>
> > 2) Whatever path to Java is specified when building FS, when starting<br>
> it,<br>
> > it will look for Java at: /usr/java/jdk1.6.0/jre.<br>
><br>
> The config file for mod_java determines that path, not what was present at<br>
> build time.<br>
><br>
> > Looking forward to your feedback.<br>
> ><br>
> > Klaus L'Imbecile.<br>
><br>
> Good luck<br>
> Damjan<br>
><br>
><br>
> > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten<br>
> > Browser-Versionen downloaden: <a href="http://www.gmx.net/de/go/browser" target="_blank">http://www.gmx.net/de/go/browser</a><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>
><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>
--<br>
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!<br>
Jetzt dabei sein: <a href="http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx" target="_blank">http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx</a><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>
</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