Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Putting a notice in the logs from the dialplan


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ish at pack-net.co.uk
Guest





PostPosted: Thu May 01, 2014 8:37 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

Hi

Using asterisk 1.8


NoOp and Verbose both put messages into the logs as VERBOSE, is there any way to put a message into the logs as NOTICE from within a dial plan?


Thanks in advance


Ish

--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
mjordan at digium.com
Guest





PostPosted: Thu May 01, 2014 9:25 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

On Thu, May 1, 2014 at 8:37 AM, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Quote:
Hi

Using asterisk 1.8


NoOp and Verbose both put messages into the logs as VERBOSE, is there any way to put a message into the logs as NOTICE from within a dial plan?


Thanks in advance






Nope, unfortunately not.


It would be a relatively trivial addition to add a dialplan application that could emit an Asterisk logging message at any one of the various levels, if someone were interested.


Matt


--
Matthew Jordan

Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
Back to top
SWheeler at usinternet...
Guest





PostPosted: Thu May 01, 2014 9:29 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

On Thu, May 1, 2014 at 8:37 AM, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Hi


Using asterisk 1.8



NoOp and Verbose both put messages into the logs as VERBOSE, is there any way to put a message into the logs as NOTICE from within a dial plan?



Thanks in advance






What about the Log application? It is available on our Asterisk 1.8.26 box.

Connected to Asterisk 1.8.26.0
Verbosity is at least 3
CLI> core show application Log

-= Info about application 'Log' =-

[Synopsis]
Send arbitrary text to a selected log level.

[Description]
Sends an arbitrary text message to a selected log level.

[Syntax]
Log(level,message)

[Arguments]
level
Level must be one of 'ERROR', 'WARNING', 'NOTICE', 'DEBUG', 'VERBOSE'
or 'DTMF'.
message
Output text message.

[See Also]
Not available
Back to top
ish at pack-net.co.uk
Guest





PostPosted: Thu May 01, 2014 9:39 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

That works a treat, thank you.


On 1 May 2014 15:28, Steven Wheeler <SWheeler@usinternet.com (SWheeler@usinternet.com)> wrote:
Quote:

On Thu, May 1, 2014 at 8:37 AM, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Hi
 

Using asterisk 1.8

 

NoOp and Verbose both put messages into the logs as VERBOSE, is there any way to put a message into the logs as NOTICE from within a dial plan?

 

Thanks in advance

 





What about the Log application? It is available on our Asterisk 1.8.26 box.

Connected to Asterisk 1.8.26.0
Verbosity is at least 3
CLI> core show application Log
 
  -= Info about application 'Log' =-
 
[Synopsis]
Send arbitrary text to a selected log level.
 
[Description]
Sends an arbitrary text message to a selected log level.
 
[Syntax]
Log(level,message)
 
[Arguments]
level
    Level must be one of 'ERROR', 'WARNING', 'NOTICE', 'DEBUG', 'VERBOSE'
    or 'DTMF'.
message
    Output text message.
 
[See Also]
Not available




--
_____________________________________________________________________
-- 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




--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
mjordan at digium.com
Guest





PostPosted: Fri May 02, 2014 8:52 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

On Thu, May 1, 2014 at 9:39 AM, Ishfaq Malik <ish@pack-net.co.uk> wrote:
Quote:

That works a treat, thank you.


On 1 May 2014 15:28, Steven Wheeler <SWheeler@usinternet.com> wrote:
Quote:

On Thu, May 1, 2014 at 8:37 AM, Ishfaq Malik <ish@pack-net.co.uk> wrote:

Hi



Using asterisk 1.8



NoOp and Verbose both put messages into the logs as VERBOSE, is there any way to put a message into the logs as NOTICE from within a dial plan?



Thanks in advance



What about the Log application? It is available on our Asterisk 1.8.26 box.


Connected to Asterisk 1.8.26.0

Verbosity is at least 3

CLI> core show application Log



-= Info about application 'Log' =-



[Synopsis]

Send arbitrary text to a selected log level.



[Description]

Sends an arbitrary text message to a selected log level.



[Syntax]

Log(level,message)



[Arguments]

level

Level must be one of 'ERROR', 'WARNING', 'NOTICE', 'DEBUG', 'VERBOSE'

or 'DTMF'.

message

Output text message.



[See Also]

Not available




Ha! Just when you think you've found every corner of Asterisk, you
turn around and there's something else.

Just goes to show, you learn something new every day.

--
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- 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
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Fri May 02, 2014 8:54 am    Post subject: [asterisk-users] Putting a notice in the logs from the dialp Reply with quote

Quote:
From: Matthew Jordan <mjordan@digium.com>

Quote:
Ha! Just when you think you've found every corner of Asterisk, you
turn around and there's something else.

Just goes to show, you learn something new every day.

Look on the bright side, you did say it would be easy to write just such a module...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services