party A should be created with the uuid that is already there:<br><br>its called sessionUuid and is magically created.<br><br>try <br><br>session = new JavaSession(sessionUuid);<br>session.execute("bridge", "sofia/gateway/<a href="http://voip.did.les.net/14146548900" target="_blank">voip.did.les.net/14146548900</a>");<br>
<br>
<br><br><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 5:17 PM, 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;">
OK. here is what happens:<br>
<br>
What I do:<br>
<br>
1) Party A calls in.<br>
2) Java creates a answers leg A.<br>
3) java creates a session willf ollowing code:<br>
<br>
JavaSession session2= new JavaSession( "sofia/gateway/<a href="http://voip.did.les.net/14146548900" target="_blank">voip.did.les.net/14146548900</a>");<br>
session2.originate( "sofia/gateway/<a href="http://voip.did.les.net/14146548900" target="_blank">voip.did.les.net/14146548900</a>",originate, 15);<br>
4) Java bridges the two legs with the following code:<br>
if(session2.ready())<br>
freeswitch.bridge(session2,session1);<br>
<br>
<br>
The result:<br>
1) Connection is established and forwarded to the Java code without problem.<br>
2) Java code indeed answers<br>
3) The far end rights (i.e. the device connected to leg B)<br>
4) The far end rings twice<br>
5) The near end (call originator) is disconnected<br>
6) FS displays teh following error message:<br>
<br>
2008-06-26 18:06:07 [WARNING] switch_cpp.cpp:801 originate() Error Creating Outgoing Channel! [sofia/gateway/<a href="http://did.voip.les.net/14146548900" target="_blank">did.voip.les.net/14146548900</a>]<br>
<br>
2008-06-26 18:06:07 [ERR] switch_cpp.cpp:760 ready() session is not initalized<br>
<br>
6) The far end continues to ring<br>
7) The far end goes to voicemail<br>
8) FS displays on the console that far end answered<br>
9) Voicemail records silence and terminates.<br>
<br>
So, any idea why near end is disconnected?<br>
<br>
Thanks,<br>
Klaus.<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Thu, 26 Jun 2008 16:51:47 -0500<br>
<div><div></div><div class="Wj3C7c">> Von: "Anthony Minessale" <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.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>
> originate string is the same string you put in the bridge app<br>
><br>
> eg:<br>
> sofia/default/<a href="mailto:foo@bar.com">foo@bar.com</a><br>
><br>
><br>
> On Thu, Jun 26, 2008 at 4:26 PM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>><br>
> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > what is an originate string? I tried the following:<br>
> ><br>
> > JavaSession session2= new JavaSession(System.nanoTime()+"");<br>
> ><br>
> > what i get is the following error message:<br>
> ><br>
> ><br>
> > 2008-06-26 17:23:26 [ERR] switch_core_session.c:205<br>
> > switch_core_session_outgoing_channel() Could not locate channel type<br>
> > 61111410867975<br>
> > 2008-06-26 17:23:26 [ERR] switch_ivr_originate.c:823<br>
> switch_ivr_originate()<br>
> > Cannot create outgoing channel of type [61111410867975] cause:<br>
> > [CHAN_NOT_IMPLEMENTED]<br>
> ><br>
> ><br>
> > Thanks,<br>
> > Klaus.<br>
> > -------- Original-Nachricht --------<br>
> > > Datum: Thu, 26 Jun 2008 09:13:41 -0500<br>
> > > Von: "Anthony Minessale" <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.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>
> > > If you want to create a new one you can feed an originate string to<br>
> the<br>
> > > constructor instead of a uuid<br>
> > ><br>
> > > if you are just planning to bridge a call you can just execute bridge<br>
> on<br>
> > > your existing session.<br>
> > ><br>
> > > session.execute("brodge", "sofia/default/<a href="mailto:foo@bar.com">foo@bar.com</a>");<br>
> > ><br>
> > ><br>
> > > On Thu, Jun 26, 2008 at 9:06 AM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>><br>
> > > wrote:<br>
> > ><br>
> > > > Thanks for the feedback. But where do I get a GUID/UUID from if I<br>
> want<br>
> > > to<br>
> > > > 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<br>
> exists, i<br>
> > > can<br>
> > > > use the JavaSession constructor and pass it the UUID. But I tend to<br>
> > > beleive<br>
> > > > that to originate a new call i would need to create a fresh<br>
> > JavaSession.<br>
> > > ><br>
> > > > Then, what do I pass to originate as first parameter? It's expecting<br>
> a<br>
> > > > 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<br>
> > > 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<br>
> without<br>
> > > > > > success<br>
> > > > > ><br>
> > > > > > JavaSession session2= new JavaSession();<br>
> > > > > ><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<br>
> > > > string.<br>
> > > > ><br>
> > > > > > The error messgae I get is that session2 is not initialized. Any<br>
> > > idea?<br>
> > > > > ><br>
> > > > > > 2) Assuming I have two legs session1 and session2. Bridging them<br>
> > > would<br>
> > > > > be<br>
> > > > > > done with freeswitch.birdge(session1, session2) is that correct?<br>
> 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,<br>
> > > actually<br>
> > > > > the<br>
> > > > > > current Java 1.6 works just fine while the current Java 1.5<br>
> (update<br>
> > > 15)<br>
> > > > > > causes the FS to crash.<br>
> > > > > > 2) Whatever path to Java is specified when building FS, when<br>
> > > 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<br>
> > > present<br>
> > > > 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:<br>
> > > > <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>
> > > > ><br>
> > ><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<br>
> Interessen!<br>
> > > > Jetzt dabei sein:<br>
> > > > <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:<br>
> > <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>
> > > --<br>
> > > Anthony Minessale II<br>
> > ><br>
> > > FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > > ClueCon <a href="http://www.cluecon.com/" target="_blank">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>
> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><<br>
> ><br>
</div></div>> <a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a><<a href="mailto:MSN%25253Aanthony_minessale@hotmail.com">MSN%253Aanthony_minessale@hotmail.com</a>><br>
<div class="Ih2E3d">> > ><br>
> > ><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
> ><br>
</div>> <<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%25253Aanthony.minessale@gmail.com">PAYPAL%253Aanthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> > ><br>
> > > IRC: <a href="http://irc.freenode.net" target="_blank">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="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><<br>
> ><br>
</div>> <a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a><<a href="mailto:sip%25253A888@conference.freeswitch.org">sip%253A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> > ><br>
> > > <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> > ><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> ><br>
</div>> <<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a><<a href="mailto:googletalk%25253Aconf%25252B888@conference.freeswitch.org">googletalk%253Aconf%252B888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> > ><br>
> > > pstn:213-799-1400<br>
> ><br>
> > --<br>
> > GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!<br>
> > Jetzt dabei sein:<br>
> > <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>
> ><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">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> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
<br>
--<br>
</div>Psssst! Schon vom neuen GMX MultiMessenger gehört?<br>
Der kann`s mit allen: <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
<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