I've not tried applying filter for Event-Name. But what I do is to register only for the specific events that I need.<br><br>If you want to get only specific events, you can do as follows<br><br>$sock->SendRecv("events plain CHANNEL_ANSWER") # You will see only the CHANNEL_ANSWER event....<br>
<br>Before getting into the code, you can actually experiment this using nc ( Outbound Socket ) or telnet ( Inbound Socket ), so that you will have a better idea on how to in-corporate it in code.<br><br><br><br><div class="gmail_quote">
On Fri, Sep 16, 2011 at 3:38 AM, Jayesh Nambiar <span dir="ltr"><<a href="mailto:jayesh.voip@gmail.com">jayesh.voip@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>Is it possible to filter specific events for a particular uuid through ESL. I am using it from a PHP application as follows:<br><br>$sock->SendRecv("events plain ALL");<br>$sock->SendRecv("filter unique-id 12345");<br>
$sock->sendRecv("filter Event-Name CHANNEL_ANSWER");<br>$sock->sendRecv("filter Event-Name CHANNEL_HANGUP");<br>$sock->sendRecv("filter Event-Name CHANNEL_HANGUP_COMPLETE");<br><br>
In the case above, I start seeing the events coming from CHANNEL_ANSWER and thereafter all events for that uuid is received.<br>
Even if I write:<br><br>$sock2->SendRecv("events plain ALL");<br>$sock2->SendRecv("filter unique-id 12345");<br>$sock2->sendRecv("filter Event-Name CHANNEL_HANGUP_COMPLETE");<br><br>
I get all the events belonging to uuid 12345 starting from CHANNEL_ANSWER event name. I also tried doing "myevents 12345 plain" and then applying filters but it still doesnt work as expected.<br>I tried googling a bit but could'nt find much help. Anybody pointing me to a proper direction in this regards is highly appreciated.<br>
<br>Thanks,<br><font color="#888888"><br>--- Jayesh<br>
</font><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>