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

八葉草

學習資料記錄

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 優(yōu)雅地停止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>
            欧美日韩在线播放一区二区| 久久亚洲欧美国产精品乐播| 欧美日一区二区三区在线观看国产免 | 亚洲狼人综合| 亚洲精品在线三区| 欧美视频在线一区| 欧美在线91| 久久久久久亚洲精品杨幂换脸| 在线日韩欧美视频| 91久久夜色精品国产网站| 欧美成人午夜免费视在线看片| 野花国产精品入口| 亚洲一级电影| 1000部精品久久久久久久久| 亚洲日本成人女熟在线观看| 国产精品超碰97尤物18| 久久精品一区蜜桃臀影院| 久久在线观看视频| 亚洲一区在线播放| 久久人体大胆视频| 制服丝袜激情欧洲亚洲| 欧美在线高清| 一本色道久久综合狠狠躁篇怎么玩| 中文精品视频| 最新日韩在线| 午夜亚洲福利在线老司机| 最新日韩中文字幕| 羞羞视频在线观看欧美| 亚洲精品一区二区三区四区高清| 亚洲午夜性刺激影院| 亚洲国产91精品在线观看| 一区二区三区久久网| 一区精品久久| 亚洲欧美精品suv| 亚洲精品一区在线观看香蕉| 午夜在线精品偷拍| 一本综合精品| 免费毛片一区二区三区久久久| 亚洲免费在线| 欧美精品18+| 欧美成ee人免费视频| 国产日韩精品电影| 亚洲深夜福利在线| av成人黄色| 欧美激情中文字幕乱码免费| 久久免费99精品久久久久久| 国产精品手机视频| 日韩视频久久| 一本色道久久综合狠狠躁的推荐| 久久综合中文色婷婷| 久久五月天婷婷| 国产一区 二区 三区一级| 亚洲一区二区在线视频| 99riav国产精品| 欧美国产第二页| 亚洲国产欧洲综合997久久| 伊人久久噜噜噜躁狠狠躁| 性做久久久久久久久| 欧美一区二区三区男人的天堂 | 亚洲一区二区三区四区视频| 最近中文字幕mv在线一区二区三区四区 | 亚洲免费av电影| 男人天堂欧美日韩| 欧美高清视频一区二区三区在线观看 | 久久影视三级福利片| 麻豆国产精品va在线观看不卡| 国产亚洲激情| 久久精品视频一| 久久亚洲二区| 亚洲国产天堂久久综合| 欧美18av| 亚洲精品一线二线三线无人区| 亚洲精品免费观看| 欧美日韩国产小视频在线观看| 亚洲精品少妇| 香蕉亚洲视频| 黑人一区二区三区四区五区| 久久久高清一区二区三区| 牛牛影视久久网| 亚洲精品看片| 国产精品久久久久久久9999| 亚洲欧美综合精品久久成人| 久久精品在线播放| 亚洲第一视频| 欧美精品在线观看| 亚洲一级黄色av| 久久久久久久97| 亚洲精品日韩综合观看成人91| 欧美日韩国产综合视频在线观看| 亚洲天堂av高清| 久久嫩草精品久久久久| 亚洲精品中文字幕有码专区| 国产精品二区在线| 欧美一区二粉嫩精品国产一线天| 久热精品视频在线免费观看| 日韩视频不卡中文| 国产精品资源在线观看| 久久精品视频在线播放| 亚洲精品一区二区三区樱花| 先锋影音一区二区三区| 亚洲国产精品日韩| 国产精品视频一| 蜜臀av在线播放一区二区三区| 亚洲免费电影在线观看| 久久亚洲欧美国产精品乐播| av成人免费观看| 一区二区三区在线观看欧美 | 欧美在线黄色| 亚洲美女黄网| 久久久久欧美| 午夜精品免费在线| 亚洲日本欧美天堂| 国产在线观看91精品一区| 欧美成人午夜激情| 欧美有码视频| 亚洲一二区在线| 亚洲成人在线视频播放 | 亚洲欧美日韩中文播放| 亚洲国产精品一区二区www在线| 亚洲一区二区影院| 亚洲精品久久久久久久久久久久| 国产欧美视频一区二区三区| 欧美片在线播放| 久久久久久97三级| 亚洲午夜av电影| 亚洲精品国产拍免费91在线| 久久综合网色—综合色88| 亚洲一区二区三区久久| 亚洲精品美女久久久久| 欲香欲色天天天综合和网| 国产日韩精品一区二区三区| 欧美日韩一区二区三区免费| 欧美激情视频一区二区三区不卡| 久久精品一区中文字幕| 午夜精品短视频| 亚洲欧美日韩在线不卡| 一区二区欧美日韩视频| 99视频一区| 在线亚洲免费| 亚洲永久免费| 亚欧成人在线| 久久se精品一区二区| 欧美在线播放视频| 久久国产精品久久w女人spa| 欧美在线影院在线视频| 久久爱www.| 久久久久久综合| 麻豆91精品| 麻豆久久久9性大片| 美女久久一区| 欧美激情综合亚洲一二区| 欧美精品二区三区四区免费看视频| 欧美韩日高清| 欧美体内she精视频| 国产精品视频一二| 国产一区视频网站| 亚洲国产精品久久久久婷婷884| 亚洲经典自拍| 一本色道久久综合亚洲精品不卡| 亚洲视频免费| 久久国产精品久久久| 久久爱www久久做| 欧美成人在线免费观看| 亚洲破处大片| 亚洲一区二区三区激情| 久久国产精品网站| 欧美精品v国产精品v日韩精品| 欧美日韩国产首页在线观看| 国产精品日本精品| 一区二区三区在线观看视频| 日韩视频在线你懂得| 亚洲欧美日韩天堂| 欧美成年人视频网站欧美| 99国产一区二区三精品乱码| 亚洲自拍高清| 欧美aaa级| 国产女优一区| 亚洲精品视频免费| 欧美一区二区视频网站| 蜜桃av一区| 在线中文字幕日韩| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美区一区二区三区| 国产一区二区高清视频| 一区二区三区欧美激情| 久久精品一区二区三区中文字幕| 91久久精品一区| 久久成人精品电影| 国产精品成人一区二区三区吃奶| 一区二区三区无毛| 亚洲欧美中文字幕| 91久久国产自产拍夜夜嗨| 欧美夜福利tv在线| 国产精品成人一区二区三区夜夜夜 | 亚洲高清激情| 久久精品免费电影| 国产精品99久久久久久人| 欧美aa在线视频| 一区二区三区中文在线观看| 香蕉久久精品日日躁夜夜躁|