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. -- BASIC is to computer languages what Roman numerals are to arithmetic. Please reply to the list; please *don't* CC me.
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) 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 < Antony.Stone@freeswitch.open.source.it> 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.
-- BASIC is to computer languages what Roman numerals are to arithmetic.
Please reply to the list; please *don't* CC me.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
if you enable xml_cdr, you will get an "app_log" array containing everything. Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 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)
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 < Antony.Stone@freeswitch.open.source.it> 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.
-- BASIC is to computer languages what Roman numerals are to arithmetic.
Please reply to the list; please *don't* CC me.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Oh op didn't ask for this, but the full logs will show the dialplan evaluation and matching, not just what ended up being executed. Staring at those logs is how I experienced and understood how the dial plan worked. On Wed, Oct 20, 2021, 9:42 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
if you enable xml_cdr, you will get an "app_log" array containing everything. Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
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)
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 < Antony.Stone@freeswitch.open.source.it> 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.
-- BASIC is to computer languages what Roman numerals are to arithmetic.
Please reply to the list; please *don't* CC me.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
👍 true Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Wed, Oct 20, 2021 at 8:35 PM Avi Marcus <avi@avimarcus.net> wrote:
Oh op didn't ask for this, but the full logs will show the dialplan evaluation and matching, not just what ended up being executed.
Staring at those logs is how I experienced and understood how the dial plan worked.
On Wed, Oct 20, 2021, 9:42 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
if you enable xml_cdr, you will get an "app_log" array containing everything. Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
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)
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 < Antony.Stone@freeswitch.open.source.it> 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.
-- BASIC is to computer languages what Roman numerals are to arithmetic.
Please reply to the list; please *don't* CC me.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
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.
If you look at your /etc/freeswitch/conf/autoload_configs/logfile.conf.xml or wherever you have it, and your log file is at the debug level or greater, then all dialplan actions are logged, you get to see which condition its parsing and then you get to see which dialplan actions are actually executed for each condition. The difference between asterisk and freeswitch is that freeswitch does everything statically unless you say inline on a particular action. Also, turn on the parameter to prefix each line with the uuid, so you search for the next line containing that uuid, just like with asterisk you search for c000... . I hope this helps. On Wed, 20 Oct 2021 15:39:39 -0400, Antony Stone wrote:
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.
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una covici@ccs.covici.com
On Fri, Oct 22, 2021 at 12:13 PM Antony Stone < Antony.Stone@freeswitch.open.source.it> wrote:
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?
The app_log helps. It shows which applications were executed. Here is an example: <app_log> <application app_name="set" app_data="hold_music=local_stream://moh" app_stamp="1634291972221409"/> <application app_name="set" app_data="transfer_ringback=local_stream://moh" app_stamp="1634291972221589"/> <application app_name="set" app_data="call_timeout=60" app_stamp="1634291972222178"/> <application app_name="set" app_data="hangup_after_bridge=true" app_stamp="1634291972222358"/> <application app_name="set" app_data="ignore_early_media=true" app_stamp="1634291972222539"/> <application app_name="set" app_data="effective_callee_id_name=fax" app_stamp="1634291972222771"/> <application app_name="set" app_data="sip_callee_id_number=fax" app_stamp="1634291972222961"/> <application app_name="set" app_data="continue_on_fail=true" app_stamp="1634291972223152"/> <application app_name="set" app_data="fax_enable_t38=true" app_stamp="1634291972223727"/> <application app_name="set" app_data="sip_execute_on_image=t38_gateway peer nocng" app_stamp="1634291972223932"/> <application app_name="bridge" app_data="{sip_cid_type=none,sip_execute_on_image=t38_gateway self nocng,media_mix_inbound_outbound_codecs=true,hold_music=local_stream://moh,transfer_ringback=local_stream://moh}[origination_caller_id_name=0311112222,origination_caller_id_number=0311112222]sofia/internal/ 40DD809595F58EA0ACFC@127.0.0.1" app_stamp="1634291972224122"/> </app_log>
Go to switch.conf.xml and set the logging to debug and to the same on console.Conf.xml. You get a lot of stuff since it’s on debug, but you will see the dialplan being executed step by step. On Fri, 22 Oct 2021 at 06:17, mayamatakeshi <mayamatakeshi@gmail.com> wrote:
On Fri, Oct 22, 2021 at 12:13 PM Antony Stone < Antony.Stone@freeswitch.open.source.it> wrote:
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?
The app_log helps. It shows which applications were executed. Here is an example:
<app_log> <application app_name="set" app_data="hold_music=local_stream://moh" app_stamp="1634291972221409"/> <application app_name="set" app_data="transfer_ringback=local_stream://moh" app_stamp="1634291972221589"/> <application app_name="set" app_data="call_timeout=60" app_stamp="1634291972222178"/> <application app_name="set" app_data="hangup_after_bridge=true" app_stamp="1634291972222358"/> <application app_name="set" app_data="ignore_early_media=true" app_stamp="1634291972222539"/> <application app_name="set" app_data="effective_callee_id_name=fax" app_stamp="1634291972222771"/> <application app_name="set" app_data="sip_callee_id_number=fax" app_stamp="1634291972222961"/> <application app_name="set" app_data="continue_on_fail=true" app_stamp="1634291972223152"/> <application app_name="set" app_data="fax_enable_t38=true" app_stamp="1634291972223727"/> <application app_name="set" app_data="sip_execute_on_image=t38_gateway peer nocng" app_stamp="1634291972223932"/> <application app_name="bridge" app_data="{sip_cid_type=none,sip_execute_on_image=t38_gateway self nocng,media_mix_inbound_outbound_codecs=true,hold_music=local_stream://moh,transfer_ringback=local_stream://moh}[origination_caller_id_name=0311112222,origination_caller_id_number=0311112222]sofia/internal/ 40DD809595F58EA0ACFC@127.0.0.1" app_stamp="1634291972224122"/> </app_log>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Friday 22 October 2021 at 13:25:46, David Villasmil wrote:
Go to switch.conf.xml and set the logging to debug and to the same on console.Conf.xml.
You get a lot of stuff since it’s on debug, but you will see the dialplan being executed step by step.
Thanks; I think I'm getting the hang of this :) Antony. -- I don't know, maybe if we all waited then cosmic rays would write all our software for us. Of course it might take a while. - Ron Minnich, Los Alamos National Laboratory Please reply to the list; please *don't* CC me.
Also the dialplan in FS is evaluated before execution, not line by line like Asterisk, See also inline=true from confluence to get a way to set a variable as it is evaluated. /b On Fri, Oct 22, 2021 at 6:47 AM David Villasmil < david.villasmil.work@gmail.com> wrote:
Go to switch.conf.xml and set the logging to debug and to the same on console.Conf.xml.
You get a lot of stuff since it’s on debug, but you will see the dialplan being executed step by step.
On Fri, 22 Oct 2021 at 06:17, mayamatakeshi <mayamatakeshi@gmail.com> wrote:
On Fri, Oct 22, 2021 at 12:13 PM Antony Stone < Antony.Stone@freeswitch.open.source.it> wrote:
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?
The app_log helps. It shows which applications were executed. Here is an example:
<app_log> <application app_name="set" app_data="hold_music=local_stream://moh" app_stamp="1634291972221409"/> <application app_name="set" app_data="transfer_ringback=local_stream://moh" app_stamp="1634291972221589"/> <application app_name="set" app_data="call_timeout=60" app_stamp="1634291972222178"/> <application app_name="set" app_data="hangup_after_bridge=true" app_stamp="1634291972222358"/> <application app_name="set" app_data="ignore_early_media=true" app_stamp="1634291972222539"/> <application app_name="set" app_data="effective_callee_id_name=fax" app_stamp="1634291972222771"/> <application app_name="set" app_data="sip_callee_id_number=fax" app_stamp="1634291972222961"/> <application app_name="set" app_data="continue_on_fail=true" app_stamp="1634291972223152"/> <application app_name="set" app_data="fax_enable_t38=true" app_stamp="1634291972223727"/> <application app_name="set" app_data="sip_execute_on_image=t38_gateway peer nocng" app_stamp="1634291972223932"/> <application app_name="bridge" app_data="{sip_cid_type=none,sip_execute_on_image=t38_gateway self nocng,media_mix_inbound_outbound_codecs=true,hold_music=local_stream://moh,transfer_ringback=local_stream://moh}[origination_caller_id_name=0311112222,origination_caller_id_number=0311112222]sofia/internal/ 40DD809595F58EA0ACFC@127.0.0.1" app_stamp="1634291972224122"/> </app_log>
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
participants (6)
-
Antony Stone
-
Avi Marcus
-
Brian West
-
David Villasmil
-
John Covici
-
mayamatakeshi