On Wednesday 20 October 2021 at 20:41:22, David Villasmil wrote:
if you enable xml_cdr, you will get an "app_log" array containing everything.
Really? xml_cdr sounds (and looks from its config file) to me like it records CDRs, which are a summary of call legs, durations, billing, etc. I'm looking for something which tells me, when a call comes in and gets processed, which parts of the dialplan are doing the processing, so I can correct my errors by spotting where it goes wrong. Asterisk logs will show me each line of each context which a call gets processed through, so I can tell "ah! that should not go there - it should go here instead". What's the equivalent for FreeSwitch - or alternatively, how does anyone else debug their dialplans?
On Wed, Oct 20, 2021 at 3:09 PM Avi Marcus <avi@avimarcus.net> wrote:
I think what you want is:
Open fs_cli (with /log 7 if not already enabled)
Also you read afterards in /var/log/freeswitch/freeswitch.log (depending on your distro/config)
That seems to be *extraordinarily* verbose - it's telling me *everything* FreeSwitch is thinking about. I'm just trying to follow the processing of a call through the dialplan.
I suggest modifying logfile.conf.xml to add: <param name="uuid" value="true"/> so that you can do a grep to see just one call in the logs. (and "reload mod_logfile" to make configuration take effect)
-Avi Marcus BestFone
On Wed, Oct 20, 2021 at 4:10 PM Antony Stone wrote:
Hi.
I'm just getting the hang of FreeSwitch (long-time user of Asterisk), and wondering:
- is there a way to get FS to log dialplan actions as they are executed?
Basically, the equivalent of Asterisk's "messages", or even better, "verbose" log files.
I'm looking for a way to see how FS is processing calls as they come in, so I can be sure my dialplans are doing what I think they should be.
I know I can add "log" actions of my own, but is there something that will simply log each dialplan action automatically?
Antony.
-- It is also possible that putting the birds in a laboratory setting inadvertently renders them relatively incompetent. - Daniel C Dennett Please reply to the list; please *don't* CC me.