[Freeswitch-users] Extend DTMF console logging

Grant Bagdasarian GB at cm.nl
Mon Jun 16 15:07:28 MSD 2014


Thanks for the input. I didn’t have the uuid logging enabled.
I’ll do it your way, much easier than modifying code and running into trouble  ☺

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Friday, June 6, 2014 12:14 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Extend DTMF console logging

Out of curiosity, are you actually watching the console in this scenario? The reason I ask is that if you need to see which channel sent the DTMF then you probably have multiple concurrent calls. However, if you have multiple concurrent calls then you probably have all sorts of console debug messages flying up the screen.
If you are looking at the freeswitch.log file after the fact then you can take a step in the right direction by enabling uuid logging. In conf/autoload_configs/logfile.conf.xml make sure this line is enabled:
<param name="uuid" value="true" />
Once you identify the uuid of the call in question you can then easily grep (or whatever) the log file for lines with that uuid. From there it will be easy to see the DTMFs only for that specific channel.
Just a thought...
-MC

On Wed, Jun 4, 2014 at 2:17 AM, Grant Bagdasarian <GB at cm.nl<mailto:GB at cm.nl>> wrote:
Hello,

In switch_channel.c line: 471 there is a function call to log the received DTMF. I believe there is one in switch_rtp.c as well.
Is it possible to extend this to also include on which channel the DTMF was received?

There is a channel reference available in the function, so it could be extended, I’m just not sure how to since I don’t know C ☺

if (!sensitive) {
                switch_log_printf(SWITCH_CHANNEL_CHANNEL_LOG(channel), SWITCH_LOG_DEBUG, "RECV DTMF %c:%d\n", new_dtmf.digit, new_dtmf.duration);
}

FS_cli currently only logs something like: switch_channel.c:471: RECV DTMF 1:200.
It would be convenient to see something like: switch_channel.c:471 sofia/outbound/1000 at 10.10.10.10:5060<mailto:sofia/outbound/1000 at 10.10.10.10:5060> RECV DTMF 1:200

Can someone show me how to? Or provide patch? Maybe add it to the master branch?

Thanks

Regards,

Grant

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140616/157fda15/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list