ChanSpy - how to ignore all DTMF

Hey all,

As it says in the title really, been using ChanSpy but cannot yet find a way to spy on a channel which completely ignores all DTMF input.

From what I can tell all options (including cdxX) allow overriding DTMF functionality, but will not remove it, even when putting it an invalid digit like x(a) just reverts back to default behaviour.

Is this possible at all, even if it’s from outside the ChanSpy application?

Thanks in advance!

EDIT: I am also using ConfBridge which has been working fine, but for whispering to a single channel this application cannot help.

Been doing some testing and I don’t believe this is possible, but there is a workaround that seems to be ok for my use case. The X (uppercase) option will redirect the channel, so when this happens call the same spy as before. Something like this:

[myContext]
exten => _[0-9#*],1,ChanSpy(,X)
 same => n,Hangup(16)

X goes to the digit extension in the current context (or context can be overridden with the channel variable SPY_EXIT_CONTEXT). So if any digit is pressed it will repeat what happened. Whilst not ideal and it does cause a minor “blip” in the audio stream, it is good enough for what I needed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.