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

八葉草

學(xué)習(xí)資料記錄

asterisk 調(diào)試 設(shè)置

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 設(shè)置顯示更多的sip信息
sip set debug off關(guān)閉顯示更多的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 優(yōu)雅地停止asterisk
stop now 立即停止運(yùn)行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 八葉草 閱讀(1086) 評(píng)論(1)  編輯 收藏 引用 所屬分類: asterisk

評(píng)論

# re: asterisk 調(diào)試 設(shè)置 2015-07-13 16:48 頂頂

頂頂頂頂頂  回復(fù)  更多評(píng)論   

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            久久精品国产欧美激情| 久久久久久9| 这里只有精品视频| 国产精品扒开腿做爽爽爽视频| 国产精品99久久久久久久vr| 日韩亚洲欧美综合| 国产精品日韩一区二区三区| 欧美综合激情网| 久久爱www久久做| 亚洲成人在线网站| 亚洲欧洲久久| 国产精品久久久久av| 久久国产一区二区三区| 久久久久久久综合狠狠综合| 亚洲精品中文字幕女同| 中文国产成人精品久久一| 国产欧美日韩高清| 亚洲国产精品t66y| 国产精品免费视频观看| 久久在线91| 欧美日韩一区二区免费在线观看| 午夜在线视频一区二区区别| 久久精品成人| 亚洲一区二区四区| 久久久综合激的五月天| 在线视频欧美日韩精品| 久久精品国产综合精品| 在线亚洲国产精品网站| 久久久久国产精品一区三寸| 一本久久精品一区二区| 欧美在线视频免费| 亚洲视频狠狠| 狂野欧美一区| 欧美在线观看一区| 欧美精品二区| 欧美91大片| 国产精品一区二区久久| 亚洲欧洲在线播放| 伊人精品在线| 亚洲欧美日韩高清| 亚洲小说欧美另类社区| 免费久久99精品国产自| 久久精品欧洲| 国产欧美一区二区三区久久人妖 | 欧美日韩在线播放三区| 麻豆久久精品| 国产欧美va欧美不卡在线| 亚洲国产另类精品专区| 亚洲电影免费在线观看| 亚洲欧美日韩精品久久亚洲区 | 一区二区日韩免费看| 亚洲国产精品久久人人爱蜜臀 | 欧美xxxx在线观看| 麻豆久久婷婷| 国产一区二区三区四区五区美女| 这里只有精品在线播放| 99热在线精品观看| 欧美88av| 亚洲片在线资源| 最新国产拍偷乱拍精品 | 亚洲午夜免费福利视频| 亚洲视频在线播放| 欧美日韩人人澡狠狠躁视频| 亚洲韩国精品一区| 日韩视频一区二区| 欧美乱在线观看| 日韩午夜av| 亚洲一区网站| 国产精品一区二区久激情瑜伽 | 久久亚洲综合色一区二区三区| 国产欧美日韩亚洲一区二区三区| 亚洲一区二区三区三| 欧美在线观看视频一区二区三区| 国产精品一香蕉国产线看观看 | 欧美专区亚洲专区| 久久综合图片| 亚洲日韩欧美视频一区| 欧美极品一区| 亚洲在线免费观看| 久久亚洲午夜电影| 亚洲精品麻豆| 欧美色欧美亚洲另类二区| 亚洲自拍偷拍色片视频| 久久九九热re6这里有精品| 1024日韩| 欧美久久久久久蜜桃| 亚洲无吗在线| 久久夜色精品国产欧美乱极品| 在线电影欧美日韩一区二区私密| 久久久久网站| 亚洲每日在线| 久久久久久久久久久久久久一区| 亚洲国产裸拍裸体视频在线观看乱了中文| 欧美成人中文字幕| 洋洋av久久久久久久一区| 欧美在线视频一区二区三区| 影音先锋亚洲一区| 欧美性做爰毛片| 久久福利毛片| 日韩一级在线| 美女脱光内衣内裤视频久久影院| 亚洲看片网站| 好吊日精品视频| 欧美日本精品| 久久国产欧美| 亚洲午夜免费视频| 亚洲国产精品久久久久秋霞蜜臀| 性做久久久久久免费观看欧美| 亚洲二区免费| 国产日本欧洲亚洲| 欧美日韩国产综合一区二区| 久久国产精品电影| 一本大道av伊人久久综合| 久久尤物视频| 欧美在线观看视频| 亚洲一区二区三区中文字幕在线 | 国产精品伦子伦免费视频| 久久综合免费视频影院| 亚洲欧美亚洲| 艳女tv在线观看国产一区| 欧美激情亚洲自拍| 久久亚洲图片| 久久精品动漫| 午夜精品久久一牛影视| 99国产精品久久久久久久成人热| 精品91在线| 黑人巨大精品欧美一区二区 | 国产精品欧美一区喷水| 欧美精品免费观看二区| 久久这里只有精品视频首页| 欧美一级日韩一级| 亚洲欧美另类中文字幕| 亚洲天堂男人| 亚洲一区在线免费观看| 一本一本久久a久久精品综合麻豆| 亚洲国产99精品国自产| 欧美国产日韩一二三区| 欧美国产乱视频| 欧美韩日一区二区三区| 欧美激情第4页| 欧美韩日一区二区| 亚洲国产精品成人| 亚洲破处大片| 99热这里只有精品8| 亚洲免费观看高清完整版在线观看熊| 亚洲国产成人精品女人久久久 | 一区二区三区高清在线观看| 亚洲精品视频在线观看免费| 91久久极品少妇xxxxⅹ软件| 亚洲韩日在线| 亚洲精品人人| 宅男精品导航| 先锋资源久久| 久久丁香综合五月国产三级网站| 久久久7777| 久久一二三国产| 欧美激情综合五月色丁香小说| 欧美日韩国产大片| 欧美亚州在线观看| 国产视频一区在线观看一区免费| 国模 一区 二区 三区| 尤妮丝一区二区裸体视频| 亚洲国产精品欧美一二99| 亚洲乱亚洲高清| 亚洲在线国产日韩欧美| 欧美在线综合视频| 美女精品在线观看| 亚洲精品黄色| 小嫩嫩精品导航| 免费在线观看精品| 欧美性大战久久久久久久| 国产一区二区三区电影在线观看| 亚洲第一精品夜夜躁人人爽| 中文在线一区| 久久久久国色av免费看影院| 亚洲国产欧美日韩精品| 亚洲欧美另类在线| 免费观看成人| 国产欧美一区二区三区沐欲| 亚洲电影在线观看| 亚洲欧美一区二区三区久久| 欧美69视频| 亚洲欧美国产高清| 欧美不卡一卡二卡免费版| 国产乱码精品一区二区三区五月婷| 18成人免费观看视频| 亚洲在线一区二区三区| 欧美韩国日本综合| 欧美诱惑福利视频| 欧美午夜视频一区二区| 在线观看国产精品淫| 久久成人羞羞网站| 亚洲美女淫视频| 久久亚洲精品视频| 国产一区免费视频| 亚洲综合成人婷婷小说| 亚洲国内自拍| 蜜臀av一级做a爰片久久| 国内成+人亚洲+欧美+综合在线| 亚洲午夜av在线|