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

八葉草

學(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 八葉草 閱讀(1080) 評(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>
            伊人久久成人| 欧美天天综合网| 亚洲大片在线| 欧美成人69| 一区二区三区视频免费在线观看| 亚洲综合视频一区| 国语自产精品视频在线看抢先版结局| 免费短视频成人日韩| 中文av一区特黄| 欧美韩日一区二区三区| 亚洲欧美日韩中文视频| 亚洲精品123区| 国产精品日日摸夜夜摸av| 欧美国产高清| 久久国产精品久久久久久久久久| 99国产一区二区三精品乱码| 蜜桃久久精品乱码一区二区| 午夜视频一区| 亚洲视频在线观看免费| 伊人精品成人久久综合软件| 亚洲激情黄色| 亚洲免费中文字幕| 久久视频在线看| 午夜久久美女| 欧美xx69| 亚洲国产精品高清久久久| 欧美日韩国产综合视频在线| 久久久夜色精品亚洲| 久久精品国产2020观看福利| 久久综合网hezyo| 久久精品亚洲精品国产欧美kt∨| 一本久道久久综合婷婷鲸鱼| 亚洲欧美中文另类| 亚洲欧美中日韩| 欧美成人在线网站| 国产在线精品二区| 国产日韩在线亚洲字幕中文| 国产日韩欧美日韩大片| 亚洲六月丁香色婷婷综合久久| 亚洲第一中文字幕| 亚洲欧美在线免费观看| 欧美国产精品一区| 亚洲激情在线观看| 亚洲国产另类 国产精品国产免费| 日韩视频中文字幕| 一本色道精品久久一区二区三区| 久久理论片午夜琪琪电影网| 欧美一区中文字幕| 欧美激情视频一区二区三区免费| 久久久夜精品| 国产美女一区| 极品尤物一区二区三区| 亚洲黄色尤物视频| 久久久久久久尹人综合网亚洲| 久久久久久久久综合| 宅男噜噜噜66一区二区66| 欧美激情自拍| 亚洲国产日韩一区| 免费在线看成人av| 久久黄色网页| 国产有码一区二区| 欧美在线视频观看| 亚洲成色www久久网站| 亚洲免费大片| 欧美黄色一区二区| 日韩视频在线免费| 久久久99久久精品女同性| 亚洲亚洲精品三区日韩精品在线视频| 午夜精品www| 国产欧美精品一区二区三区介绍| 亚洲国产精品免费| 亚洲欧美视频| 亚洲欧美不卡| 欧美日韩dvd在线观看| 日韩一区二区久久| 亚洲精品自在久久| 久久先锋资源| 国产精品国产三级国产专播品爱网 | 一本色道88久久加勒比精品| 欧美伊人久久| 欧美一级网站| 国产精品vip| 亚洲欧洲美洲综合色网| 亚洲欧美在线一区| 亚洲欧美在线观看| 亚洲第一中文字幕| 日韩视频永久免费观看| 国产视频在线观看一区二区三区| 欧美成人精品激情在线观看| 欧美日韩亚洲一区二区三区| 亚洲精品日产精品乱码不卡| 久久成人精品一区二区三区| 久久精品亚洲国产奇米99| 亚洲欧洲在线免费| 亚洲视频欧美在线| 在线成人欧美| 一本色道久久综合亚洲精品小说 | 亚洲大胆女人| 欧美在线视频一区二区| 久久av一区二区三区亚洲| 亚洲欧美日韩精品在线| 红桃视频一区| 日韩一区二区精品视频| 狠狠色综合网站久久久久久久| 亚洲黄色天堂| 国产一区在线免费观看| 99re66热这里只有精品3直播 | 久久久精品网| 亚洲一区二区三区高清| 亚洲国产精品精华液2区45 | 欧美成人蜜桃| 久久久精品一区| 欧美日韩一区二区免费视频| 久久先锋影音| 国产精品国产三级国产普通话蜜臀 | 国产精品久久久| 亚洲大片免费看| 韩国一区二区在线观看| 国产精品99久久久久久久久久久久 | 欧美日韩在线直播| 亚洲高清av在线| 狠狠综合久久| 欧美一区二区三区四区在线观看地址| 中文国产一区| 欧美色图五月天| 99pao成人国产永久免费视频| 亚洲狼人综合| 欧美成人按摩| 亚洲福利视频一区| 亚洲国产裸拍裸体视频在线观看乱了| 午夜精品国产精品大乳美女| 亚洲欧美日韩一区二区三区在线 | 激情五月婷婷综合| 欧美伊人久久久久久午夜久久久久 | 亚洲欧美日韩天堂| 欧美日韩一区二区在线观看 | 一本综合久久| 亚洲一区二区毛片| 欧美日韩一区二区在线视频| 亚洲精品影院在线观看| 亚洲视频在线观看视频| 国产精品多人| 午夜久久tv| 亚洲人成免费| 欧美aⅴ99久久黑人专区| 午夜在线视频观看日韩17c| 欧美在线视频免费观看| 亚洲午夜羞羞片| 亚洲一区二区欧美日韩| 亚洲欧美制服另类日韩| 久久福利视频导航| 国产有码在线一区二区视频| 久久久久久九九九九| 女仆av观看一区| 亚洲欧洲日韩女同| 欧美日韩亚洲一区三区 | 久久综合影视| 欧美电影美腿模特1979在线看| 亚洲国产成人精品久久| 欧美精品久久99久久在免费线| 日韩一区二区精品| 久久国产精品久久w女人spa| 91久久嫩草影院一区二区| 国产精品成人v| 久久精品盗摄| 99视频一区二区三区| 久久精品电影| 欧美精品v日韩精品v国产精品 | 亚洲第一在线| 欧美丝袜一区二区三区| 欧美一区网站| 亚洲国产成人精品久久| 亚洲一区国产| 在线精品视频在线观看高清 | 欧美一区三区二区在线观看| 女生裸体视频一区二区三区| 亚洲小说区图片区| 在线免费不卡视频| 国产精品欧美风情| 一区二区三区四区五区精品视频| 欧美一级淫片aaaaaaa视频| 亚洲国产成人精品久久| 国产精品网曝门| 欧美高清在线| 久久狠狠久久综合桃花| 一本色道**综合亚洲精品蜜桃冫 | 欧美一区二区视频网站| 亚洲精美视频| 猛干欧美女孩| 久久高清免费观看| 亚洲免费在线视频| 在线一区观看| 国产精品久久国产精品99gif| 久久免费视频一区| 欧美亚洲三级| 亚洲男人的天堂在线| 99国产一区| 91久久夜色精品国产九色| 欧美aa在线视频| 可以免费看不卡的av网站|