<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"><<a href="mailto:jmesquita@freeswitch.org" target="_blank">jmesquita@freeswitch.org</a>></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'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 <<a href="mailto:stargray@bigmir.net">stargray@bigmir.net</a>> wrote:<br>
<br>
> Hello,<br>
> I am using skypopen module and i need catch API answers from skype client. I wrote simple perl script:<br>
><br>
> require ESL;<br>
> my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");<br>
> while (1){<br>
> $con->sendRecv("log 7");<br>
> $e = $con->bgapi("skypopen sk1 PING");<br>
> #$uuid = $e->getHeader("Job-UUID");<br>
> #print $e->serialize("plain");<br>
> $n = 2;<br>
> while($n){<br>
> $event = $con->recvEventTimed(100);<br>
> if ($event and $event->getHeader("Log-File") eq "skypopen_protocol.c") {<br>
> push(@dmesg, $event->getBody());<br>
><br>
> }<br>
> $n--;<br>
> }<br>
> print "@dmesg\n";<br>
> sleep(3);<br>
> @dmesg = ();<br>
> }<br>
><br>
> But sometimes I get empty array, because script catch differect events. How to catch events from ESL socket by UUID?<br>
</div></div>> _________________________________________________________________________<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>
_________________________________________________________________________<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>