CID_Announce.pm |
Example initialization:
use CID_Announce;
$cid = new CID_Announce($telephony_driver,'Call from $name $snumber.');
Constructor Parameters:
ex. $x = new CID_Announce($y,$z);
$x - Reference to the class
$y - Telephony driver reference
$z - Format for speaking
Following variables are substitued in ""
$name,$first,$middle,$last,$number,$fnumber
(formated),$snumber(speakable),$type,$category,$city,
$state,$time,$areacode,$prefix,$suffix,$soundfile
Input states:
"cid" - Caller ID event
"ring" - Ring event 'to pass along to other consumers of this object'
Output states:
"cid" - Caller ID event
"ring" - Ring event 'to pass along to other consumers of this object'
Announces a call. CID with category of 'reject' will not be announced.
Telephony_Item
NONE
Jason Sharpee jason@sharpee.com
Special Thanks to: Bruce Winter - MH
For example see g_phone.pl
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.
CID_Announce.pm |