PIKA Forum FAQ

Here you can find answers to questions about how the board works. Use the links or search box below to find your way around.

How do I determine the temperature of the unit through software?

Using the following shell command: 

cat /sys/bus/i2c/devices/0-004a/temp1_input

Can we brand your GUI with our logo?

Yes, this can be done by re-compiling Asterisk GUI through Pika's development 
environment (PADS) or by designing your own Asterisk GUI for configuration.

What software is pre-loaded on the appliance?

The appliance by default is shipped with a running version of Asterisk. This allows 
customer to verify that the hardware of the unit is operational and perform some 
basic calling. Along with Asterisk here is a list of the main software components 
that are in the default software image of the appliance. 

uBoot bootloader 
Pika's operating system based on a 2.6 kernel 
busybox 
Asterisk 
AsteriskGUI 
Pika voice processing software and hardware drivers (AoH, GP, channel driver) 
a simple webserver 
SSH 
NTP 

Are you using the free open source version of Asterisk?

Yes, Pika is simply downloading the free open source version of Asterisk. 

Users have the option to change the code for this standard Asterisk provided 
and make their "own" asterisk by using Pika's development environment called PADS.

What programming interfaces will be available to me?

There are two main programming choices provided to customers. 

First, Pika provides Application Programming Interfaces (APIs). This allows customers 
to write their own telephony application which will run on the Warp appliance. These 
two APIs are Pika's low-level All-on-Host API as well as its standard high-level Grandprix 
API. These APIs are the same ones as those used with Pika's PC telephony boards allows 
applications to be portable between the Warp appliance and standard PCs. The API 
documentation can be found under the Documentation section of the website. 

The second available programming interface is that of Asterisk itself. 

What database is provided on the appliance?

SQLite is included in the appliance's development software. The reason it was choosen 
was because of its small memory footprint and low CPU requirements. 

That being said, any database can be loaded onto the Warp appliance keeping in mind 
that the unit has a limited amount of CPU and memory available.

What are POST tests?

POST stands for Power On Self-Test. These hardware tests are perform initially 
as the Warp appliance is starting up and ensure that the hardware is properly functioning. 

How can I customize what is displayed on the LCD?

There is a application programming interface provided to program what is displayed 
on the LCD. Examples of this interface can be found on the pika website (www.pikatech.com), 
in the Pika Asterisk channel driver (chan_pika) or by contacting Pika Support. 

How are the telephony ports ordered in software?

Using Pika's API: 

The appliance uses physical port numbers, so it doesn't matter where modules are put. 

The onboard FXS is always 1. 

Module A is always 2-5 Module B is always 6-9 

The port ordering never changes. 


--------------------------------------------------------------------------------

Using Asterisk: 

In asterisk, the port ordering is '1' indexed based for each telephony interface type. 
For example, for a system with one FXS module and one FXO module the port ordering 
would be as follows in the dialplan and pika.conf: 

FXS ports: 1-5 (including the on-board port) FXO ports: 1-4 

In the dialplan ports are referenced like the following: 

'PIKA//' 

for example, 

Dial(PIKA/fxs/2) 

How can I access the box remotely?

By default the appliance ships with SSH running. A service daemon ensures that SSH is always running.

How do I setup a development environment?

Download the latest PADS to a development Linux machine. The latest PADS 
version can be retrieved from the following webpage: www.pikatech.com/appliancedownloads 

How can I determine what version of appliance I am using?

To determine what versions of software are running on the appliance logging onto 
the appliance using SSH. Versioning information can then be found in '/persistent/version_info.txt' 

Do you support LDAP or Active Directory?

No, not by default. However this package could be added to PADS. 

How do I ensure Asterisk is always running?

A package called DaemonTools allows customer to run Asterisk through a service 
daemon to ensure that Asterisk is always up and running even if it was accidently 
shut down. For more information on this package please refer to the PADS User Guide 
under the section 'Advanced Topics' > 'Linux Service Management'.   This document 
can be found at the following location www.pikatech.com/appliancedownloads

Can I add kernel modules?

Yes. 

Many standard additional packages are available in our kernel. You can enable these 
through the 'Target Architecture Configuration (Custom Kernel Options)' option in the 
main page of menuconfig. To invoke the 'custom kernel' selection menu when you run 
'make' here is a little trick. 

1) go to the /build_warp/linux 
2) do a 'ls- al' ---> you should see a '.configured' file - please remove this file 
3) run 'make menuconfig' from your main PADS checkout directory > select the second 
item 'Target Arch Configuration (Custom Kernel Options)' from the menu. Select 
'Custom Kernel Options' from the next menu. Save this configuration. 
4) Upon your next 'make' you should be presented with a new menu ('custom kernel') 
where you can select which kernel modules you would like to add. 

You will also see there is many other available kernel options available however I would 
recommend being selective as each of this options has the potential to have undesirable consequences. 

How do I access the persistent file system?

The appliance has two types of memory: a read-only portion and a read-write portion. 

Persistent memory refers to memory that can be read and written to much like a hard 
drive. On the appliance persistent memory is ideal for saving configuration files, voicemails, etc. 

The persistent portions of the file system can be accessed through three different directories 
'persistent', 'persistent1' and 'persistent2' corresponding to three persistent partitions on the 
internal flash. If you wish to place files in persistent memory you can copy files directly into 
these directories or you can create symbolically links to these directories. One example of 
this is the directory '/etc/asterisk'. 

For more information on persistent memory please refer to the PADS User Guide.  This document 
can be found at the following location www.pikatech.com/appliancedownloads

How can I determine how many writes to flash?

There is a tool on the Pika Warp appliance to track the number of NAND writes. 
To see the amount of data written:

cat /proc/driver/ndfc 

The count is in kilobytes. The value is reset to zero when the Warp is reset. 

What is the webserver shipped with the box?

A light webserver called 'httpd' is shipped on the appliance by default. It offers 
many of the same features as other webserver however has a much smaller 
memory footprint. 

Does the appliance run apache and php?

The appliance comes with a webserver.  The default webserver is called 'httpd' and was chosen 
because of its small memory footprint.  That being said Apache could be loaded onto the unit if 
necessary.   PHP although not loaded by default but is easily added to the appliance.

Is there an ODBC interface?

There is an optional ODBC interface (unixODBC).  This as well is a additional package that 
can be loaded onto the box.

Search FAQ

Select this option if you would like your search to look in the text of FAQ items as well as their titles.

Select an option here to specify how you would like your search query to be treated. 'Any words' will return the most numerous but possibly least relevant results, while 'Complete phrase' will return only results that contain exactly what you are searching for.