[Freeswitch-users] Extend DTMF console logging

Grant Bagdasarian GB at cm.nl
Wed Jun 4 13:17:57 MSD 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140604/8d6511a3/attachment.html 


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