Thanks to Volodymyr Morskyy for sending his tip!
This is a good tip to illustrate how to do conditional debugging in the voice space:
At first you need to configure "call filter match-list <tag num> voice" then in this match-list you need to specify what are you trying to filter (ex. incoming or outgoing calling/called number) and finally, before enabling debug (for example debug isdn q931), set "debug condition match-list <tag num> partial/full match".
In the console you'll see only information related to your filter.
Note: All tips published in the Cisco Technical Services Newsletter are reviewed by Cisco technical support engineers; however, the Cisco Technical Services Newsletter and Cisco cannot guarantee the accuracy or completeness of these tips.
To receive the latest information on Cisco online tools, certifications, support documentation, insights from Cisco experts and peers, and upcoming events, check out the Cisco Technical Services Newsletter today.