NULL ESL events on hangups to certain numbers
I use the ESL to listen to Freeswitch 1.2 for call events. The events I'm listening to are CHANNEL_HANGUP and CUSTOM. 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. (NULL, meaning when I var_dump the freeswitch ESL event, the event is simply NULL, not a populated event object.) Any ideas?
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: "variable_sip_full_from": "\\"\\" <sip:4145551234@example.com
;tag=v97m192HgemNN",
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. On Tue, Feb 18, 2014 at 8:30 AM, Josh Nankin <jnankin@gmail.com> wrote:
I use the ESL to listen to Freeswitch 1.2 for call events. The events I'm listening to are CHANNEL_HANGUP and CUSTOM.
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.
(NULL, meaning when I var_dump the freeswitch ESL event, the event is simply NULL, not a populated event object.)
Any ideas?
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. 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. On Fri, Feb 21, 2014 at 12:49 PM, Josh Nankin <jnankin@gmail.com> wrote:
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:
"variable_sip_full_from": "\\"\\" <sip:4145551234@example.com
;tag=v97m192HgemNN",
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.
On Tue, Feb 18, 2014 at 8:30 AM, Josh Nankin <jnankin@gmail.com> wrote:
I use the ESL to listen to Freeswitch 1.2 for call events. The events I'm listening to are CHANNEL_HANGUP and CUSTOM.
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.
(NULL, meaning when I var_dump the freeswitch ESL event, the event is simply NULL, not a populated event object.)
Any ideas?
participants (1)
-
Josh Nankin