<div dir="ltr"><div><div><div>Thank for you <span id="result_box" class="" lang="en"><span class="">explanation</span></span>. I need catch this output:<br>2013-04-18 16:22:11.045518 [DEBUG] skypopen_protocol.c:1767    [|] [DEBUG_SKYPE  1767 ][sk1            ][IDLE,IDLE] SENDING: |||PING||||<br>
 2013-04-18 16:22:11.045518 [DEBUG] skypopen_protocol.c:207     [|] [DEBUG_SKYPE  207  ][sk1            ][IDLE,IDLE] READING: |||PONG|||<br></div>But sometimes in array i see this:<br>2013-04-18 16:22:13.025304 [DEBUG] skypopen_protocol.c:734     [|] [DEBUG_SKYPE  734  ][sk1            ][IDLE,IDLE] NO ACTIVE calls in this moment, skype_call 1347 is RINGING, to ask PARTNER_DISPNAME and PARTNER_HANDLE<br>
 2013-04-18 16:22:13.025304 [DEBUG] skypopen_protocol.c:1767    [|] [DEBUG_SKYPE  1767 ][sk1            ][IDLE,IDLE] SENDING: |||GET CALL 1347 PARTNER_DISPNAME||||<br></div><br></div>Can you explain how to catch only command output?<br>
<div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/18 João Mesquita <span dir="ltr">&lt;<a href="mailto:jmesquita@freeswitch.org" target="_blank">jmesquita@freeswitch.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Recveventtimed might return null if an event does not arrive in those ms time. Make sure to use recvevent only if you don&#39;t want that.<br>

<br>
Sent from my iPhone<br>
<div><div class="h5"><br>
On Apr 18, 2013, at 4:14 AM, Anton Vojlenko &lt;<a href="mailto:stargray@bigmir.net">stargray@bigmir.net</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt; I am using skypopen module and i need catch API answers from skype client. I wrote simple perl script:<br>
&gt;<br>
&gt; require ESL;<br>
&gt; my $con = new ESL::ESLconnection(&quot;localhost&quot;, &quot;8021&quot;, &quot;ClueCon&quot;);<br>
&gt; while (1){<br>
&gt;     $con-&gt;sendRecv(&quot;log 7&quot;);<br>
&gt;     $e = $con-&gt;bgapi(&quot;skypopen sk1 PING&quot;);<br>
&gt;     #$uuid = $e-&gt;getHeader(&quot;Job-UUID&quot;);<br>
&gt;     #print $e-&gt;serialize(&quot;plain&quot;);<br>
&gt;     $n = 2;<br>
&gt;     while($n){<br>
&gt;         $event = $con-&gt;recvEventTimed(100);<br>
&gt;         if ($event and $event-&gt;getHeader(&quot;Log-File&quot;) eq &quot;skypopen_protocol.c&quot;) {<br>
&gt;             push(@dmesg, $event-&gt;getBody());<br>
&gt;<br>
&gt;         }<br>
&gt;         $n--;<br>
&gt;     }<br>
&gt;         print &quot;@dmesg\n&quot;;<br>
&gt;     sleep(3);<br>
&gt;     @dmesg = ();<br>
&gt; }<br>
&gt;<br>
&gt; But sometimes I get empty array, because script catch differect events. How to catch events from ESL socket by UUID?<br>
</div></div>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<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>
</blockquote></div><br></div>