[Freeswitch-users] Java Support
Anthony Minessale
anthony.minessale at gmail.com
Thu Jun 26 17:51:47 EDT 2008
originate string is the same string you put in the bridge app
eg:
sofia/default/foo at bar.com
On Thu, Jun 26, 2008 at 4:26 PM, Klaus Teller <klaus.teller at gmx.net> wrote:
> Hi,
>
> what is an originate string? I tried the following:
>
> JavaSession session2= new JavaSession(System.nanoTime()+"");
>
> what i get is the following error message:
>
>
> 2008-06-26 17:23:26 [ERR] switch_core_session.c:205
> switch_core_session_outgoing_channel() Could not locate channel type
> 61111410867975
> 2008-06-26 17:23:26 [ERR] switch_ivr_originate.c:823 switch_ivr_originate()
> Cannot create outgoing channel of type [61111410867975] cause:
> [CHAN_NOT_IMPLEMENTED]
>
>
> Thanks,
> Klaus.
> -------- Original-Nachricht --------
> > Datum: Thu, 26 Jun 2008 09:13:41 -0500
> > Von: "Anthony Minessale" <anthony.minessale at gmail.com>
> > An: freeswitch-users at lists.freeswitch.org
> > Betreff: Re: [Freeswitch-users] Java Support
>
> > If you want to create a new one you can feed an originate string to the
> > constructor instead of a uuid
> >
> > if you are just planning to bridge a call you can just execute bridge on
> > your existing session.
> >
> > session.execute("brodge", "sofia/default/foo at bar.com");
> >
> >
> > On Thu, Jun 26, 2008 at 9:06 AM, Klaus Teller <klaus.teller at gmx.net>
> > wrote:
> >
> > > Thanks for the feedback. But where do I get a GUID/UUID from if I want
> > to
> > > create a brand new session?
> > > Do I need to create one myself?
> > >
> > >
> > > 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.
> > >
> > > Then, what do I pass to originate as first parameter? It's expecting a
> > > CoreSession.
> > >
> > >
> > > Klaus L'Imbecile.
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Thu, 26 Jun 2008 15:25:59 +0200 (SAST)
> > > > Von: damjan at ecntelecoms.com
> > > > An: freeswitch-users at lists.freeswitch.org
> > > > Betreff: Re: [Freeswitch-users] Java Support
> > >
> > > > X-ECN Telecoms-MailScanner-Information: Contact ECN Telecoms
> > > > X-ECN Telecoms-MailScanner: Found to be clean
> > > > X-ECN Telecoms-MailScanner-SpamCheck: not spam, SpamAssassin (not
> > cached,
> > > > score=-101.81, required 6, autolearn=not spam, AWL 0.79,
> > > > BAYES_00 -2.60, NO_RELAYS -0.00, USER_IN_WHITELIST -100.00)
> > > > X-ECN Telecoms-MailScanner-From: damjan at ecntelecoms.com
> > > > X-Spam-Status: No
> > > >
> > > > > Hi Folks,
> > > > >
> > > > > Questions regading Java (not Javascript):
> > > > >
> > > > > 1) How do I originate a call? I tried somethis as following without
> > > > > success
> > > > >
> > > > > JavaSession session2= new JavaSession();
> > > > >
> > session2.originate(null,"sofia/gateway/did.voip.les.net/14163442000");
> > > >
> > > > You need to use the JavaSession constructor that takes a GUID/UUID
> > > string.
> > > >
> > > > > The error messgae I get is that session2 is not initialized. Any
> > idea?
> > > > >
> > > > > 2) Assuming I have two legs session1 and session2. Bridging them
> > would
> > > > be
> > > > > done with freeswitch.birdge(session1, session2) is that correct? I
> > > > > coudln't test this since I'm not able to create session2.
> > > >
> > > > I guess.
> > > >
> > > > > Quick Observations:
> > > > >
> > > > > 1) The wiki says that Java 1.6 would cause FS to crash. But,
> > actually
> > > > the
> > > > > current Java 1.6 works just fine while the current Java 1.5 (update
> > 15)
> > > > > causes the FS to crash.
> > > > > 2) Whatever path to Java is specified when building FS, when
> > starting
> > > > it,
> > > > > it will look for Java at: /usr/java/jdk1.6.0/jre.
> > > >
> > > > The config file for mod_java determines that path, not what was
> > present
> > > at
> > > > build time.
> > > >
> > > > > Looking forward to your feedback.
> > > > >
> > > > > Klaus L'Imbecile.
> > > >
> > > > Good luck
> > > > Damjan
> > > >
> > > >
> > > > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> > > > > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> > > > >
> > > > > _______________________________________________
> > > > > Freeswitch-users mailing list
> > > > > Freeswitch-users at lists.freeswitch.org
> > > > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > > > UNSUBSCRIBE:
> > > http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > > > http://www.freeswitch.org
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Freeswitch-users mailing list
> > > > Freeswitch-users at lists.freeswitch.org
> > > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > >
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > > http://www.freeswitch.org
> > >
> > > --
> > > GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> > > Jetzt dabei sein:
> > > http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
> > >
> > > _______________________________________________
> > > Freeswitch-users mailing list
> > > Freeswitch-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> > >
> >
> >
> >
> > --
> > Anthony Minessale II
> >
> > FreeSWITCH http://www.freeswitch.org/
> > ClueCon http://www.cluecon.com/
> >
> > AIM: anthm
> > MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com><
> MSN%3Aanthony_minessale at hotmail.com<MSN%253Aanthony_minessale at hotmail.com>
> >
> > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> <PAYPAL%3Aanthony.minessale at gmail.com<PAYPAL%253Aanthony.minessale at gmail.com>
> >
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org><
> sip%3A888 at conference.freeswitch.org<sip%253A888 at conference.freeswitch.org>
> >
> > iax:guest at conference.freeswitch.org/888
> > googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> <googletalk%3Aconf%2B888 at conference.freeswitch.org<googletalk%253Aconf%252B888 at conference.freeswitch.org>
> >
> > pstn:213-799-1400
>
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein:
> http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080626/b42f4c2d/attachment-0001.html
More information about the Freeswitch-users
mailing list