* You are viewing Posts Tagged ‘debugging’

Core Console Debug On Single File

Hi all,

I have console debugging enabled in logger.conf:
console => notice,warning,error,debug

Then a issue de command:
core set debug 100 manager.c

To see only debugging messages from AMI.

But It shows nothing!!!

And then if I do:
core set debug 1

Then I can see managar.c debug info, BUT if lots of other debug from all other files.

How to see only manager.c (or any other ONE file) debug info?

(I’m using asterisk 1.8)
Thanks, Gabriel

Debugging Sip


When debugging SIP in Asterisk is it possible to send the SIP debug
log to a specific file instead of the general log file, or even
better, send each call into its own file for easier analysis?


Debugging not going to log file

I have an Asterisk server running, where I can’t seem to get
the increased logging to save to the /var/log/asterisk/messages file.
I have tried using the standard “core set debug 10″ and “core set
verbose 10″, as well as specifically pointing it to the filename with
“core set debug 10 /var/log/asterisk/messages”. Still, only the most
serious errors are being reported to the messages log file.

It seems to work fine with my other Asterisk running Is
there something else that I’m missing?

Dean Hoover
Waukesha, Wisconsin

IAX Call token revisited

On 03/21/2011 06:49 PM, Dan Austin wrote:
> I just finished a fresh install of at home using the packages
> Digium hosts.
> After correcting a number of typo/config’o error that had crept in
> over the years, I thought I had everything working.
> My wife just complained that she cannot call her mother (who is using an
> old IAX hardphone I left for her).
> After turning up the logging level I see-
> chan_iax2.c: Call rejected, CallToken Support required
> Which google cays can be fixed with:
> [general]
> calltokenoptional=
> maxcallnumbers=16384
> or
> [peer]
> requirecalltoken=no (or auto)
> Either set of changes does suppress the error, but the remote device still
> fails to register. No other errors/warnings are present.

If there aren’t any errors or warnings appearing, then you must not have
the logging verbosity set high enough. Ensure that you’ve used ‘core set
verbose 10′ and ‘core set debug 10′, and that your ‘console’ channel in
logger.conf has all the logger levels enabled. If you still don’t see
what you are looking for, use ‘iax2 set debug’ to enable IAX2-specific
debugging for that phone’s IP address.

Worst case, use tcpdump to make a packet capture of the traffic to/from
the phone and then use Wireshark to look at what is going on.

AGI script exits non-zero when running system command

Hey guys I was hoping I could get a few pointers on a problem I have been
trying to debug for the last couple of months regarding asterisk AGI scripts
and unexpected termination.
I have this agi script that accepts incoming faxes using RxFax on the latest
asterisk 1.4 branch. Its written with perl and it works fine except for one
line that causes the entire script to terminate unexpectedly.

The script always terminates at the point where I use the ‘system’ command
or backticks to run a system command.
system( “/usr/bin/tiff2pdf -f -p letter -o $faxpath/$unique.pdf
$faxpath/$unique.tiff” );

The asterisk log with agi debugging on is pasted below

I have tried everything I can think of over the past few months, taking a
break every so often obviously, but now I feel like I really need outside

Its worth noting that the script runs fine without running the system
command, and it does not matter which system command I run. I tried just
doing a simple copy of the file and it failed in the same place.
Asterisk leaves me with little help, just explaining that the script
returned non-zero.

Are there any issues I should be aware of when running system commands from
an AGI script? I did check permissions and made sure my asterisk user can
write to /tmp and use the converting commands. I did a lot more testing of
course but that is probably the biggest face-palm error there could be.

Asterisk log:


Hey Guys,
for debugging i need to read the Events from AMI. But i have a lot of unwanted “RTCPSent” Events.
How can i filter this Events in Asterisk 1.6.2.x Version of Asterisk?

Thanks a lot for your answers