[Freeswitch-users] Lua Session creation is blocking?

Stephen Wilde wstephen80 at gmail.com
Sat Feb 5 02:32:51 MSK 2011


Ok, thank you, my way is ESL.

ESL is less simple then embedded Lua but I understand that is the solution
to my problem.

Stephen


On Fri, Feb 4, 2011 at 10:57 PM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:

> The way you expect it to work is not the case.
>
> in embedded scripts when you create a new session you must wait for it
> to have media.
> The scripts are not asynchronous.  if you want asynchronous you 100% want
> ESL.
>
>
>
>
>
>
> On Fri, Feb 4, 2011 at 1:30 PM, Stephen Wilde <wstephen80 at gmail.com>
> wrote:
> > I have to port some applications on Freeswitch so I'm doing some
> preliminary
> > learning tests on Lua scripting.
> > The result that I would obtain is to have the full control of both
> inbound
> > and originated session and to have under control their state.
> > The script I'm running is simply: http://pastebin.freeswitch.org/15248
> > But its behaviour is not as I expect.
> >
> > Stephen
> >
> > On Fri, Feb 4, 2011 at 7:26 PM, Michael Collins <msc at freeswitch.org>
> wrote:
> >>
> >>
> >> On Fri, Feb 4, 2011 at 10:19 AM, Stephen Wilde <wstephen80 at gmail.com>
> >> wrote:
> >>>
> >>> Ok, 18x will be perfect!
> >>> The problem is that when the inbound call is SIP and the originated is
> >>> ISDN, the originate doesn't return when a 180 ringing is received (that
> in
> >>> ISDN is an ALERT without in band info).
> >>> The originate returns when a 183 (ISDN = in band info available) or 200
> >>> (ISDN = CONNECT) is received.
> >>> Stephen
> >>>
> >>
> >> Could you tell us a bit more about what you're trying to accomplish? My
> >> guess is that there's a better way to do it. In most cases it is not
> >> necessary to create a new session inside of a script called from the
> >> dialplan.
> >> What is the application that you are working on? Who calls whom, etc.
> >> -MC
> >>
> >> _______________________________________________
> >> 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
> >
> >
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> 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>
> googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110205/d7be7736/attachment.html 


More information about the FreeSWITCH-users mailing list