On Sat, Feb 9, 2013 at 6:15 PM, Anton Vojlenko <span dir="ltr"><<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>Giovanni, can you recommend me how to check skype client availability? I need this because skypopen module sometimes lost connection with skype client.<div class="HOEnZb"><div class="h5"><br></div></div></blockquote>
<div><br>use PING skype api command. It supposed to answer PONG. In debug mode: "skypopen skype103 PING"<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">2013/2/5 Anton Vojlenko <span dir="ltr"><<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately<b> </b>$con->log(7) has incorrect syntax:<br># perl /home/<a href="http://checker.pl" target="_blank">checker.pl</a><br>
Use of inherited AUTOLOAD for non-method ESL::log() is deprecated at /home/<a href="http://checker.pl" target="_blank">checker.pl</a> line 5.<br>
Can't
locate auto/ESL/<a href="http://log.al" target="_blank">log.al</a> 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/<a href="http://checker.pl" target="_blank">checker.pl</a> line 5<br><br> Who can help me?<div><div><br><br><div class="gmail_quote">2013/2/4 Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I believe so. They're probably received as the LOG event, which is unfortunately undocumented <a href="http://wiki.freeswitch.org/wiki/Event_list#LOG" target="_blank">http://wiki.freeswitch.org/wiki/Event_list#LOG</a><div>
<br></div><div>
-Steve</div><div><div><div><br></div><div><br><br><div class="gmail_quote">On 4 February 2013 14:58, Anton Vojlenko <span dir="ltr"><<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you, Steve.<div><br><br>#!/usr/bin/perl<br>use strict;<br>use warnings;<br>require ESL;<br>#ESL::eslSetLogLevel(7);<br>
<br>my $host = "127.0.0.1";<br>my $port = "8021";<br>my $pass = "ClueCon";<br>
my $con = new ESL::ESLconnection($host, $port, $pass);<br><br></div><b>$con->log(7);</b><div><br>my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();<br>print "$status";<br>
</div>$con->disconnect();<br>
<br>Am i right?<div><div><br><br><div class="gmail_quote">2013/2/4 Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@celliax.org" target="_blank">gmaruzz@celliax.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Steve!<div><div><br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 3:32 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
'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.<br>
<br><div>'console loglevel 9' controls mod_console which is only for when freeswitch is started in the foreground.</div><div><br></div><div>You don't want to use either of the above.</div><div><br></div><div>
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).</div>
<div><br></div><div>See <a href="http://wiki.freeswitch.org/wiki/Mod_event_socket#log" target="_blank">http://wiki.freeswitch.org/wiki/Mod_event_socket#log</a><br></div><div><br></div><div>Note log is an ESL protocol command, not an api/app.</div>
<div><br></div><div>-Steve</div><div><div><div><br></div><div><br></div><div><div><br><div class="gmail_quote">On 4 February 2013 13:50, Anton Vojlenko <span dir="ltr"><<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><h3><a href="http://www.punchng.com/news/i-cant-solve-nigerias-problems-alone-president/" target="_blank"><i></i><i></i></a><font><span style="font-weight:normal">I can't solve this problem alone</span>.</font><br>
</h3>In fs_cli i can see DEBUG messages:<br>freeswitch@internal> skypopen sk1 GET USERSTATUS<br>Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||<br><br>2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:1732 [|] [DEBUG_SKYPE 1732 ][sk1 ][IDLE,IDLE] SENDING: |||GET USERSTATUS||||<br>
2013-02-04 15:31:44.565590 [DEBUG] skypopen_protocol.c:207 [|] [DEBUG_SKYPE 207 ][sk1 ][IDLE,IDLE] READING: |||USERSTATUS ONLINE|||<br><br>But when i execute perl script i can't see them:<br>#perl /home/<a href="http://checker.pl" target="_blank">checker.pl</a><br>
Using interface: globals.SKYPOPEN_INTERFACES[1].name=|||sk1|||<br><br>#cat /home/<a href="http://checker.pl" target="_blank">checker.pl</a><div><br>#!/usr/bin/perl<br>use strict;<br>use warnings;<br>require ESL;<br>
</div>#ESL::eslSetLogLevel(7);<br>
<br>my $host = "127.0.0.1";<br>my $port = "8021";<br>my $pass = "ClueCon";<div><br>my $con = new ESL::ESLconnection($host, $port, $pass);<br><br>$con->api("console loglevel 9");<br>
</div>$con->api("fsctl loglevel 9");<div><br>
my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();<br>print "$status";<br>$con->disconnect()<br><br><br><br></div><div><div><div class="gmail_quote">2013/1/23 Anton Vojlenko <span dir="ltr"><<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Giovanni, I can see Skype API answers only when i using fs_cli. With perl script I can't see them.<div>
<div><br><br><div class="gmail_quote">2013/1/22 Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Tue, Jan 22, 2013 at 12:51 PM, Anton Vojlenko <<a href="mailto:stargray@bigmir.net" target="_blank">stargray@bigmir.net</a>> wrote:<br>
> Hello,<br>
><br>
> I want to check user status from the Skype client instance, but I can't see<br>
> Skype API answers from it. How to fix this?<br>
<br>
</div>Have you tried to give:<br>
<br>
"fsctl loglevel 9" in addition to "console loglevel 9" ?<br>
<div><br>
<br>
<br>
> Script example:<br>
><br>
> #!/usr/bin/perl<br>
> use strict;<br>
> use warnings;<br>
> require ESL;<br>
><br>
> my $host = "localhost";<br>
> my $port = "8021";<br>
> my $pass = "somepass";<br>
> my $con = new ESL::ESLconnection($host, $port, $pass);<br>
><br>
> $con->api("console loglevel 9");<br>
> my $status = $con->api("skypopen sk1 GET USERSTATUS")->getBody();<br>
> print $status;<br>
> $con->disconnect();<br>
><br>
<br>
</div>--<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
Cell : <a href="tel:%2B39-347-2665618" value="+393472665618" target="_blank">+39-347-2665618</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : <a href="tel:%2B39-347-2665618" value="+393472665618" target="_blank">+39-347-2665618</a><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br><br>Giovanni Maruzzelli<br>Cell : +39-347-2665618<br>