Quantcast
Channel: 北風研究室
Viewing all articles
Browse latest Browse all 93

Asterisk ログにタイムスタンプを表示

$
0
0

Asterisk CLIで接続して表示されるログには、デフォルトで日時がないのですが、オプションで表示することができます。

1) CLI起動時に指定

# /usr/sbin/asterisk -rTvvvvvv

2) asterisk.conf で指定

asterisk.conf 
...
[options]
...
timestamp = yes  ; 起動時の -T と同じ
...

結果

# /usr/sbin/asterisk -rvvvvvT
[Dec  1 12:14:10] Asterisk 13.6.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
[Dec  1 12:14:10] Created by Mark Spencer 
[Dec  1 12:14:10] Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
[Dec  1 12:14:10] This is free software, with components licensed under the GNU General Public
[Dec  1 12:14:10] License version 2 and other licenses; you are welcome to redistribute it under
[Dec  1 12:14:10] certain conditions. Type 'core show license' for details.
[Dec  1 12:14:10] =========================================================================
[Dec  1 12:14:10] Connected to Asterisk 13.6.0 currently running on localhost (pid = 49788)
... 省略 ...
[Dec  1 12:19:14]     -- Executing [201@default:2] Playback("SIP/301-00000001", "demo-echotest") in new stack
[Dec  1 12:19:14]     --  Playing 'demo-echotest.gsm' (language 'ja')              
... 省略 ...
localhost*CLI> 

Viewing all articles
Browse latest Browse all 93

Trending Articles