Discussion:
[Freeswitch-users] ESL and DEBUG messages
Anton Vojlenko
2013-01-22 11:51:48 UTC
Permalink
Hello,

I want to check user status from the Skype client instance, but I can't see
Skype API answers from it. How to fix this?
Script example:

#!/usr/bin/perl
use strict;
use warnings;
require ESL;

my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);

$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130122/39c110bd/attachment.html
Giovanni Maruzzelli
2013-01-22 14:45:06 UTC
Permalink
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I can't see
Skype API answers from it. How to fix this?
Have you tried to give:

"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
Anton Vojlenko
2013-01-23 20:34:57 UTC
Permalink
Giovanni, I can see Skype API answers only when i using fs_cli. With perl
script I can't see them.

2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Giovanni Maruzzelli
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I can't
see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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/20130123/3b74fa6e/attachment.html
Anton Vojlenko
2013-02-04 13:50:20 UTC
Permalink
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
In fs_cli i can see DEBUG messages:
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||

2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||

But when i execute perl script i can't see them:
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||

#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);

my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);

$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()



2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With perl
script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Giovanni Maruzzelli
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I can't
see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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/20130204/7aee7b61/attachment.html
Giovanni Maruzzelli
2013-02-04 13:59:12 UTC
Permalink
Please, can someone chime in and tell if something has to change in the
skype module, or if the perl script has to be modified?

-giovanni
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With perl
script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Anton Vojlenko
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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
--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130204/0153c2af/attachment-0001.html
Steven Ayre
2013-02-04 14:32:03 UTC
Permalink
'fsctl loglevel 9' controls the core logging, all logs are routed through
here and dropped if they're below the logging level set there. On top of
that modules that handle log messages separately filter log levels.

'console loglevel 9' controls mod_console which is only for when freeswitch
is started in the foreground.

You don't want to use either of the above.

Mod_event_socket controls logging via ESL connections. You need to issue
the 'log' ESL command to set the log level on a per-connection basis (this
is what /log does in fs_cli).

See http://wiki.freeswitch.org/wiki/Mod_event_socket#log

Note log is an ESL protocol command, not an api/app.

-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With perl
script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Anton Vojlenko
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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/20130204/9fa1ff86/attachment.html
Giovanni Maruzzelli
2013-02-04 14:40:31 UTC
Permalink
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed through
here and dropped if they're below the logging level set there. On top of
that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to issue
the 'log' ESL command to set the log level on a per-connection basis (this
is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With
perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Anton Vojlenko
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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
--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130204/ce0cfa37/attachment-0001.html
Anton Vojlenko
2013-02-04 14:58:19 UTC
Permalink
Thank you, Steve.

#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);

my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);

*$con->log(7);*
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect();

Am i right?

