Re: [asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-14 Thread Steve Edwards

Un-top-posting and de-crufting...


On Mon, Nov 14, 2011 at 3:19 AM, Tristram Cheer wrote:



I'm using DumpChan(1001)...



I would like to dump this output to a file specifically for DumpChan...


On Mon, 14 Nov 2011, Warren Selby wrote:

If you call DumpChan from an AGI you should be able to read the response 
programmatically and then dump the data into a database. Cleans up your 
dialplan but requires some scripting or programming knowledge (php, 
perl, bash or even C) in order to write the AGI.


If you execute the dumpchan() application from an AGI, the output is still 
via Asterisk's logging mechanism.


If your logging level is high enough, that output will be logged. If you 
log to syslogd, it will be as a single line. I don't know what it looks 
like if you log to files.


In any case, I'd say this is a bad approach because the 'verbosity' level 
is too volatile. Some people (me), automagically* bump up verbosity when 
they access the Asterisk console and then automagically set it back to 0 
when they exit the console.


Perhaps executing dumpchan() via AMI would be more promising.

*) Via shell scripting.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-13 Thread Warren Selby
If you call DumpChan from an AGI you should be able to read the response 
programmatically and then dump the data into a database. Cleans up your 
dialplan but requires some scripting or programming knowledge (php, perl, bash 
or even C) in order to write the AGI. 

Thanks,
--Warren Selby, dCAP

On Nov 13, 2011, at 11:14 PM, Tristram Cheer  wrote:

> Hi Sammy,
> 
> It's a good start, Atleast being split it is handy, Ideally I'd to be able to 
> spit DumpChan output direct to JabberSend or func_ODBC but I fear this will 
> require someone who know's C to alter the module. I think i'm going to have 
> to just use JabberSend for each variable I use and the channel details which 
> is going to blow out the size of the dialplan a bit but I cant see another 
> way around it
> 
> 
> Cheers
> 
> On 14 November 2011 18:07, Sammy Govind  wrote:
> Hello,
> Reading about the application DumpChan() shows this:
> 
> [Synopsis]
> Dump Info About The Calling Channel.
> 
> [Description]
> Displays information on channel and listing of all channel variables. If
>  is specified, output is only displayed when the verbose level is
> currently set to that number or greater.
> 
> [Syntax]
> DumpChan([level])
> 
> So in theory its just another Verbose output on CLI, you can separate Verbose 
> logging to another file in logger.conf. Your verbose level is 1001 so 
> whenever you set "core set verbose 1001" this DumpChan() application will 
> start dumping output in CLI and then fro there be logged in the Verbose 
> logging file.
> 
> I don't think this is exactly what you require.
> 
> --
> Regards,
> Sammy
> 
> On Mon, Nov 14, 2011 at 3:19 AM, Tristram Cheer  
> wrote:
> Hi All,
> 
> Hopefully this is considered on-topic for this list.
> 
> I'm using DumpChan(1001) in a Macro called debug in order to debug issues 
> within the dialplan, I would like to dump this output to a file specifically 
> for DumpChan output but I'm having issues with figuring out how to do this 
> under logger.conf. Ideally I would like to put DumpChan into SQL using 
> func_ODBC but it seems that you can't do this so runner up is a file.
> 
> Anyone have any pointers on how to do this? I would like to log DumpChan 
> output and only DumpChan output to a separate file.
> 
> 
> Cheers!
> 
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-13 Thread Tristram Cheer
Hi Sammy,

It's a good start, Atleast being split it is handy, Ideally I'd to be able
to spit DumpChan output direct to JabberSend or func_ODBC but I fear this
will require someone who know's C to alter the module. I think i'm going to
have to just use JabberSend for each variable I use and the channel details
which is going to blow out the size of the dialplan a bit but I cant see
another way around it


Cheers

On 14 November 2011 18:07, Sammy Govind  wrote:

