Guys Please help with this mind bender from the wiki at http://wiki.freeswitch.org/wiki/Loopback_endpoint: Example 4: loopback with A-leg inline dialplan originate loopback/set:job=1234\,answer\,park/default/inline lua:loop.lua inline Executes *set* app, then *answer* app, then *park* app on the A leg then bridges to the *lua* app on the B leg Is the para at the end correct? Isn't it the A-leg that executes the lua and the B-leg that executes set,answer,park? Richard
On Thu, Aug 1, 2013 at 9:29 AM, Richard Brady <rnbrady@gmail.com> wrote:
Guys
Please help with this mind bender from the wiki at http://wiki.freeswitch.org/wiki/Loopback_endpoint:
Example 4: loopback with A-leg inline dialplan
originate loopback/set:job=1234\,answer\,park/default/inline lua:loop.lua inline
Executes *set* app, then *answer* app, then *park* app on the A leg then bridges to the *lua* app on the B leg
Is the para at the end correct? Isn't it the A-leg that executes the lua and the B-leg that executes set,answer,park?
I'm pretty sure that the description is correct. It's equivalent to this: originate loopback/set:job=1234\,answer\,park/default/inline &lua(loop.lua) The Lua stuff is on the B leg and the set, answer, park stuff is on the loopback/A leg. -MC
Richard
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Thanks Mike Just ran this with debug and looks from the logs uas if the Lua is on the A leg: EXECUTE loopback/set:job=1234,answer,park-b set(job=1234) EXECUTE loopback/set:job=1234,answer,park-b answer() EXECUTE loopback/set:job=1234,answer,park-b park() EXECUTE loopback/set:job=1234,answer,park-a lua(loop.lua) I'll update the wiki. Richard On 1 August 2013 19:33, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Aug 1, 2013 at 9:29 AM, Richard Brady <rnbrady@gmail.com> wrote:
Guys
Please help with this mind bender from the wiki at http://wiki.freeswitch.org/wiki/Loopback_endpoint:
Example 4: loopback with A-leg inline dialplan
originate loopback/set:job=1234\,answer\,park/default/inline lua:loop.lua inline
Executes *set* app, then *answer* app, then *park* app on the A leg then bridges to the *lua* app on the B leg
Is the para at the end correct? Isn't it the A-leg that executes the lua and the B-leg that executes set,answer,park?
I'm pretty sure that the description is correct. It's equivalent to this:
originate loopback/set:job=1234\,answer\,park/default/inline &lua(loop.lua)
The Lua stuff is on the B leg and the set, answer, park stuff is on the loopback/A leg. -MC
Richard
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Michael Collins
-
Richard Brady