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

八葉草

學習資料記錄

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>
            99国产精品久久久久老师 | 日韩网站在线观看| 久久久久国产精品一区三寸| 99精品福利视频| 欧美性猛交一区二区三区精品| 欧美在线观看一区二区三区| 国产精自产拍久久久久久| 亚洲精品在线观看免费| 免费亚洲一区| 欧美激情精品久久久久| 欧美极品欧美精品欧美视频| 影音先锋欧美精品| 一区二区精品在线| 国内伊人久久久久久网站视频| 午夜精品亚洲| 99国产精品久久| 樱桃成人精品视频在线播放| 在线播放视频一区| 亚洲欧美激情视频| 欧美一区1区三区3区公司| 欧美一区二区三区免费视频| 麻豆精品视频| 欧美性猛交99久久久久99按摩 | 亚洲欧美久久久久一区二区三区| 一区在线免费观看| 久久人人爽爽爽人久久久| 亚洲久久在线| 国产精品视频精品视频| 国产精品久久久久久久久免费 | 韩国久久久久| 亚洲韩日在线| 一本色道久久综合亚洲91| 欧美日韩免费在线| 午夜精品一区二区三区在线| 国产精品三级视频| 久久大综合网| 欧美午夜精品久久久久久久 | 久久久久久穴| 久久精品国产亚洲一区二区| 日韩亚洲欧美一区| 欧美一级艳片视频免费观看| 日韩一级大片| 在线观看日韩| 一区二区三区欧美亚洲| 欧美另类视频在线| 亚洲激情精品| 美女视频黄a大片欧美| 欧美午夜剧场| 欧美va亚洲va日韩∨a综合色| 免费观看一级特黄欧美大片| 亚洲国产精品成人| 一本色道久久综合亚洲精品婷婷| 在线亚洲激情| 久久国产婷婷国产香蕉| 亚洲主播在线| 欧美激情综合亚洲一二区| 美腿丝袜亚洲色图| 亚洲破处大片| 欧美日韩综合网| 久久综合狠狠综合久久综青草| 欧美91福利在线观看| 夜夜嗨av一区二区三区网站四季av| 欧美在线观看一区| 亚洲精品中文字| 国产精品免费小视频| 午夜精品短视频| 久久久国产精品一区二区三区| 亚洲伦理自拍| 亚洲欧洲一区二区三区在线观看| 久热精品在线视频| 欧美日韩精品二区| 亚洲精品护士| 亚洲欧美中文日韩在线| 国产精品自在线| 欧美日韩国产一级片| 亚洲午夜激情| 国产精品一香蕉国产线看观看| 欧美一区深夜视频| 日韩午夜激情av| 国产精品久久久久久户外露出 | 影音先锋欧美精品| 国产精品户外野外| 欧美午夜大胆人体| 男女精品视频| 久久国产精品一区二区| 亚洲精一区二区三区| 国内偷自视频区视频综合| 欧美日韩另类视频| 久久久激情视频| 西西裸体人体做爰大胆久久久| 亚洲欧洲av一区二区三区久久| 一本不卡影院| 亚洲一级影院| 国产精品99久久久久久www| 国产亚洲视频在线| 国产精品久久久亚洲一区 | 欧美精品在线免费播放| 亚洲天堂免费观看| 性高湖久久久久久久久| 国产综合色在线| 久久久99精品免费观看不卡| 亚洲特色特黄| 亚洲激情二区| 亚洲国产综合视频在线观看| 亚洲欧美电影在线观看| 亚洲专区一区二区三区| 国产主播一区二区| 国产女主播一区二区| 国产精品亚洲人在线观看| 欧美日韩第一区| 国产一区91| 亚洲电影专区| 亚洲一区国产视频| 亚洲欧美中文日韩在线| 久久综合中文字幕| 一区二区欧美国产| 久久精品最新地址| 欧美日韩在线播| 快播亚洲色图| 亚洲婷婷在线| 久久综合九色九九| 性欧美大战久久久久久久久| 久热爱精品视频线路一| 国产精品免费aⅴ片在线观看| 午夜精品在线看| 99re亚洲国产精品| 欧美一区二区三区四区在线观看| 欧美成人在线网站| 久久裸体视频| 欧美黄在线观看| 免费在线亚洲| 99精品久久| 欧美福利视频在线观看| 国产乱人伦精品一区二区 | 亚洲视频图片小说| 欧美a级一区二区| 一区二区av在线| 亚洲伊人第一页| 在线不卡中文字幕播放| 亚洲电影观看| 欧美性片在线观看| 欧美sm重口味系列视频在线观看| 日韩天天综合| 欧美日韩一区在线视频| 亚洲高清不卡av| 久久综合伊人77777蜜臀| 欧美777四色影视在线| 亚洲精品久久久久久久久久久久| 亚洲国产精品免费| 国产精品综合色区在线观看| 亚洲欧美中文另类| 美日韩精品视频免费看| 亚洲精品一区二区在线观看| 亚洲国产专区校园欧美| 欧美日韩一级大片网址| 久久久久久久国产| 亚洲国产毛片完整版| 欧美在线91| 亚洲精品乱码久久久久久蜜桃麻豆 | 国产精品扒开腿做爽爽爽软件 | 欧美日韩国产91| 欧美一区二区三区播放老司机| 欧美国产欧美亚洲国产日韩mv天天看完整 | 亚洲免费婷婷| 欧美日韩国产小视频| 亚洲激情在线| 亚洲国产欧美在线| 欧美精品色网| 久久国产欧美精品| 99riav久久精品riav| 欧美日韩天堂| 久久午夜影视| 国产欧美日韩在线| 午夜精品久久久久久久99水蜜桃| 亚洲在线视频网站| 日韩亚洲视频在线| 国产精品久久久久久久久久三级 | 免费看黄裸体一级大秀欧美| 亚洲二区在线视频| 欧美成人精品一区二区三区| 免费永久网站黄欧美| 欧美丰满少妇xxxbbb| 久久成人av少妇免费| 欧美视频在线观看 亚洲欧| 日韩天堂av| 欧美+日本+国产+在线a∨观看| 一区二区三区在线视频免费观看| 亚洲日本欧美| 久久精品日产第一区二区三区| 可以看av的网站久久看| 先锋影音网一区二区| 欧美四级电影网站| 99re66热这里只有精品4| 亚洲国产美女| 欧美激情视频一区二区三区不卡| 99国产精品视频免费观看一公开 | 欧美亚洲日本国产| 欧美成人免费大片| 99xxxx成人网| 亚洲国产cao|