青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

八葉草

學習資料記錄

asterisk 調試 設置

Logging

Sometimes, when debugging an issue, it's useful to see and log extra information and at

other times, you want logging to be minimal. Asterisk provides a number of ways of

logging information, to files or to a syslog server. The file /etc/asterisk/logger.conf

contains the configuration elements for logging. Asterisk has different types of message

that can be logged these are:

 

 

Verbose

General 'chatter' about what is

happening on the system.

Verbosity levels greater than 3

display dialplan commands as

they are executed. This

generates lots of log information

Debug

Debug messages, normally only

used by programmers to extract

extended information

Notice

Non urgent alert messages

Warning

Warning alert messages,

something happened that might

be bad. Some tell you how bad

the warning is

Error

Error messages, something bad

happened – These should be rare.

In logger.conf you will see the [logfiles] section, this is where you define the filename

and content of log files. Take a look at this example entry

[logfiles]

debug => debug

This tells Asterisk to log debug messages (the right side of the =>) to a file called debug

(the left side of the =>) located in /var/log/asterisk/. This directory can be changed in

/etc/asterisk/asterisk.conf by modifying the line astlogdir => /var/log/asterisk to point

to the desired directory. You can log multiple information types to the same file or you

can spread the information over a number of files. For example

[logfiles]

debug => debug

messages=>warning, error

Will log debug messages to a file called debug, and will also log warning and error

messages to a file called messages. There is a special “file” called console which when

used will cause the message types specified to be logged to the Asterisk console, for

example:

[logfiles]

console => debug, warning, error, notice, verbose

Would log everything to the console (not to any files). The above is not recommended

since the amount of information that would be generated could be far to much to be of

any real use. If you change logger.conf you need to perform a reload or do a logger

rotate (see next section). You can also log messages to a syslog sever (remote logging

server), useful if you have either a lot of machines or want centralized logging. To do

this use the file syslog, with the suffix you will use in /etc/syslog.conf for example, in

logger.conf

[logfiles]

syslog.local0 => debug, warning, error, notice, verbose

And /etc/syslog.conf

 

 

local0.* @192.168.1.22

This would send the Asterisk logging information to the syslog server at 192.168.1.22.

Setting up a syslog server is beyond the scope of this document and is left as an exercise

for the reader.
Rotate logs

It is advisable to rotate your logs frequently, depending on the amount of logging you

have turned on and the about of data that is actually logged. Files larger than 2Gb can

cause some nasty effects resulting in Asterisk crashes. You can rotate logs by using the

command

logger rotate

This will rename the old log and start a new one. It will also reload logger.conf and

adopt any changes you have made to it.

Verbosity

You can change the verbosity (how much information we get) of the output on processes attached to the Asterisk console by setting the level of verbosity. To do this we use the set verbose command, for example:

set verbose 999

Sets the verbosity level to 999, Asterisk will tell you that the level of verbosity changed

asterisk*CLI> set verbose 999

Verbosity is at least 999

asterisk*CLI>

You should see every message when it is set to this level, whereas setting it to 1 will

show very little information.


Setting the verbosity level changes the level on every attached

process (connected via asterisk -r) not just the one you issue the

command from.

Getting to Grips with sip.conf

sip.conf is not difficult to understand, however there is a fundamental problem with SIP making it awkward to use. The problem is not so much with SIP itself, it's more to do with how we protect our networks. We all know that there are some nasty little people out there who are quite happy to steal your resources, make free calls using someone else's money etc. As a consequence of this we tend to put a firewall between them and us. This is where the problems start for SIP. In a network environment that requires no firewall, for example and Internal network, there will be no issues, but in a more complex network, perhaps using NAT (Network address translation) there are all sorts of hurdles to overcome.

You have a number of choices,






sip set debug on 設置顯示更多的sip信息
sip set debug off關閉顯示更多的sip信息
SIP Channels are only shown if registered
SIP SHOW INUSE will list all SIP extensions defined in SIP.CONF
SIP SHOW CHANNELS will list all SIP extensions registered at that time
sip set debug - Enable SIP debugging
sip set debug ip - Enable SIP debugging on IP
sip set debug off - Disable SIP debugging
sip set debug peer - Enable SIP debugging on Peername



stop gracefully 優雅地停止asterisk
stop now 立即停止運行asterisk
core show codecs 顯示所有支持的編解碼器

set verbose 10
set debug 10


core set debug channel - Enable/disable debugging on a channel
core set debug - Set level of debug chattiness
core set debug off - Turns off debug chattiness
core set verbose - Set level of verboseness

core show calls {uptime}: Display information on calls


logger set level {DEBUG|NOTICE}: Enables/Disables a specific logging level for this console
logger set level debug off

posted on 2012-07-14 07:39 八葉草 閱讀(1078) 評論(1)  編輯 收藏 引用 所屬分類: asterisk

評論

# re: asterisk 調試 設置 2015-07-13 16:48 頂頂

