[asterisk-dev] CLI filtering
critch
critch at basesys.com
Thu Jan 18 23:38:38 MST 2007
On Thu, 2007-01-18 at 18:27 -0800, John Todd wrote:
> I would be very much in favor of "tagging" from a dialplan-accessible
> (and AMI-accessible) trigger, which could either tag things in the
> debug log or raise a call to the console output. I have very busy
> systems with only particular calls that create problems, and it would
> be nice to only see the output from the calls that I tag in a certain
> way, or redirect the output from those specific calls to a custom
> debug log.
>
> exten => 1234,1,Debug(track-me,debug,tricky-problem)
> exten => 1234,n,Dial(SIP/blah)
> exten => 1234,n,Debug(track-me,none)
>
> then, in logger.conf, a line like this:
>
> track-me => adhoc
> where "adhoc" is a special logging level that takes it's level
> dynamically from the dialplan/AMI.
>
> The /var/log/asterisk/track-me file would contain something like this
> appended on it's end, where the tag would be inserted into the output
> file or stream, and then would stop as soon as the Debug command was
> called with a "none" option. Any output, debugs, warnings, or
> verbose messages associated with that leg (or any spawned legs) would
> be tagged with whatever was in the "Debug" application call. This
> could also be used to modify the output to the console, if the word
> "console" was used as the specified channel for debug output.
Your idea of an application being able to add tags to a channel from the
dialplan makes me happy. It solves the tag by callerid that I am
interested in. It solves many by call tagging problems really. You could
do a quick dialplan logic to select out the specific call you are
wanting to track and add the tag there. Then you could apply the filter
to it.
Not sure if I am a fan of the logger.conf portion, but I don't see that
as being a bad thing. Most posts in this thread have been about limiting
what came to the CLI. By being able to select 1 or 2 tags that are
interesting and those tags possibly being dynamically set by a dialplan
app makes me very excited.
--
critch <critch at basesys.com>
More information about the asterisk-dev
mailing list