2013/2/4 Giovanni Maruzzelli <gmaruzz at celliax.org>
Post by Giovanni Maruzzelli
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed through
here and dropped if they're below the logging level set there. On top of
that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to issue
the 'log' ESL command to set the log level on a per-connection basis (this
is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With
perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Anton Vojlenko
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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/20130204/546db5cb/attachment.html
Steven Ayre
2013-02-04 15:35:33 UTC
Permalink
I believe so. They're probably received as the LOG event, which is
unfortunately undocumented http://wiki.freeswitch.org/wiki/Event_list#LOG

-Steve
Post by Anton Vojlenko
Thank you, Steve.
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
*$con->log(7);*
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect();
Am i right?
2013/2/4 Giovanni Maruzzelli <gmaruzz at celliax.org>
Post by Giovanni Maruzzelli
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed
through here and dropped if they're below the logging level set there. On
top of that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to issue
the 'log' ESL command to set the log level on a per-connection basis (this
is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With
perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
Post by Anton Vojlenko
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 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
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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/20130204/1003667c/attachment-0001.html
Anton Vojlenko
2013-02-05 15:57:54 UTC
Permalink
Unfortunately* *$con->log(7) has incorrect syntax:
# perl /home/checker.pl
Use of inherited AUTOLOAD for non-method ESL::log() is deprecated at /home/
checker.pl line 5.
Can't locate auto/ESL/log.al in @INC (@INC contains: /usr/local/lib/perl5
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usrlib/perl5 /usr/share/perl5 .) at /home/
checker.pl line 5

Who can help me?

2013/2/4 Steven Ayre <steveayre at gmail.com>
Post by Steven Ayre
I believe so. They're probably received as the LOG event, which is
unfortunately undocumented http://wiki.freeswitch.org/wiki/Event_list#LOG
-Steve
Post by Anton Vojlenko
Thank you, Steve.
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
*$con->log(7);*
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect();
Am i right?
2013/2/4 Giovanni Maruzzelli <gmaruzz at celliax.org>
Post by Giovanni Maruzzelli
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed
through here and dropped if they're below the logging level set there. On
top of that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to
issue the 'log' ESL command to set the log level on a per-connection basis
(this is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With
perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
On Tue, Jan 22, 2013 at 12:51 PM, Anton Vojlenko <
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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/20130205/530e24c6/attachment-0001.html
Anton Vojlenko
2013-02-09 17:15:50 UTC
Permalink
Hello!
Giovanni, can you recommend me how to check skype client availability? I
need this because skypopen module sometimes lost connection with skype
client.

2013/2/5 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
# perl /home/checker.pl
Use of inherited AUTOLOAD for non-method ESL::log() is deprecated at /home/
checker.pl line 5.
/usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usrlib/perl5 /usr/share/perl5 .) at /home/
checker.pl line 5
Who can help me?
2013/2/4 Steven Ayre <steveayre at gmail.com>
Post by Steven Ayre
I believe so. They're probably received as the LOG event, which is
unfortunately undocumented http://wiki.freeswitch.org/wiki/Event_list#LOG
-Steve
Post by Anton Vojlenko
Thank you, Steve.
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
*$con->log(7);*
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect();
Am i right?
2013/2/4 Giovanni Maruzzelli <gmaruzz at celliax.org>
Post by Giovanni Maruzzelli
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed
through here and dropped if they're below the logging level set there. On
top of that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to
issue the 'log' ESL command to set the log level on a per-connection basis
(this is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli. With
perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
On Tue, Jan 22, 2013 at 12:51 PM, Anton Vojlenko <
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but I
can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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/20130209/d0cd7260/attachment-0001.html
Giovanni Maruzzelli
2013-02-12 11:25:12 UTC
Permalink
Post by Anton Vojlenko
Hello!
Giovanni, can you recommend me how to check skype client availability? I
need this because skypopen module sometimes lost connection with skype
client.
use PING skype api command. It supposed to answer PONG. In debug mode:
"skypopen skype103 PING"
Post by Anton Vojlenko
2013/2/5 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
# perl /home/checker.pl
Use of inherited AUTOLOAD for non-method ESL::log() is deprecated at
/home/checker.pl line 5.
/usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usrlib/perl5 /usr/share/perl5 .) at /home/
checker.pl line 5
Who can help me?
2013/2/4 Steven Ayre <steveayre at gmail.com>
Post by Steven Ayre
I believe so. They're probably received as the LOG event, which is
unfortunately undocumented
http://wiki.freeswitch.org/wiki/Event_list#LOG
-Steve
Post by Anton Vojlenko
Thank you, Steve.
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
*$con->log(7);*
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect();
Am i right?
2013/2/4 Giovanni Maruzzelli <gmaruzz at celliax.org>
Post by Giovanni Maruzzelli
Thanks Steve!
Post by Steven Ayre
'fsctl loglevel 9' controls the core logging, all logs are routed
through here and dropped if they're below the logging level set there. On
top of that modules that handle log messages separately filter log levels.
'console loglevel 9' controls mod_console which is only for when
freeswitch is started in the foreground.
You don't want to use either of the above.
Mod_event_socket controls logging via ESL connections. You need to
issue the 'log' ESL command to set the log level on a per-connection basis
(this is what /log does in fs_cli).
See http://wiki.freeswitch.org/wiki/Mod_event_socket#log
Note log is an ESL protocol command, not an api/app.
-Steve
Post by Anton Vojlenko
****<http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/>I
can't solve this problem alone.
freeswitch at internal> skypopen sk1 GET USERSTATUS
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|]
[DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET
USERSTATUS||||
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|]
[DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS
ONLINE|||
#perl /home/checker.pl
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||
#cat /home/checker.pl
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
#ESL::eslSetLogLevel(7);
my $host = "127.0.0.1";
my $port = "8021";
my $pass = "ClueCon";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
$con->api("fsctl loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print "$status";
$con->disconnect()
2013/1/23 Anton Vojlenko <stargray at bigmir.net>
Post by Anton Vojlenko
Giovanni, I can see Skype API answers only when i using fs_cli.
With perl script I can't see them.
2013/1/22 Giovanni Maruzzelli <gmaruzz at gmail.com>
On Tue, Jan 22, 2013 at 12:51 PM, Anton Vojlenko <
Post by Anton Vojlenko
Hello,
I want to check user status from the Skype client instance, but
I can't see
Post by Anton Vojlenko
Skype API answers from it. How to fix this?
"fsctl loglevel 9" in addition to "console loglevel 9" ?
Post by Anton Vojlenko
#!/usr/bin/perl
use strict;
use warnings;
require ESL;
my $host = "localhost";
my $port = "8021";
my $pass = "somepass";
my $con = new ESL::ESLconnection($host, $port, $pass);
$con->api("console loglevel 9");
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();
print $status;
$con->disconnect();
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Sincerely,
Giovanni Maruzzelli
Cell : +39-347-2665618
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
consulting at 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 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
_________________________________________________________________________
consulting at 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 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
--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130212/9f021728/attachment-0001.html
Loading...