PDA

View Full Version : How do I enable PIKA with Asterisk logging on the WARP



skar
08-31-09, 10:15 AM
The following describes how to turn on logging for the PIKA software on the appliance. It is recommended that you do logging to a SD card or USB stick.


WARNING: Enabling logging on the WARP as follows may affect your audio quality.


The first thing you need to do is change the default log location as follows. The following example moves the files to the SD card which is the recommended location. This could be anywhere on any of the persistent partitions or a mounted USB key as well. Just be sure you have enough space to contain the logs.

In /persistent/etc/localenv change

export PKH_LOGS_DIR=SYSLOG
export PKX_LOGS_DIR=SYSLOG

to read

export PKH_LOGS_DIR=/mnt/sd/
export PKX_LOGS_DIR=/mnt/sd/

then use the command source /persistent/etc/localenv to apply the changes.

Then we need to turn on our API logging as follows:

To update the Grandprix logging, in /persistent/etc/pika/pikagp.cfg look for the header [logs], modify the file to contain


[logs]
level=debug
files=5
size=5


This will make 5 log files each 5 MB large. To update the AoH logs, in /persistent/etc/pika/pikagp_aoh.cfg again look for the header [logs] and modify the file to contain



[logs]
level=debug
api=0xffffcffb ; disable api message from the queue, play and record

object.mediastream=0x3 ; disable all mediastream logging other than errors or warnings
hsp=ffffe7ff ; disable the hsp messages for


After making the above changes, asterisk will has to be stopped and then started in order for pika logging to begin. Please do so. After asterisk is restarted, log into its CLI using “asterisk –r”. We need to increase the logging levels in asterisk as well so run the following commands in its CLI,

core set verbose 10
pika debug on


Once you have reproduced the error you are trying to capture, you should shut down asterisk and collect all of the logs. It is recommended you turn of all of the above logging before starting asterisk again in order to improve your system performance.