<div dir="ltr">I apologize once more. The issue here was not the double slashes. The double slashes just appeared because of the way I was dumping the event.<div><br></div><div>The real problem was that there were utf8 characters in the variable_fax_remote_station_id. Simply wrapping utf8_encode around the event's serialize('json') solved the problem. Not sure if this should be considered a bug, but I will add this info to the ticket and the FS devs can decide.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 21, 2014 at 12:49 PM, Josh Nankin <span dir="ltr"><<a href="mailto:jnankin@gmail.com" target="_blank">jnankin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Here's what's happening. The ESL events are not null, but I was dumping the output of json_decode($event->serialize('json')) and that was null. serialize('json') is occasionally returning non valid JSON, as in the following example:<div>
<br></div><div> "variable_sip_full_from": "\\"\\" <<a href="mailto:sip%3A4145551234@example.com" target="_blank">sip:4145551234@example.com</a>>;tag=v97m192HgemNN", </div><div><br></div>
<div>The slashes should be single slashes, not double. I will preprocess this for now to solve my issue, but I'll open a JIRA as well.</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 8:30 AM, Josh Nankin <span dir="ltr"><<a href="mailto:jnankin@gmail.com" target="_blank">jnankin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I use the ESL to listen to Freeswitch 1.2 for call events. The events I'm listening to are CHANNEL_HANGUP and CUSTOM.<br>
<div><br></div><div>For certain phone numbers, I will consistently get NULL events when calling them and the call dies. Again when this happens, its only with specific phone numbers, but all the time with these numbers.</div>
<div><br></div><div>(NULL, meaning when I var_dump the freeswitch ESL event, the event is simply NULL, not a populated event object.)</div><div><br></div><div>Any ideas?</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>