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

Matthew Jordan mjordan at digium.com
Fri May 2 08:52:18 CDT 2014


On Thu, May 1, 2014 at 9:39 AM, Ishfaq Malik <ish at pack-net.co.uk> wrote:
>
> That works a treat, thank you.
>
>
> On 1 May 2014 15:28, Steven Wheeler <SWheeler at usinternet.com> wrote:
>>
>> On Thu, May 1, 2014 at 8:37 AM, Ishfaq Malik <ish at 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



More information about the asterisk-users mailing list