頂頂頂頂頂  回復  更多評論   

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美激情欧美狂野欧美精品| 久久一二三区| 香蕉av福利精品导航| 国产视频一区欧美| 国产精品久久久久久模特| 免费中文字幕日韩欧美| 午夜精品一区二区三区电影天堂| 91久久精品国产91久久性色tv| 欧美一区二区三区视频| 亚洲一区二区在线看| 99re热这里只有精品免费视频| 尤物精品国产第一福利三区 | 99av国产精品欲麻豆| 亚洲国产成人porn| 亚洲第一成人在线| 亚洲精品久久久久久久久久久久久| 欧美国产日韩免费| 91久久精品一区| 日韩一级免费| 亚洲中无吗在线| 久久国产精品一区二区三区| 欧美一级专区免费大片| 久久国产加勒比精品无码| 久久九九国产精品怡红院| 久久久噜噜噜久久中文字幕色伊伊 | 欧美成人视屏| 欧美一级黄色录像| 午夜国产不卡在线观看视频| 亚洲国产成人91精品| 欧美夫妇交换俱乐部在线观看| 欧美激情中文字幕一区二区| 欧美激情在线播放| 国产精品久久午夜| 国产亚洲精品v| 亚洲国产精品电影| 亚洲一级电影| 亚洲午夜久久久久久尤物| 欧美一区二视频| 亚洲大片av| 一片黄亚洲嫩模| 欧美一级专区免费大片| 欧美r片在线| 国产精品久久久久影院亚瑟| 欧美激情综合| 国产一区二区三区黄视频| 亚洲精品国产精品国自产在线 | 久久久综合精品| 亚洲精品国产日韩| 久久av红桃一区二区小说| 欧美精品一区三区在线观看| 国产亚洲一区在线播放| 一本色道久久综合亚洲精品不卡 | 亚洲性感激情| 欧美gay视频激情| 亚洲自拍偷拍麻豆| 久久久久高清| 国产欧美日韩精品丝袜高跟鞋| 亚洲国产精品女人久久久| 欧美专区在线播放| 一本色道久久综合精品竹菊 | 国产欧美亚洲日本| 亚洲免费大片| 久久综合色影院| 一本大道久久a久久综合婷婷 | 久久综合一区二区| 亚洲欧洲日韩综合二区| 久久免费观看视频| 99国产精品久久久久久久| 午夜视频一区二区| 亚洲精品欧美精品| 亚洲精品国久久99热| 久久国产精品一区二区| 亚洲精品在线视频观看| 销魂美女一区二区三区视频在线| 欧美国产欧美亚洲国产日韩mv天天看完整| 亚洲欧洲一二三| 快she精品国产999| 在线电影一区| 久久精品视频网| 亚洲视频在线一区| 欧美视频一区二区三区四区| 夜夜嗨av一区二区三区网页| 亚洲国产成人午夜在线一区| 久久一二三四| 亚洲品质自拍| 久久免费国产| 老司机成人网| 亚洲激情小视频| 亚洲激情二区| 欧美视频网站| 欧美一区二区| 久久久久成人精品| 亚洲人成网站777色婷婷| 亚洲国产精品成人一区二区| 欧美大成色www永久网站婷| 亚洲国产专区校园欧美| 亚洲国产欧美在线人成| 欧美深夜福利| 午夜综合激情| 女同性一区二区三区人了人一| 亚洲影视在线播放| 久久久久久久久久久久久久一区| 日韩一级不卡| 久久天天躁狠狠躁夜夜爽蜜月| 亚洲一级在线观看| 免费久久99精品国产| 欧美一级免费视频| 欧美日韩国产成人精品| 美国成人毛片| 国产午夜精品理论片a级探花 | 亚洲精品久久久久久下一站| 国产欧美日韩在线| 欧美在线资源| 日韩视频在线播放| 久久久久久久久久久成人| 亚洲欧美日韩一区二区| 欧美精品www| 欧美成人tv| 激情综合久久| 欧美一区二区视频97| 亚洲在线免费观看| 欧美精品亚洲| 91久久精品久久国产性色也91| 伊人蜜桃色噜噜激情综合| 欧美在线你懂的| 久久成人av少妇免费| 欧美黄色一区| 一区在线播放| 欧美中文在线免费| 久久久久久999| 国产一区二区看久久| 午夜视频一区二区| 久久久www| 精品51国产黑色丝袜高跟鞋| 欧美一区二区三区四区视频 | 久久久噜噜噜久久人人看| 国产精品久久久久久久久久久久久| 亚洲精品久久久久久久久久久久久| 亚洲欧洲日韩在线| 欧美精品一区二区高清在线观看| 欧美激情一区二区三区高清视频| 激情综合中文娱乐网| 久久天堂av综合合色| 亚洲福利视频三区| 一区二区激情小说| 国产精品视频网| 性一交一乱一区二区洋洋av| 欧美在线观看日本一区| 狠狠色狠狠色综合日日tαg | 亚洲性图久久| 久久九九精品| 在线色欧美三级视频| 农村妇女精品| 日韩午夜激情| 欧美一区二区三区日韩| 一区精品久久| 欧美日韩黄视频| 亚洲一区二区四区| 久久频这里精品99香蕉| 亚洲日本在线观看| 国产精品久久久久9999高清| 欧美一区二区三区在线观看视频| 免费在线日韩av| 亚洲色图在线视频| 国外成人性视频| 欧美乱人伦中文字幕在线| 亚洲小视频在线观看| 免费成人黄色av| 亚洲一区二区在线免费观看| 国产精品色网| 欧美成人资源| 午夜精品影院在线观看| 亚洲国产欧美日韩精品| 欧美亚洲在线观看| 亚洲理论在线| 国语自产精品视频在线看抢先版结局 | 久久国产精品毛片| 日韩一级免费| 精品999久久久| 国产精品成人aaaaa网站| 久久久久久久欧美精品| 亚洲午夜在线| 亚洲另类春色国产| 欧美成人在线免费视频| 欧美在线电影| 亚洲主播在线播放| 亚洲剧情一区二区| 在线日韩电影| 黑人巨大精品欧美黑白配亚洲| 欧美色偷偷大香| 欧美激情第三页| 久久全国免费视频| 欧美一区二区三区免费观看| 亚洲天堂av图片| 在线日韩av片| 激情六月综合| 国内精品久久久| 国产日韩精品一区| 国产精品v日韩精品| 欧美久久久久久久|