> Hello,
> Reading about the application DumpChan() shows this:
>
> [Synopsis]
> Dump Info About The Calling Channel.
>
> [Description]
> Displays information on channel and listing of all channel variables. If
>  is specified, output is only displayed when the verbose level is
> currently set to that number or greater.
>
> [Syntax]
> DumpChan([level])
>
> So in theory its just another Verbose output on CLI, you can separate
> Verbose logging to another file in logger.conf. Your verbose level is 1001
> so whenever you set "core set verbose 1001" this DumpChan() application
> will start dumping output in CLI and then fro there be logged in the
> Verbose logging file.
>
> I don't think this is exactly what you require.
>
> --
> Regards,
> Sammy
>
> On Mon, Nov 14, 2011 at 3:19 AM, Tristram Cheer <
> trist...@tristramcheer.com> wrote:
>
>> Hi All,
>>
>> Hopefully this is considered on-topic for this list.
>>
>> I'm using DumpChan(1001) in a Macro called debug in order to debug issues
>> within the dialplan, I would like to dump this output to a file
>> specifically for DumpChan output but I'm having issues with figuring out
>> how to do this under logger.conf. Ideally I would like to put DumpChan into
>> SQL using func_ODBC but it seems that you can't do this so runner up is a
>> file.
>>
>> Anyone have any pointers on how to do this? I would like to log DumpChan
>> output and only DumpChan output to a separate file.
>>
>>
>> Cheers!
>>
>> --
>> _
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>   http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-13 Thread Anton Kvashenkin
Maybe this can help
http://www.russellbryant.net/blog/2011/03/04/debugging-the-asterisk-dialplan-with-verbose/

2011/11/14 Tristram Cheer 

> Hi All,
>
> Hopefully this is considered on-topic for this list.
>
> I'm using DumpChan(1001) in a Macro called debug in order to debug issues
> within the dialplan, I would like to dump this output to a file
> specifically for DumpChan output but I'm having issues with figuring out
> how to do this under logger.conf. Ideally I would like to put DumpChan into
> SQL using func_ODBC but it seems that you can't do this so runner up is a
> file.
>
> Anyone have any pointers on how to do this? I would like to log DumpChan
> output and only DumpChan output to a separate file.
>
>
> Cheers!
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-13 Thread Sammy Govind
Hello,
Reading about the application DumpChan() shows this:

[Synopsis]
Dump Info About The Calling Channel.

[Description]
Displays information on channel and listing of all channel variables. If
 is specified, output is only displayed when the verbose level is
currently set to that number or greater.

[Syntax]
DumpChan([level])

So in theory its just another Verbose output on CLI, you can separate
Verbose logging to another file in logger.conf. Your verbose level is 1001
so whenever you set "core set verbose 1001" this DumpChan() application
will start dumping output in CLI and then fro there be logged in the
Verbose logging file.

I don't think this is exactly what you require.

--
Regards,
Sammy

On Mon, Nov 14, 2011 at 3:19 AM, Tristram Cheer
wrote:

> Hi All,
>
> Hopefully this is considered on-topic for this list.
>
> I'm using DumpChan(1001) in a Macro called debug in order to debug issues
> within the dialplan, I would like to dump this output to a file
> specifically for DumpChan output but I'm having issues with figuring out
> how to do this under logger.conf. Ideally I would like to put DumpChan into
> SQL using func_ODBC but it seems that you can't do this so runner up is a
> file.
>
> Anyone have any pointers on how to do this? I would like to log DumpChan
> output and only DumpChan output to a separate file.
>
>
> Cheers!
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Logging Specific Verbose Level To Seperate File

2011-11-13 Thread Tristram Cheer
Hi All,

Hopefully this is considered on-topic for this list.

I'm using DumpChan(1001) in a Macro called debug in order to debug issues
within the dialplan, I would like to dump this output to a file
specifically for DumpChan output but I'm having issues with figuring out
how to do this under logger.conf. Ideally I would like to put DumpChan into
SQL using func_ODBC but it seems that you can't do this so runner up is a
file.

Anyone have any pointers on how to do this? I would like to log DumpChan
output and only DumpChan output to a separate file.


Cheers!
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users