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

八葉草

學習資料記錄

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 八葉草 閱讀(1086) 評論(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>
            在线视频日韩| 久久亚洲精品一区二区| 好吊日精品视频| 猫咪成人在线观看| 欧美日韩免费看| 久久三级视频| 麻豆精品在线观看| 一区二区电影免费观看| 亚洲欧美综合精品久久成人| 在线日韩欧美视频| 亚洲图片在线| 亚洲国产一区二区三区高清| 亚洲毛片在线看| 激情综合中文娱乐网| 日韩一二三在线视频播| 黄色欧美日韩| 亚洲免费人成在线视频观看| 亚洲第一精品久久忘忧草社区| 亚洲视频一区二区在线观看| 亚洲电影免费观看高清完整版在线| 一本色道久久综合亚洲二区三区| 亚洲第一区在线| 欧美一区二区啪啪| 亚洲在线一区二区三区| 欧美激情国产日韩精品一区18| 欧美影院成年免费版| 欧美女同视频| 欧美激情一区二区久久久| 国产精品一区二区三区观看| 亚洲精品国久久99热| 韩国v欧美v日本v亚洲v| 一区二区三区高清不卡| 亚洲人久久久| 久久一区二区三区超碰国产精品| 销魂美女一区二区三区视频在线| 欧美日韩中字| 亚洲精品国久久99热| 亚洲日本一区二区三区| 久久天天躁狠狠躁夜夜av| 久久久夜色精品亚洲| 国产精自产拍久久久久久| 99热在这里有精品免费| 亚洲精品一品区二品区三品区| 久久欧美中文字幕| 麻豆精品精华液| 国产亚洲欧美一区二区| 午夜视频在线观看一区| 欧美中文字幕久久| 欧美日韩在线一二三| 日韩视频永久免费观看| 在线视频精品一| 欧美视频一区在线| 亚洲视频在线视频| 欧美一区二区三区视频免费| 国产精品私拍pans大尺度在线| 亚洲欧美日产图| 久久漫画官网| 国内精品久久久久久久97牛牛| 久久av老司机精品网站导航| 久久精选视频| 在线看片第一页欧美| 久久人人超碰| 亚洲电影欧美电影有声小说| 一区二区欧美在线观看| 国产精品进线69影院| 午夜精品久久久| 毛片av中文字幕一区二区| 亚洲巨乳在线| 国产精品欧美日韩久久| 欧美一区二区大片| 亚洲高清成人| 亚洲欧美春色| 永久免费视频成人| 欧美麻豆久久久久久中文| 亚洲一级在线| 久久婷婷久久| 亚洲精一区二区三区| 国产精品久久久免费| 欧美在线免费观看视频| 欧美第一黄色网| 亚洲欧美一区二区视频| 国产精品国产精品国产专区不蜜| 亚洲免费成人| 久久精品一本| 99热在线精品观看| 国产麻豆午夜三级精品| 麻豆精品传媒视频| 先锋影音网一区二区| 欧美激情在线免费观看| 亚洲欧美日韩国产一区二区三区| 黄色成人av在线| 欧美日韩网址| 久久久久成人精品| 99re6热只有精品免费观看| 久久婷婷蜜乳一本欲蜜臀| 亚洲少妇自拍| 亚洲国产成人精品久久久国产成人一区 | 久久精品在线| 日韩视频一区二区三区在线播放| 国产精品久久久久久久久借妻| 久久久久高清| 久久se精品一区精品二区| 亚洲在线免费观看| 亚洲影视九九影院在线观看| 日韩视频免费在线| 亚洲精品国久久99热| 亚洲国产成人91精品| 欧美国产日产韩国视频| 欧美成人免费全部| 女生裸体视频一区二区三区| 久久久久久久97| 久久久国际精品| 久久一区中文字幕| 久久久天天操| 蜜桃伊人久久| 美女91精品| 欧美成人国产一区二区| 欧美不卡视频一区| 欧美激情视频在线免费观看 欧美视频免费一 | 欧美福利专区| 欧美激情视频一区二区三区免费| 欧美成人dvd在线视频| 亚洲福利视频一区二区| 亚洲国产裸拍裸体视频在线观看乱了| 欧美插天视频在线播放| 91久久国产自产拍夜夜嗨| 亚洲狠狠丁香婷婷综合久久久| 亚洲国内自拍| 制服诱惑一区二区| 亚洲欧美日韩人成在线播放| 欧美亚洲一区二区在线| 久久久精品网| 欧美激情区在线播放| 欧美日韩黄色一区二区| 国产精品一区二区久久久| 国模精品一区二区三区| 亚洲激情婷婷| 亚洲一区久久| 久久人体大胆视频| 亚洲高清视频的网址| 99视频一区| 欧美在线观看一二区| 欧美ab在线视频| 欧美色网一区二区| 激情文学综合丁香| 夜夜嗨av色一区二区不卡| 午夜精品久久久久久久久久久久久| 欧美中文字幕在线视频| 欧美国产高清| 亚洲专区一二三| 牛牛影视久久网| 国产欧美日韩精品在线| 最新亚洲视频| 欧美自拍丝袜亚洲| 亚洲国产日韩美| 午夜国产精品影院在线观看| 免费在线看成人av| 国产欧美日本| 在线亚洲伦理| 老司机精品视频一区二区三区| 日韩视频不卡| 玖玖精品视频| 国产欧美精品va在线观看| 亚洲精品中文字幕在线| 欧美一区高清| 一本久久a久久精品亚洲| 久久一区二区三区国产精品| 国产精品日本欧美一区二区三区| 在线国产欧美| 久久精品人人爽| 一本大道久久精品懂色aⅴ| 久久综合久色欧美综合狠狠| 国产精品看片资源| 99精品视频免费全部在线| 久久综合婷婷| 欧美一级一区| 国产精品久久综合| 亚洲一二三区精品| 亚洲激情六月丁香| 久久久久久国产精品mv| 国产视频亚洲精品| 性做久久久久久免费观看欧美| 亚洲九九九在线观看| 欧美freesex交免费视频| 伊人成人开心激情综合网| 欧美一级久久久久久久大片| 这里只有精品电影| 欧美日韩在线视频观看| 9久草视频在线视频精品| 欧美成人国产va精品日本一级| 久久精彩视频| 韩国久久久久| 久久精品中文字幕免费mv| 亚洲欧美日韩天堂一区二区| 国产精品区二区三区日本 | 亚洲国产欧美久久| 蜜桃av久久久亚洲精品| 久久国产欧美| 伊人久久噜噜噜躁狠狠躁| 蜜桃av噜噜一区|