# Asterisk.conf debug

**URL:** <https://community.asterisk.org/t/asterisk-conf-debug/2008>\
**Category:** Asterisk Support\
**Created:** [October 22, 2005, 1:50am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008 "2005-10-22T01:50:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccie2be](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@ccie2be](https://community.asterisk.org/u/ccie2be)\
**Post date:** [October 22, 2005, 1:50am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/1 "2005-10-22T01:50:52Z")

</div>

Hello,  
I would like to get more debug information in my messages log file. I saw on one of the development threads that debug variable was added to the asterisk.conf file. However, there is no informaion on what are the values expected or the variables needed to increase deug information in the messages log file. Please help.  
Thanks

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [October 22, 2005, 4:15am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/2 "2005-10-22T04:15:01Z")

</div>

Probably what you need is to start Asterisk with the -d option. From the Asterisk man page:

-d Enable extra debugging statements.

---

<div class="post-metadata">

**Author:** ![ccie2be](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@ccie2be](https://community.asterisk.org/u/ccie2be)\
**Post date:** [October 22, 2005, 4:28am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/3 "2005-10-22T04:28:49Z")

</div>

When I do this, the asterisk doesn’t go in the background. I would like to see the debug information in the messages.

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [October 22, 2005, 9:36am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/4 "2005-10-22T09:36:41Z")

</div>

Try uncommenting this line in /etc/asterisk/logger.conf :

;debug =\> debug

or this one:

;full =\> notice,warning,error,debug,verbose

---

<div class="post-metadata">

**Author:** ![ccie2be](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@ccie2be](https://community.asterisk.org/u/ccie2be)\
**Post date:** [October 22, 2005, 6:26pm UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/5 "2005-10-22T18:26:18Z")

</div>

[quote=“WillKemp”]Try uncommenting this line in /etc/asterisk/logger.conf :

;debug =\> debug

or this one:

;full =\> notice,warning,error,debug,verbose[/quote]

Hi, I tried it, it still gives me generic information no debug information. Thanks, any other suggestions. I am using the 1.2 beta-1

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [October 22, 2005, 9:04pm UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/6 "2005-10-22T21:04:47Z")

</div>

Well, it works for me! I’m using v1.2.

I uncommented the “full” line in logger.conf and that writes debug information to /var/log/asterisk/full. I also uncommented the following line:

syslog.local0 =\> notice,warning,error,debug

and added this line to /etc/syslog.conf :

local0.\* /var/log/asterisk/syslog

and did

killall -1 syslogd

to get syslogd to re-read it’s config file. Then i get debug output in /var/log/asterisk/syslog.

---

<div class="post-metadata">

**Author:** ![ccie2be](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@ccie2be](https://community.asterisk.org/u/ccie2be)\
**Post date:** [October 22, 2005, 11:37pm UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/7 "2005-10-22T23:37:22Z")

</div>

[quote=“WillKemp”]Well, it works for me! I’m using v1.2.

I uncommented the “full” line in logger.conf and that writes debug information to /var/log/asterisk/full. I also uncommented the following line:

syslog.local0 =\> notice,warning,error,debug

and added this line to /etc/syslog.conf :

local0.\* /var/log/asterisk/syslog

and did

killall -1 syslogd

to get syslogd to re-read it’s config file. Then i get debug output in /var/log/asterisk/syslog.[/quote]

Great, I wasn’t aware of the existence of this file. Yes, I see some debug information. Do you know if there is anyway to get the same debug information received when asterisk -vvvvvvvvvvvvvvr (or more vs) from the console. I am not seeing the calls getting initiated and hangup. I am using asterisk at home and I keep getting complains that once in a while, when making a call a busy signal is received. I am trying to put my hands on this problem. Any suggestions? Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![WillKemp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/willkemp/32/1318_2.png) [@WillKemp](https://community.asterisk.org/u/WillKemp)\
**Post date:** [October 23, 2005, 4:58am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/8 "2005-10-23T04:58:29Z")

</div>

> [@ccie2be](#):
>
> Do you know if there is anyway to get the same debug information received when asterisk -vvvvvvvvvvvvvvr (or more vs) from the console.

Well, i didn’t know when i read your question, but i do now! It’s not really all that hard to find this sort of information sometimes…

If you have a read of the README.asterisk.conf file in the asterisk/doc subdirectory in the Asterisk sources, you’ll find it’s quite interesting. There are a lot of things that can go in asterisk.conf that aren’t in the file provided with the configs.

The documents in the asterisk/doc directory have got a lot of useful information in them. Grep’ing for “debug” in those files helped me find what i was looking for.

As far as answering your question goes, the solution would seem to be to put something similar to this in asterisk.conf :

[options]  
debug=3 ; Debug: “No” or value (1-4)  
   
By the way, does that many "v"s really have any effect?

---

<div class="post-metadata">

**Author:** ![ccie2be](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@ccie2be](https://community.asterisk.org/u/ccie2be)\
**Post date:** [October 23, 2005, 6:01am UTC](https://community.asterisk.org/t/asterisk-conf-debug/2008/9 "2005-10-23T06:01:44Z")

</div>

> [@WillKemp](#):
>
> [quote=“ccie2be”]Do you know if there is anyway to get the same debug information received when asterisk -vvvvvvvvvvvvvvr (or more vs) from the console.

Well, i didn’t know when i read your question, but i do now! It’s not really all that hard to find this sort of information sometimes…

If you have a read of the README.asterisk.conf file in the asterisk/doc subdirectory in the Asterisk sources, you’ll find it’s quite interesting. There are a lot of things that can go in asterisk.conf that aren’t in the file provided with the configs.

The documents in the asterisk/doc directory have got a lot of useful information in them. Grep’ing for “debug” in those files helped me find what i was looking for.

As far as answering your question goes, the solution would seem to be to put something similar to this in asterisk.conf :

[options]  
debug=3 ; Debug: “No” or value (1-4)  
   
By the way, does that many "v"s really have any effect?[/quote]

Thank you very much, that did it. I didn’t know about the README files, this is quiet interesting. I really appreciate the help.
