welcome to… getting started with pika channel driver for asterisk ® we will begin at 1pm edt

34
Welcome to… Getting Started With PIKA channel driver for Asterisk ® We will begin at 1pm EDT

Upload: andra-logan

Post on 28-Dec-2015

234 views

Category:

Documents


0 download

TRANSCRIPT

Welcome to…

Getting Started With

PIKA channel driver for Asterisk®

We will begin at 1pm EDT

Getting Started WithPIKA channel driver for Asterisk®

Eric PretlacTechnical Support Engineer

Feb 06, 2008

Before we get started

• Audio – dial into the conference call • Send questions at any time during

webinar• Question and Answer window• Type in question, hit send• Answered at the end

• Disable pop-up blockers

Agenda• What is a channel driver?• What is supported?

• Versions of trixbox, Asterisk• Which PIKA cards are supported?

• Installing PIKA with trixbox• How to download files• Step-by-step installation• Dialplan syntax

• Installing PIKA with “stock” Asterisk®

• How to download files• Step-by-step installation• Dialplan syntax

• Question & Answer

Terminology• What is a channel driver?

• According to www.asterisk.org• “Each call into Asterisk® must come in through a

channel driver that supports a technology like SIP, ZAP, IAX2 etc.”

• Program that allows PIKA cards to work with Asterisk®

PIKA Terminology• chan_pika_dsp

• low density analog (4 port fxo) card

• chan_pika • high density analog fxo/fxs cards• digital T1/E1 cards

Installing PIKA with

trixbox

PIKA support for trixbox• PIKA supports trixbox CE 2.2 & 2.4• PIKA hardware

• Low Density Analog (4 fxo)• High density Analog Trunk/ fxo • High density Analog Station/ fxs • Digital T1/E1 PCI/PCIe

PIKA Hardware for Asterisk®

Download the files• Download and install trixbox

• www.trixbox.org

• Download and install PIKA files• using “yum install”

• Installation instructions• www.pikatechnologies.com/asterisk

trixbox installationchan_pika_dsp

Installing chan_pika_dsp with trixbox1. Install the PIKA card2. # yum install pika-repo3. # yum install pika_aob_*4. # yum install chan_pika_dsp*

• installs and configures cards to a default usable state.

5. Change pika_dsp.conf --  the context must be from-pstn6. Use trixbox to configure your dialplan and extensions.

• FreePBX: Add Custom TRUNK with Custom Dial String • PIKA_DSP/g/0/$OUTNUM$

7. Restart asterisk or reboot machine.

Installing chan_pika with trixbox1. Install the PIKA card2. # yum install pika-repo3. # yum install pika_aoh_*4. # yum install chan_pika-3*5. # pikacf [Optional: to configure as E1 instead of T1]6. Change pika.conf --  the context must be from-pstn7. Use trixbox to configure your dialplan and extensions.

• FreePBX: Add Custom TRUNK with Custom Dial String• PIKA high density analog cards: PIKA/fxo/g0/$OUTNUM$• PIKA digital cards:  PIKA/digital/g0/$OUTNUM$

8. Restart asterisk or reboot machine

Installing PIKA with “stock” Asterisk

PIKA support for Asterisk®

• PIKA supports Asterisk 1.2 and 1.4• PIKA hardware

• Low Density Analog (4 fxo)• High density Analog Trunk/ fxo • High density Analog Station/ fxs • Digital T1/E1 PCI/PCIe

Before you begin…• gcc and glibc must be installed• Kernel source must be installed• Must disable SElinux• Any 32-bit distro using kernel 2.6+ • Must use the smp kernel (chan_pika)• PIKA scripts check all of this!

Download the files• Full instructions are in the INSTALL doc

• on our website (and in the download)

• Download Zaptel and Asterisk source• www.asterisk.org

• Download PIKA files• www.pikatechnologies.com/asterisk

Installing chan_pika_dsp

Installing chan_pika_dsp

