[Freeswitch-users] Running an expect script from freeswitch

Balamurugan Mahendran b2m at a-cti.com
Thu Apr 19 17:35:40 MSD 2012


Did you try the below one?

api = freeswitch.API();
api:execute("system", " YOUR SYSTEM COMMAND  ");

Thanks,
Bala



On Thu, Apr 19, 2012 at 1:10 PM, Mikael Nordman <oh2aun at gmail.com> wrote:

> Hi,
>
> I am running an expect script that is executedn from a call lua session.
>
>
>
> The problem is that the responses come very slowly when run from within
> freeswitch.
>
> It takes maybe 5 seconds to get each response to the expect script.
>
>
>
> I am starting the expect script from lua_mod with os.execute.
>
> I have also tried session:execute.
>
> The behaviour is the same in both cases.
>
>
>
> When running the expect script within a normal shell, it executes
> immediately without any delays.
>
>
>
> What could be causing the very slow  responses to the expect script inside
> freeswitch ?
>
>
>
> Mike
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20120419/1d672ad1/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list