[asterisk-users] Asterisk console filtering and logging

Jonathan Creasy jcreasy at netlogic.net
Fri Jul 6 08:51:04 CDT 2007


Tzafrir Cohen wrote:
> On Thu, Jul 05, 2007 at 08:09:32AM +0400, Eugene Prokopiev wrote:
>   
>> Hi,
>>
>> Is it possible to filter messages on asterisk console, which was started 
>> with -vvvv, to see messages only for one extensions? By default there 
>> are all messages for any extensions displayed so dialplan debuging is 
>> very difficult.
>>     
>
> tail -f /var/log/asterisk/full | grep whatever
>
> or egrep.
>
> Or get your favorite log watcher program.
>
>   
>> Is it possible to log such console messages:
>>
>> ...
>>      -- Executing Set("SIP/10.0.0.1-0061f5d0", "CDR(userfield)=2422718")
>>      -- Executing Dial("SIP/10.0.0.1-0061f5d0", "SIP/708,25,tT")
>> ...
>>
>> to file. I can't find any suitable option in logger.conf
>>     
>
> There are many excellent log watcher pograms which do essentially what I
> described above.
>
>   
To filter console messages you can use "asterisk -r | grep -A 2 -B 2 
'interesting stuff'"




More information about the asterisk-users mailing list