1. Extract Asterisk source# tar -zxf asterisk-1.4.17.tar.gz -C /usr/src/

2. Extract Zaptel source# tar -zxf zaptel-1.4.7.tar.gz -C /usr/src• PIKA uses ztdummy module 

3. Extract PIKA channel driver source# tar -zxf chan_pika_dsp-3.0.3.tgz -C /usr/src/

chan_pika_dsp (cont’d)

4. Physically install the PIKA board

5. Install the PIKA board driver and SDK• # cd /usr/src/chan_pika_dsp-3.0.3• #./pikaaob-6.5.3.18-linux-installer

6. Log out and log back in• Debian & RedHat-based systems (CentOS)• Allows environment variables to be set

Installing chan_pika_dsp

7. Apply PIKA's patch to Asterisk # cd /usr/src/asterisk-1.4.4

# patch -p0 < ../chan_pika_dsp-3.0.3/patch-1.4.diff

• Asterisk 1.4.x use patch-1.4.diff• Asterisk 1.2.x use patch-1.2.diff

Installing chan_pika_dsp8. Build and install Zaptel

# cd /usr/src/zaptel# ./configure && make && make install

9. Build and install Asterisk # cd /usr/src/asterisk# ./configure && make && make install

10. Build and install chan_pika_dsp# cd /usr/src/chan_pika_dsp-3.0.3# ./configure && make && make install

11. Configure chan_pika_dsp• # make config

Using PIKA in Your Dialplan

12.Modify your dialplan (extensions.conf)• Dial(PIKA_DSP/t/1/6002/…)• Dial(PIKA_DSP/g/1/6002/…)• Dial(PIKA_DSP/b0/t/4/6002/…)

• Dialplan examples• website• PIKA manpage

Installing chan_pika

Installing chan_pika

1. Extract Asterisk source# tar -zxf asterisk-1.4.17.tar.gz -C /usr/src/

2. Extract Zaptel source# tar -zxf zaptel-1.4.7.tar.gz -C /usr/src/• PIKA uses ztdummy module 

3. Extract PIKA channel driver source# tar -zxf chan_pika-3.2.1.tgz -C /usr/src/

chan_pika (cont’d)

4. Physically install the PIKA board

5. Install the PIKA board driver and SDK# cd /usr/src/chan_pika-3.2.1

# ./pikaaoh-2.2.6-linux-installer

6. Activate licenses (Optional)• Only if you need extra channels (or PIKA FAX)• New boards include on-board licenses

Installing chan_pika (cont’d)7. Build and install Zaptel

#./configure && make && make install

8. Build and install Asterisk #./configure && make && make install

9. Build and install chan_pika# cd /usr/src/chan_pika-3.2.1# ./configure && make && make install

10.Configure chan_pika# make config

Using PIKA in Your Dialplan

11.Modify your dialplan (extensions.conf)• Dial(PIKA/digital/g0/6135911555)• Dial(PIKA/fxo/g1/6135911555)• Dial(PIKA/fxs/g1/102)

• Dialplan examples• website• PIKA manpage

Summary• What is a channel driver?• What is supported?

• trixbox CE 2.2 & 2.4• Asterisk 1.2 & 1.4• PIKA cards supported

• Installing PIKA with trixbox• How to download files• Step-by-step installation• Dialplan syntax

• Installing PIKA with “stock” Asterisk®

• How to download files• Step-by-step installation• Dialplan syntax

Question & Answer

We invite you to ask questions.

Enter your question in the Question and Answer window.

Send to LEADER.

We’ll answer as many questions as we have time.

Contact Us• Support

• Mon-Fri 6:00 a.m. to 5:00 p.m. EST/EDT• Phone : +1-613-591-1555 • Dial “2” for Support• Skype: pikatechnologies • Email: [email protected]

Upcoming PIKA Technical Webinars

www.pikatech.com

NEWS & EVENTS /

Technical Webinars

Before you go . .

• Please fill out the on-line survey• Tell us how we did• Give us suggestions for future topics

Thank youfor your time.