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 J
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@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