[Freeswitch-users] ESL Log to console

Michael Collins msc at freeswitch.org
Thu Aug 2 20:25:05 MSD 2012


David,

Do you have a call in progress at this point? If not then you'll need to
supply a uuid of a live call, as mentioned here:
http://wiki.freeswitch.org/wiki/Event_Socket_Library#execute

Remember, "execute" means "execute dialplan application" so if there's no
channel then "execute" really doesn't mean a whole lot.

Alternatively you could try something like this:

$con->api("log","WARNING Don't cross the streams!!");

Remember this rule of thumb: pretty much anything you type at fs_cli is an
"API" and therefore you can use $con->api(), whereas anything that is a
diaplan application requires an actual channel on which to run
$con->execute().

Hope that makes sense... :)

-Michael

On Thu, Aug 2, 2012 at 8:43 AM, David Villasmil <
david.villasmil.work at gmail.com> wrote:

> Hello Guys,
>
> I'm starting off with ESL, which is cool, but I'm trying to log to the
> console like Lua's "freeswitch.consoleLog("info", "BLAH BLAH");" doing it
> like:
>
> my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
> $con->execute("log", "1, BlahBlah");
>
>
> But nothing gets in the log files or console... and I can't find any
> documentation as to how to log using "execute"...
>
> any ideas?
>
> Thanks!
>
> David
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120802/d2b5711e/attachment-0001.html 


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