Telephony_Interface.pm

Telephony_Interface

SYNOPSIS

In the ini you must define a device such as:

    callerid_port = localhost:3333
    callerid_name = acheron-ncid
    callerid_type = ncid

DESCRIPTION

Provides support for common serial and network attached Caller ID devices. The majority of serial devices are basically modems, but some chipsets better support CID features than others. The following CID device types are supported:

    default         Default modem
    motorola        Motorola modem
    powerbit        Intertex (Powerbit, Telia)
    rockwell        Rockwell chipset modems
    supra           Supra modems
    cirruslogic     Cirrus Logic chipset modems
    zyxel           Zyxel modems
    netcallerid     NetCallerID devices (no longer available)
    ncid            NCID - Network Caller ID server

NCID

When using callerid_type = ncid, the callerid_port must be given in the format hostname/IP:port such as:

    callerid_port = localhost:3333

INHERITS

Telephony_Item

METHODS

new()

Instantiates a new object.

open_port()

Open the given serial port or network socket.

init()

Initialize the serial device

reload_reset()

Unload any defined devices and force a reset.

check_for_data()

Look for new data on the serial port or network socket.

process_phone_data($port, $data)

Process misc phone data like rings

process_cid_data($port, $data)

Process CID data from the device.

set($p_state, $p_setby)

Set the device on or off hook

set_test($data)

Used for testing.

AUTHOR

Chris Witte, Bruce Winter, Matthew Williams, Brian Rudy

SEE ALSO

NCID - Network Caller ID

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

 Telephony_Interface.pm