Open Source Training Seminar FreePBX Paid Support

FreePBX + PIKA Boards

PIKA Technologies makes a number of telephony boards for asterisk.

These instructions apply specifically to the "PIKA Low Density Analog Board", but should be very similar for any boards.

Installation

Download the PIKA drivers at http://pikatechnologies.com/asterisk/index-analog.htm and then follow their installation instructions. In a nutshell, install their driver, apply their patch to asterisk, compile and install asterisk, and install chan_pika.

After running chan_pika's make config, you should have an /etc/asterisk/pika_dsp.conf. Change context to:

context=from-pstn

You may also want to adjust the groups.

FreePBX Configuration

Add a new trunk in FreePBX.

  • Select "Custom Trunk".
  • Fill out the Dial rules and other information the same as you would for a normal Zap trunk.
  • For dial string, use:
    PIKA_DSP/g/0/$OUTNUM$
    

Note if you have multiple boards, you have to specify the board number, eg:

PIKA_DSP/b0/g/0/$OUTNUM$

Where g/0 indicates group 0. Repeat for as many groups as you need.

Note, I could not get multiple groups working in pika_dsp.conf (group=0,1). I'm not sure if this is supposed to work or not. In my setup, I have a group 1 that includes a couple lines, and a group 0 that includes all lines. Group 0 is only used for 911 (emergency) calls, and as a fallback after all VoIP trunks fail. To work around this, I set up my main outgoing lines in group1, and the rest in group0. Then I just added both trunks to my emergency route, or the group0 trunk to the end of my trunk lists for other trunks.

Adjust your outbound routes as needed, to use the new trunk(s).

Apply changes when you are done.

Configuring Faxing

Note. I cannot fully test this, as my fax detection is not working (not sure why). If anyone wants to complete it, feel free

Add the following to /etc/asterisk/extensions_custom.conf:

[custom-pikafax]
exten => s,1,macro(pikafaxrx)
exten => h,1,system(/var/lib/asterisk/bin/fax-process.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)})}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${FAXFILE})

[macro-pikafaxrx]
exten => s,1,Set(FAXFILE=${ASTSPOOLDIR}/fax/${UNIQUEID}.tif)
exten => s,2,Set(EMAILADDR=${FAX_RX_EMAIL})
exten => s,3,PIKArxfax(${FAXFILE})
exten => s,103,Set(EMAILADDR=${FAX_RX_EMAIL})
exten => s,104,Goto(3)

Set up a new custom device, and set the dial string to:

Local/s@custom-pikafax

Set the device id to be whatever you want, eg, 9998, and the device name to be something like "PIKA Fax Receive".

In general settings, select the device you just created as the fax extension.

Press "Apply changes".

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads