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

八葉草

學習資料記錄

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 八葉草 閱讀(1079) 評論(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国产精品酒店日本| 亚洲欧洲在线免费| 国内精品一区二区| 国产精品天天摸av网| 国产精品普通话对白| 国产精品网站在线播放| 国产日韩在线不卡| 黄色成人av在线| 亚洲精品影院| 亚洲欧美国产视频| 久久精品国产精品亚洲| 免费亚洲电影在线观看| 亚洲国产精品久久久久秋霞不卡 | 久久久精品性| 榴莲视频成人在线观看| 亚洲精品韩国| 小处雏高清一区二区三区| 老司机午夜免费精品视频| 欧美日韩一区二区高清| 国产三级欧美三级日产三级99| 亚洲国产另类久久久精品极度| 一区二区三区视频观看| 久久视频一区| 日韩视频一区二区三区在线播放 | 亚洲视频久久| 狂野欧美一区| 国产精品视频久久一区| 亚洲国产精品免费| 性欧美暴力猛交另类hd| 亚洲第一免费播放区| 亚洲欧美激情视频| 欧美精品三级| 亚洲国产综合在线| 久久久久www| 亚洲一区二区三区高清不卡| 欧美不卡视频| 在线看片成人| 久久久久久久999| 亚洲欧美成人综合| 欧美三级在线视频| 韩国三级电影一区二区| 国产精品久久久久三级| 亚洲福利一区| 久久资源av| 午夜精品视频网站| 欧美性一区二区| 中文网丁香综合网| 91久久久精品| 免费欧美视频| 最新成人在线| 欧美黄色免费网站| 久久漫画官网| 亚洲第一色中文字幕| 久久久久久一区| 亚洲欧美日韩精品在线| 国产精品久久久久久av福利软件| 99re8这里有精品热视频免费 | 欧美激情一二区| 亚洲国产日韩在线一区模特| 老司机免费视频久久| 欧美在线一二三| 国产在线精品成人一区二区三区| 欧美一区二区三区久久精品茉莉花 | 欧美一区二区三区免费观看| 国产精品欧美日韩一区二区| 亚洲一区中文字幕在线观看| 99re这里只有精品6| 欧美色播在线播放| 亚洲欧美清纯在线制服| 午夜在线成人av| 国内成人精品2018免费看| 免费在线欧美视频| 欧美不卡视频一区发布| 制服丝袜亚洲播放| 亚洲一区二区在| 国产亚洲aⅴaaaaaa毛片| 久久久久久久一区二区三区| 久久精品99国产精品日本| 亚洲激情网站| av成人天堂| 国产亚洲va综合人人澡精品| 久久综合给合久久狠狠色| 久久综合久久综合久久| 亚洲免费黄色| 亚洲伊人久久综合| 在线成人h网| 亚洲免费观看视频| 国产亚洲一区二区在线观看| 欧美福利精品| 国产精品久久久免费| 免费在线欧美黄色| 国产精品www| 美日韩在线观看| 久久男女视频| 亚洲精品一级| 亚洲一区二区在线视频 | 国产欧美日韩精品丝袜高跟鞋| 久久免费精品视频| 欧美日韩中文在线| 麻豆精品视频| 国产精品视频成人| 女人香蕉久久**毛片精品| 欧美亚州韩日在线看免费版国语版| 久久久久亚洲综合| 欧美日韩精品在线播放| 久久美女艺术照精彩视频福利播放| 欧美jizzhd精品欧美巨大免费| 亚洲欧美伊人| 欧美日韩成人一区| 欧美成人亚洲成人| 国产欧美一区二区三区久久| 亚洲国产精品一区二区三区| 国产日韩欧美视频在线| 日韩午夜在线观看视频| 亚洲福利电影| 欧美一区二区在线看| 亚洲天堂网站在线观看视频| 美日韩免费视频| 美女黄色成人网| 国内成人精品2018免费看 | 久久夜色精品国产噜噜av| 欧美日本亚洲| 亚洲国产精品电影| 亚洲精品一二| 免费在线观看日韩欧美| 久久噜噜亚洲综合| 国产午夜精品美女毛片视频| 一区二区三区久久精品| 亚洲老板91色精品久久| 蜜臀av一级做a爰片久久 | 欧美制服丝袜第一页| 欧美午夜寂寞影院| 一本久道久久综合婷婷鲸鱼 | 暖暖成人免费视频| 精品不卡一区| 久久精品亚洲一区二区三区浴池| 午夜在线观看免费一区| 国产精品国产亚洲精品看不卡15| 亚洲精品综合| 在线午夜精品自拍| 国产精品日韩二区| 午夜精品福利视频| 久久久久久久久久久成人| 红桃视频国产精品| 美女精品在线观看| 亚洲国产精品久久久久秋霞影院| 亚洲日本va午夜在线影院| 欧美国产日韩一区二区在线观看 | 99国产精品久久久久老师| 欧美精品乱码久久久久久按摩| 亚洲三级国产| 亚洲二区精品| 欧美好骚综合网| 一二美女精品欧洲| 午夜一区二区三区不卡视频| 国产欧美va欧美不卡在线| 欧美在线日韩精品| 欧美国产精品专区| 一区二区激情小说| 国产精品视频网| 久久久精品国产免大香伊| 欧美激情亚洲视频| 亚洲小说欧美另类婷婷| 国产亚洲成av人在线观看导航 | 激情综合在线| 欧美激情精品久久久久久久变态| 一区二区三区久久网| 久久精品在线观看| 99热免费精品| 国产视频久久久久久久| 免费欧美高清视频| 亚洲伊人观看| 亚洲国产精品成人| 久久精品国产亚洲精品| 亚洲乱亚洲高清| 国产在线视频欧美一区二区三区| 欧美顶级少妇做爰| 午夜精品亚洲| 一本久道久久综合中文字幕| 老司机午夜精品| 亚洲一区二区精品视频| 在线电影国产精品| 国产欧美综合在线| 欧美特黄视频| 欧美岛国激情| 久久婷婷久久| 午夜精品在线观看| 亚洲老司机av| 亚洲电影观看| 久久在线免费观看| 欧美一级久久久| 一区二区欧美视频| 91久久国产综合久久| 国产一区二区三区黄视频| 国产精品美女诱惑| 欧美另类69精品久久久久9999| 久久综合色播五月| 久久www成人_看片免费不卡| 亚洲午夜在线视频| 亚洲欧洲中文日韩久久av乱码|