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

八葉草

學(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)  編輯 收藏 引用 所屬分類(lèi): 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>
            国产精品二区二区三区| 欧美一区二区成人6969| 亚洲一区二区动漫| 亚洲全部视频| 久久精品欧美日韩| 性做久久久久久久久| 欧美日韩成人网| 欧美大学生性色视频| 国产亚洲网站| 亚洲午夜国产一区99re久久| 在线视频免费在线观看一区二区| 久久久一区二区| 久久婷婷色综合| 国产欧美日韩综合精品二区| 一区二区三区**美女毛片 | 欧美刺激午夜性久久久久久久| 欧美在线国产精品| 欧美亚韩一区| 一区二区三区精密机械公司| 一区二区三区毛片| 欧美精品一区二区三区很污很色的 | 夜夜狂射影院欧美极品| 99国内精品| 欧美久久一级| 亚洲精品资源| 亚洲视频在线观看免费| 欧美日韩国内自拍| 99精品热视频| 亚洲午夜电影在线观看| 欧美色一级片| 一级日韩一区在线观看| 午夜国产欧美理论在线播放 | 欧美国产国产综合| 亚洲精品综合| 亚洲在线国产日韩欧美| 国产精品白丝黑袜喷水久久久| aa日韩免费精品视频一| 亚洲欧美国产高清va在线播| 国产美女精品免费电影| 欧美资源在线| 欧美激情在线观看| 亚洲视频在线视频| 国产欧美精品| 久久久亚洲国产天美传媒修理工| 欧美激情中文不卡| 亚洲一区二区三区精品在线| 国产精品午夜久久| 久久综合福利| 99国产精品| 久久久精品免费视频| 在线成人激情视频| 欧美日韩高清免费| 欧美一区网站| 亚洲国产91色在线| 亚洲欧美成人一区二区在线电影 | 狠狠入ady亚洲精品经典电影| 另类激情亚洲| 亚洲专区在线| 欧美国产极速在线| 亚洲欧美日韩成人| 黄色精品一区| 欧美日韩精品在线视频| 欧美一区二区三区久久精品 | 夜夜夜久久久| 久久久亚洲国产天美传媒修理工| 亚洲精品美女在线观看| 国产日韩精品一区观看| 欧美国产欧美亚洲国产日韩mv天天看完整| 亚洲一级免费视频| 欧美激情按摩| 欧美一区二区三区男人的天堂| 亚洲人精品午夜| 国产一区二区黄色| 欧美特黄一级大片| 麻豆久久精品| 欧美在线精品一区| 亚洲一区二区欧美日韩| 亚洲高清不卡在线| 久久精品视频免费观看| 一区二区欧美视频| 亚洲国产精品一区二区久| 国产亚洲欧美激情| 国产精品第一区| 欧美成人官网二区| 久久九九热免费视频| 亚洲主播在线播放| 在线天堂一区av电影| 欧美激情在线观看| 久久综合给合久久狠狠色| 午夜精品福利在线观看| 亚洲理伦在线| 亚洲精品欧洲精品| 亚洲国产岛国毛片在线| 国内精品福利| 国产伦精品一区二区三区在线观看| 欧美精品日日鲁夜夜添| 欧美va亚洲va日韩∨a综合色| 欧美在线黄色| 久久er精品视频| 先锋影音国产精品| 欧美一区二区黄| 亚洲欧美一区二区原创| 亚洲一区bb| 亚洲一区二区不卡免费| 亚洲性线免费观看视频成熟| 一本色道久久综合亚洲精品高清 | 亚洲第一久久影院| 欧美成人一区二区三区| 免费不卡在线观看| 欧美不卡高清| 欧美高清影院| 亚洲国产精品va在线观看黑人| 嫩草成人www欧美| 欧美高清视频一区二区| 欧美成人免费大片| 亚洲激情国产| 亚洲精品在线视频| 亚洲视频久久| 亚洲一区二区三区国产| 午夜伦理片一区| 欧美在线高清视频| 久久久久五月天| 欧美国产一区二区三区激情无套| 欧美精品日本| 国产精品影院在线观看| 国内精品免费午夜毛片| 亚洲激情视频在线播放| 日韩天堂在线视频| 亚洲一区免费观看| 久久精品首页| 亚洲电影一级黄| 一本色道久久综合亚洲精品不 | 欧美大片一区二区| 欧美日韩国产限制| 国产精品一卡二| 影音先锋中文字幕一区二区| 亚洲精品一品区二品区三品区| 亚洲在线电影| 老妇喷水一区二区三区| 亚洲精品中文字幕在线观看| 亚洲一区二区在线| 久久综合五月| 欧美视频专区一二在线观看| 国产日韩欧美综合在线| 亚洲人成7777| 久久国产主播| 亚洲精品极品| 欧美中文在线观看国产| 欧美日韩ab| 在线日韩av片| 亚洲自拍偷拍一区| 欧美福利在线| 亚洲一区二区在线观看视频| 美女网站久久| 国产婷婷一区二区| 99在线精品免费视频九九视| 久久深夜福利免费观看| 亚洲美洲欧洲综合国产一区| 欧美在线免费视屏| 欧美亚洲第一页| 亚洲精品九九| 模特精品在线| 欧美一区二区性| 欧美性理论片在线观看片免费| 在线精品观看| 久久精品国语| 中文欧美在线视频| 欧美精品一区二区在线播放| 韩国精品在线观看| 欧美一区二区三区在线播放| 91久久中文| 久久综合九色| 国产一区二区三区不卡在线观看| 亚洲视频在线观看视频| 亚洲人成网站在线观看播放| 久久永久免费| 极品少妇一区二区三区精品视频| 欧美亚洲在线播放| 99精品福利视频| 欧美日韩另类综合| 一本色道久久综合狠狠躁篇的优点 | 一区二区三区成人| 欧美日韩国产综合视频在线观看中文| 亚洲电影免费观看高清完整版在线| 久久精品国产99精品国产亚洲性色 | 亚洲欧洲日韩女同| 蜜臀91精品一区二区三区| 久久国产精品久久精品国产| 国产欧美精品一区| 欧美伊人影院| 午夜在线一区二区| 国产午夜精品视频| 久久久www| 久久久91精品国产| 娇妻被交换粗又大又硬视频欧美| 久久久www成人免费精品| 欧美一区二区视频97| 黑丝一区二区| 蜜臀久久99精品久久久久久9 | 国产精品成人播放|