debian/0000755000000000000000000000000011467152302007167 5ustar debian/compat0000644000000000000000000000000211467144407010374 0ustar 5 debian/op-panel.init0000644000000000000000000000347011467144454011604 0ustar #! /bin/sh # # Author: Tzafrir Cohen . # op_panel developers. # # Version: @(#)skeleton 1.9.4 21-Mar-2004 miquels@cistron.nl # ### BEGIN INIT INFO # Provides: op-panel # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Flash Asterisk Operator Panel # Description: A flash operator panel for # the Asterisk PBX ### END INIT INFO set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/op_server NAME=op-panel DESC="Flash Operator Panel" PIDDIR=/var/run/$NAME PIDFILE=$PIDDIR/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME USER=asterisk GROUP=asterisk LOGDIR=/var/log/$NAME CONFDIR=/etc/$NAME OPTIONS="-d -p $PIDFILE -l $LOGDIR -c $CONFDIR" # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 if [ ! -d $PIDDIR ]; then mkdir $PIDDIR chown -R $USER.$GROUP $PIDDIR chmod -R g+rw $PIDDIR fi case "$1" in start) echo -n "Starting $DESC: $NAME" sleep 1 start-stop-daemon --chuid asterisk --start --oknodo --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS echo "." ;; stop) echo -n "Stopping $DESC: $NAME" sleep 1 start-stop-daemon --stop --oknodo --pidfile $PIDFILE echo "." ;; restart|force-reload) # # If the "reload" option is implemented, move the "force-reload" # option to the "reload" entry above. If not, "force-reload" is # just the same as "restart". # echo -n "Restarting $DESC: $NAME" start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE sleep 2 start-stop-daemon --chuid asterisk --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS echo "." ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/manager.d/0000755000000000000000000000000011467152302011023 5ustar debian/manager.d/op-panel.conf0000644000000000000000000000037111467144407013415 0ustar ; ; Manager user for Asterisk Flash Operator Panel ; [op-panel] secret = op_panel_password deny = 0.0.0.0/0.0.0.0 permit = 127.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user debian/dirs0000644000000000000000000000024411467144407010062 0ustar var/lib/op-panel/ var/log/op-panel/ usr/share/op-panel/flash/ usr/share/op-panel/dhtml/ usr/share/op-panel/dhtml/js usr/sbin/ etc/op-panel/asternic/ etc/asterisk/ debian/docs0000644000000000000000000000004011467144407010043 0ustar FAQ README TODO RECIPES UPGRADE debian/README.source0000644000000000000000000000047111467144407011357 0ustar This package uses dpatch to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/dpatch/README.source for more information on how to apply the patches, modify patches, or remove a patch. debian/postinst0000644000000000000000000000463611467144407011015 0ustar #! /bin/sh # postinst script for op-panel # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # USER=asterisk GROUP=asterisk case "$1" in configure) # lets run op-panel with asterisk user if ! (getent passwd $USER >/dev/null) ; then adduser --system --group --home /var/lib/asterisk --no-create-home --gecos "Asterisk PBX daemon" $USER fi touch /var/lib/op-panel/variables.txt chown -R $USER.$GROUP /var/lib/op-panel/ chmod -R g+rw /var/lib/op-panel/ chown -R $USER.$GROUP /etc/op-panel/asternic/ chmod -R g+rw /etc/op-panel/asternic/ chown -R $USER.$GROUP /var/log/op-panel/ chmod -R g+rw /var/log/op-panel/ chown -R $USER.$GROUP /usr/share/op-panel/ chmod -R g+rw /usr/share/op-panel/ for i in op_server op_buttons op_astdb op_style; do if [ -r /etc/op-panel/$i.cfg ]; then cp -ba /etc/op-panel/$i.cfg /etc/op-panel/$i.old rm -f /etc/op-panel/$i.cfg fi done # default configuration : asternic, priority 80 update-alternatives --install \ /etc/op-panel/op_server.cfg op-panel /etc/op-panel/asternic/op_server.cfg 80 \ --slave /etc/op-panel/op_buttons.cfg op-buttons-cfg /etc/op-panel/asternic/op_buttons.cfg \ --slave /etc/op-panel/op_astdb.cfg op-astdb-cfg /etc/op-panel/asternic/op_astdb.cfg \ --slave /etc/op-panel/op_style.cfg op-style-cfg /etc/op-panel/asternic/op_style.cfg ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000644000000000000000000000267011467151477010613 0ustar Source: op-panel Section: comm Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian VoIP Team Uploaders: Alejandro Rios P. , Kilian Krause , Tzafrir Cohen Build-Depends: debhelper (>= 5.0.0) Build-Depends-Indep: perl (>= 5), libswf-perl (>= 0.3.0-8), ttf-dejavu-core Standards-Version: 3.9.1 Homepage: http://www.asternic.org/ Vcs-Svn: svn://svn.debian.org/pkg-voip/op-panel/trunk/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/op-panel/?op=log Package: op-panel Architecture: all Depends: perl (>= 5), adduser, libjs-prototype (>= 1.6.0.2), libjs-scriptaculous (>= 1.8.1), ${misc:Depends} Recommends: asterisk Enhances: destar Description: switchboard type application for the Asterisk PBX Flash Operator Panel is a switchboard type application for the Asterisk PBX. It runs on a web browser with the flash plugin. . It is able to display information about your PBX activity in real time. The layout is configurable (button sizes and colors, icons, etc). You can have more than 100 buttons active per screen. . It also supports contexts: you can have one server running and many different client displays (for hosted PBX, different departments, etc). It can integrate with CRM software, by popping up a web page (and passing the CLID) when a specified button is ringing. debian/op-panel.links0000644000000000000000000000051611467144407011755 0ustar /var/lib/op-panel/variables.txt /usr/share/op-panel/flash/variables.txt /var/lib/op-panel/variables.txt /usr/share/op-panel/dhtml/variables.txt /usr/share/javascript/prototype/prototype.js /usr/share/op-panel/dhtml/js/prototype.js /usr/share/javascript/scriptaculous/scriptaculous.js /usr/share/op-panel/dhtml/js/scriptaculous.js debian/README.Debian0000644000000000000000000000143011467144407011235 0ustar op-panel for Debian ------------------- Configuration and language files are under /etc/op-panel and /etc/op-panel/asternic. Frontend files are under /usr/share/op-panel/. Output is at /var/log/op-panel. op-panel configuration is handled by update-alternatives since several Asterisk GUIs have custom op-panel setups. The flash and dhtml frontends can be loaded by your httpd on /usr/share/op-panel/flash and /usr/share/op-panel/dhtml. Developers: the package had to be renamed to replace the '_' with a '-' and to delete upstream shipped '.swf' files, thus the .orig tarball has been renamed as well. Also, the daemon name was copied from op_server.pl to op_server to avoid man page '.pl' ambiguity. -- Alejandro Rios P. , Mon, 15 May 2006 20:29:38 -0500 debian/copyright0000644000000000000000000001100511467144454011130 0ustar This package was debianized by Alejandro Rios P. on Mon, 15 May 2006 20:29:55 -0500 based on the package for Xorcom by Tzafrir Cohen that can be found at http://updates.xorcom.com/iso/ It was downloaded from http://www.asternic.org/download.php Most of the code has Copyright (c) 2004-2006 Nicolás Gudiño. All rights reserved. License: GPLv2 This package 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; version 2 dated June, 1991. This package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. There are some files with other copyrigth: 1. File: dhtml/js/wz_tooltip.js Copyright (c) 2002-2008 Walter Zorn. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. 2. On file op_panel.pl, there is a TEA encryption algorithm Perl module: Copyright (c) 2000, Peter J Billam c/o P J B Computing, www.pjb.com.au You may distribute this code under the same terms as Perl itself: This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with Perl. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1' and the Artistic Licence in `/usr/share/common-licenses/Artistic'. 3. The following files share the same Licensing terms that can be found on dhtml/js/scriptaculous.js: // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. dhtml/js/prototype.js: Copyright (c) 2005 Sam Stephenson dhtml/js/builder.js, dhtml/js/effects.js, dhtml/js/scriptaculous.js: Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) dhtml/js/controls.js: Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) (c) 2005 Ivan Krstic (http://blogs.law.harvard.edu/ivan) (c) 2005 Jon Tirsen (http://www.tirsen.com) dhtml/js/dragdrop.js: Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) (c) 2005 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz) dhtml/js/slider.js: Copyright (c) 2005 Marty Haught, Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) dhtml/js/window.js: Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com) There are also some credits on the main README file: MD5 Algorithm. Copyright: (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved. debian/rules0000755000000000000000000000514511467144454010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # debian/rules for op-panel. # Based on example file by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEBVERSION:=$(shell head -n 1 debian/changelog \ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/~dfsg$$//') FILENAME := op-panel_$(UPVERSION)~dfsg.orig.tar.gz UPFILENAME := op-panel_$(UPVERSION).orig.tar.gz URL := http://asternic.org/files/op_panel-$(UPVERSION).tar.gz CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif build: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. /usr/bin/perl ming-source/operator_panel.pl /usr/bin/perl ming-source/comunicator.pl if [ ! -r op_server ]; then mv op_server.pl op_server; fi /usr/bin/pod2man --section 8 op_server debian/op_server.8 touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. rm -f debian/op_server.8 if [ -r op_server ]; then mv op_server op_server.pl; fi rm -f *.swf dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Build architecture-dependent files here. binary-arch: build install # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs CHANGES dh_installdocs dh_installexamples op_buttons.cfg op_server.cfg op_astdb.cfg op_style.cfg extensions.conf.sample dh_install dh_link dh_installinit dh_installman debian/op_server.8 dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb get-orig-source: @@dh_testdir @@[ -d ../tarballs/. ]||mkdir -p ../tarballs @@echo Downloading $(UPFILENAME) from $(URL) ... @@wget -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL) @@echo Repacking as DFSG-free... @@mkdir -p ../tarballs/op_panel-$(UPVERSION).tmp/ @@cd ../tarballs/op_panel-$(UPVERSION).tmp ; \ tar xfz ../$(UPFILENAME) @@find ../tarballs/op_panel-$(UPVERSION).tmp -type f -name '*.swf'|xargs -r rm @@find ../tarballs/op_panel-$(UPVERSION).tmp -type f -name 'prototype.js'|xargs -r rm @@find ../tarballs/op_panel-$(UPVERSION).tmp -type f -name 'scriptaculous.js'|xargs -r rm @@cd ../tarballs/op_panel-$(UPVERSION).tmp ; \ tar cfz ../$(FILENAME) * @@echo Cleaning up... @@$(RM) -rf ../tarballs/op_panel-$(UPVERSION).tmp/ binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install patch unpatch debian/prerm0000644000000000000000000000200311467144407010241 0ustar #! /bin/sh # prerm script for op-panel # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) # remove this alternative configuration if update-alternatives --list op-panel ; then update-alternatives --remove-all op-panel fi ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/postrm0000644000000000000000000000173311467144407010451 0ustar #! /bin/sh # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package set -e case "$1" in purge) # remove files rm -fr /var/lib/op-panel/ rm -fr /var/log/op-panel/ rm -fr /var/run/op-panel.pid ;; remove|abort-install|disappear|upgrade) ;; abort-upgrade|failed-upgrade) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000011467152302010616 5ustar debian/patches/remove_SWFTEXTFIELD_USEFONT0000644000000000000000000002405711467151126015244 0ustar Description: Remove references to SWFTEXTFIELD_USEFONT flag Bug-Debian: http://bugs.debian.org/582377 Author: Gabriele Giacone <1o5g4r8o@gmail.com> --- a/ming-source/operator_panel.pl +++ b/ming-source/operator_panel.pl @@ -42,7 +42,7 @@ $font = shift; $str = shift; - $txtfield = new SWF::TextField( SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_WORDWRAP | SWFTEXTFIELD_USEFONT ); + $txtfield = new SWF::TextField( SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_WORDWRAP ); $txtfield->setHeight(254); $txtfield->setBounds(200,30); $txtfield->setName($name); @@ -62,7 +62,7 @@ ################################################# ## SELECT TIMEOUT BOX ################################################# -$dropbox1 = new SWF::Sprite(); +$dropbox1 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5600, 0); @@ -207,7 +207,7 @@ $font_general = new SWF::Font($fuente); -$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT | SWFTEXTFIELD_NOSELECT ); +$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $s8->setBounds(1411, 398); $s8->setFont($font_general); #$s8->setFont(new SWF::Font("_sans")); @@ -228,7 +228,7 @@ ## MovieCLIP progress graphic ## -$progressclip = new SWF::Sprite(); +$progressclip = new SWF::MovieClip(); ### Shape 2 ### $s2 = new SWF::Shape(); @@ -1761,7 +1761,7 @@ #$font_general = new SWF::Font($fuente); # Ventana INPUT del security code -$codebox = new SWF::Sprite(); +$codebox = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $g = new SWF::Gradient(); @@ -1828,7 +1828,7 @@ $s3->drawLine(-4713, 0); $i4 = $codebox->add($s3); -$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_NOSELECT ); $s5->setBounds(5650, 653); $s5->setFont($font_general); $s5->setHeight(320); @@ -1839,7 +1839,7 @@ $i5 = $codebox->add($s5); $i5->moveTo(2704, 3067); -$s6 = new SWF::TextField( SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField( SWFTEXTFIELD_PASSWORD ); $s6->setBounds(4579, 398); $s6->setFont($font_general); $s6->setHeight(320); @@ -2032,7 +2032,7 @@ # with the number constructed from javascript while setting # the frame of the movieclip. # -$numdial = new SWF::Sprite(); +$numdial = new SWF::MovieClip(); $numdial->add(new SWF::Action(<<"EndOfActionScript")); _global.numero_a_discar+="0"; stop(); @@ -2119,7 +2119,7 @@ # Detail Window movieclip -$detail_window = new SWF::Sprite(); +$detail_window = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $g = new SWF::Gradient(); @@ -2164,7 +2164,7 @@ $s1->drawLine(0, -3966); $s1->drawCurve(0, -44, -30, -33); -$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s3->setBounds(3112, 377); $s3->setFont($font_general); $s3->setHeight(280); @@ -2173,7 +2173,7 @@ $s3->setName('title'); $s3->addString('Last call details:'); -$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s5->setBounds(907, 330); $s5->setFont($font_general); $s5->setHeight(260); @@ -2182,7 +2182,7 @@ $s5->setName('label'); $s5->addString('From:'); -$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s6->setBounds(1097, 330); $s6->setFont($font_general); $s6->setHeight(260); @@ -2191,7 +2191,7 @@ $s6->setName('duration_label'); $s6->addString('Duration:'); -$s7 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s7 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s7->setBounds(2517, 330); $s7->setFont($font_general); $s7->setHeight(260); @@ -2199,7 +2199,7 @@ $s7->align(SWFTEXTFIELD_ALIGN_LEFT); $s7->setName('clid'); -$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s8->setBounds(2116, 330); $s8->setFont($font_general); $s8->setHeight(260); @@ -2391,7 +2391,7 @@ # Superdetail window -$superdetails = new SWF::Sprite(); +$superdetails = new SWF::MovieClip(); $s1 = new SWF::Shape(); $g = new SWF::Gradient(); $g->addEntry(0.000000, 0xff, 0xff, 0xff); @@ -2435,7 +2435,7 @@ $s1->drawLine(0, -3966); $s1->drawCurve(0, -44, -30, -33); -$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_USEFONT ); +$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE ); $s3->setBounds(4939, 4740); $s3->setFont($font_general); $s3->setHeight(260); @@ -2592,7 +2592,7 @@ "); -$fs3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$fs3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $fs3->setBounds(939, 200); $fs3->setName('titlefs3'); $fs3->setFont($font_general); @@ -2601,7 +2601,7 @@ $fs3->align(SWFTEXTFIELD_ALIGN_LEFT); $fs3->addString('Queue'); -$fs2 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$fs2 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $fs2->setBounds(939, 200); $fs2->setName('titlefs2'); $fs2->setFont($font_general); @@ -2610,7 +2610,7 @@ $fs2->align(SWFTEXTFIELD_ALIGN_LEFT); $fs2->addString('Call'); -$sptab = new SWF::Sprite(); +$sptab = new SWF::MovieClip(); $sptab->add($s8); $sptab->add($s8a); $sptab->nextFrame(); @@ -2674,7 +2674,7 @@ -$ventana_debug = new SWF::Sprite(); +$ventana_debug = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(120, -120); @@ -2750,7 +2750,7 @@ $s4->drawLine(0, -3966); $s4->drawCurve(0, -44, -30, -33); -$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $s6->setBounds(8104, 398); $s6->setFont($font_general); $s6->setHeight(320); @@ -2874,7 +2874,7 @@ $s11->drawLine(0, -3620); $s11->drawLine(8158, 0); -$s13 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_USEFONT ); +$s13 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE ); $s13->setBounds(8000, 3606); $s13->setFont($font_general); $s13->setHeight(320); @@ -2918,7 +2918,7 @@ -$ledcolor = new SWF::Sprite(); +$ledcolor = new SWF::MovieClip(); $s1 = new SWF::Shape(); $s1->movePenTo(524, 125); $s1->setLeftFill(255, 0x00, 0x00); @@ -2940,7 +2940,7 @@ $ledcolor->nextFrame(); # end of frame 1 -$ledsombra = new SWF::Sprite(); +$ledsombra = new SWF::MovieClip(); $s2 = new SWF::Shape(); $s2->movePenTo(216, -124); $s2->setRightFill(0x00, 0x00, 0x00, 0x32); @@ -3038,7 +3038,7 @@ $i2->addColor(0x00, 0x00, 0x00); $ledsombra->nextFrame(); -$ledbrillo = new SWF::Sprite(); +$ledbrillo = new SWF::MovieClip(); $s4 = new SWF::Shape(); $g = new SWF::Gradient(); $g->addEntry(0.368627, 0x00, 0x00, 0x00, 0x00); @@ -3111,7 +3111,7 @@ ####### Arrow -my $fle = new SWF::Sprite(); +my $fle = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5642, 3859); @@ -3751,7 +3751,7 @@ $s_icon2->drawLine(20, 0); # icon3 Movieclip -my $i_icon2 = new SWF::Sprite(); +my $i_icon2 = new SWF::MovieClip(); my $item = $i_icon2->add($s_icon2); $item->scaleTo(0.5); $i_icon2->nextFrame(); @@ -4758,7 +4758,7 @@ $s_icon1_f2->drawCurve(-73, 273, -12, 177); # Icon1 Movieclip -my $i_icon1 = new SWF::Sprite(); +my $i_icon1 = new SWF::MovieClip(); $item = $i_icon1->add($s_icon1); $item->scaleTo(0.5); $item->moveTo(-3000, -2100); @@ -4770,7 +4770,7 @@ $i_icon1->nextFrame(); -$envelope = new SWF::Sprite(); +$envelope = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(8722, 1745); @@ -4954,7 +4954,7 @@ -$telefono3 = new SWF::Sprite(); +$telefono3 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(7575, 1918); @@ -5027,7 +5027,7 @@ ### Shape 1 ### -$telefono4 = new SWF::Sprite(); +$telefono4 = new SWF::MovieClip(); $s1 = new SWF::Shape(); $s1->movePenTo(8338, 3364); $s1->setLeftFill(0x00, 0x00, 0x00); @@ -5268,7 +5268,7 @@ -$conference1 = new SWF::Sprite(); +$conference1 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(7708, 2179); @@ -5961,7 +5961,7 @@ $conference1->nextFrame(); # end of frame 1 -$conference2 = new SWF::Sprite(); +$conference2 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(6139, 1671); @@ -6167,7 +6167,7 @@ # status log toolbar -# $statusbar = new SWF::Sprite(); +# $statusbar = new SWF::MovieClip(); ### Shape 1 ### # $s1 = new SWF::Shape(); # $s1->movePenTo(19920, 0); @@ -6185,7 +6185,7 @@ -$extrainfo = new SWF::Sprite(); +$extrainfo = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5400, 0); @@ -6212,7 +6212,7 @@ $i2 = $extrainfo->add($s1); $i2->scaleTo(0.5); -#$s3 = new SWF::TextField(SWFTEXTFIELD_USEFONT ); +#$s3 = new SWF::TextField(); #$s3->setBounds(3740, 398); #$s3->setFont($font_general); #$s3->setHeight(320); @@ -6228,7 +6228,7 @@ -$boton_ayuda = new SWF::Sprite(); +$boton_ayuda = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(439, 222); @@ -6421,7 +6421,7 @@ $boton_ayuda->nextFrame(); # end of frame 1 -$boton_debug = new SWF::Sprite(); +$boton_debug = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(415, 159); @@ -6669,7 +6669,7 @@ -$boton_reload = new SWF::Sprite(); +$boton_reload = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(424, 154); @@ -6866,7 +6866,7 @@ $boton_reload->remove($i1); -$boton_security = new SWF::Sprite(); +$boton_security = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(493, 135); @@ -7057,7 +7057,7 @@ $boton_security->nextFrame(); # end of frame 1 $boton_security->remove($i1); -$boton_security_unlock = new SWF::Sprite(); +$boton_security_unlock = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(493, 135); debian/patches/08_sampleconfig.dpatch0000644000000000000000000004343111467144407014775 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 08_sampleconfig.dpatch by Jean-Michel Dault ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Improved sample config files @DPATCH@ diff -urNad op_panel-0.30~/op_buttons.cfg op_panel-0.30/op_buttons.cfg --- op_panel-0.30~/op_buttons.cfg 2009-06-22 14:06:10.000000000 -0400 +++ op_panel-0.30/op_buttons.cfg 2010-02-16 16:47:51.902764467 -0500 @@ -1,281 +1,601 @@ -[SIP/10] ; Channel name -Position=1 ; Button number in the console -Label="10 Fax" ; Text label for the button -Extension=10 ; Extension to reach that channel -Context=sip ; Context where that extension is defined -Mailbox=10@sip ; The voicemail mailbox to monitor -Icon=1 ; There are 6 icons available -Url=http://www.asternic.org ; Optional, add link to button label -Target=_new ; Optional, open link in this target -No_Rectangle=0 ; Optional: If enabled, it will not draw the button - ; rectangle, only the icons inside -Background=bg.jpg ; Optional: it will load that jpg as the button - ; background. It should match the size as specified - ; in op_style.cfg btn_width and btn_height. -VoiceMailExt=910@vm ; extension@context to use for transferring a call - ; directly to voicemail -Privacy=false ; if set to true, it will hide callerid info for - ; the button -GroupCount=1 ; Will show number of channels in use instead of clid -Astdbkey=10 ; If using astdb functions, enable it for this button - ; using the key provided -SpyExt=20@spy +#Sample config file for 8 PSTN lines and 36 extensions +#More examples at the end of the file -[SIP/11] -Position=n ; Position 'n' will be the next available -Label="Multiline%0aLabel" ; %0a is the new line character -Extension=11 -Context=sip +[SIP/1101] +Position=n +Label="1101" +Extension=1101 +Context=local +Mailbox=1101 Icon=1 -Server=1 ; If you omit the Server, it will default to 1 -[SIP/12] +[SIP/1102] Position=n -Label="12 Ernest" -Extension=11 -Context=sip +Label="1102" +Extension=1102 +Context=local +Mailbox=1102 Icon=1 -Server=2 ; If you monitor more than one server change this -[_SIP/.*] ; You can use REGEXP. Prefix the button with an -Position=1,2 ; underscore followed by your expression - ; (you cannot use & and = as they are reserved) -Label="SIP Guest" -Extension=-1 ; If set to -1 you will not be able to transfer - ; to this button -Context=internos +[SIP/1103] +Position=n +Label="1103" +Extension=1103 +Context=local +Mailbox=1103 Icon=1 -[PARK/701] -Position=17 -Icon=3 -Extension=700 -Label="Park 701" +[SIP/1104] +Position=n +Label="1104" +Extension=1104 +Context=local +Mailbox=1104 +Icon=1 -[SIP/16] -Position=6 -Label="16 Nicolás" ; you can use unicode for extended characters -Extension=16 -Context=internos +[SIP/1105] +Position=n +Label="1105" +Extension=1105 +Context=local +Mailbox=1105 Icon=1 -Mailbox=16@internos -[CAPI[contr1/NNNNNNNNN]] ; where NNNN is the ISDN number. If you -Position=22,23 ; specify more than one position, the button - ; will be considered a 'trunk', each call will be - ; displayed in a separate button -Label="External CAPI" -Extension=-1 -Context=in-extern -Icon=4 +[SIP/1106] +Position=n +Label="1106" +Extension=1106 +Context=local +Mailbox=1106 +Icon=1 -[SIP/17] -Position=7 -Label="17 Martin" -Extension=17 -Context=internos +[SIP/1107] +Position=n +Label="1107" +Extension=1107 +Context=local +Mailbox=1107 Icon=1 -Mailbox=17@internos -[IAX2/3002] -Position=3 -Label="3002 IAX Client" -Extension=3002 -Context=iaxcontext +[SIP/1108] +Position=n +Label="1108" +Extension=1108 +Context=local +Mailbox=1108 Icon=1 -[901] ; Meetme must be defined by its room number -Position=8 -Label="Meetme 901" -Extension=901 -Context=conferences -Icon=5 +[SIP/1109] +Position=n +Label="1109" +Extension=1109 +Context=local +Mailbox=1109 +Icon=1 -[902] -Position=9 -Label="Meetme 902" -Extension=902 -Icon=5 +[SIP/1110] +Position=n +Label="1110" +Extension=1110 +Context=local +Mailbox=1110 +Icon=1 + +[SIP/1111] +Position=n +Label="1111" +Extension=1111 +Context=local +Mailbox=1111 +Icon=1 + +[SIP/1112] +Position=n +Label="1112" +Extension=1112 +Context=local +Mailbox=1112 +Icon=1 + +[SIP/1113] +Position=n +Label="1113" +Extension=1113 +Context=local +Mailbox=1113 +Icon=1 + +[SIP/1114] +Position=n +Label="1114" +Extension=1114 +Context=local +Mailbox=1114 +Icon=1 + +[SIP/1115] +Position=n +Label="1115" +Extension=1115 +Context=local +Mailbox=1115 +Icon=1 + +[SIP/1116] +Position=n +Label="1116" +Extension=1116 +Context=local +Mailbox=1116 +Icon=1 + +[SIP/1117] +Position=n +Label="1117" +Extension=1117 +Context=local +Mailbox=1117 +Icon=1 + +[SIP/1118] +Position=n +Label="1118" +Extension=1118 +Context=local +Mailbox=1118 +Icon=1 + +[SIP/1119] +Position=n +Label="1119" +Extension=1119 +Context=local +Mailbox=1119 +Icon=1 + +[SIP/1120] +Position=n +Label="1120" +Extension=1120 +Context=local +Mailbox=1120 +Icon=1 + +[SIP/1121] +Position=n +Label="1121" +Extension=1121 +Context=local +Mailbox=1121 +Icon=1 + +[SIP/1122] +Position=n +Label="1122" +Extension=1122 +Context=local +Mailbox=1122 +Icon=1 + +[SIP/1123] +Position=n +Label="1123" +Extension=1123 +Context=local +Mailbox=1123 +Icon=1 + +[SIP/1124] +Position=n +Label="1124" +Extension=1124 +Context=local +Mailbox=1124 +Icon=1 + +[SIP/1125] +Position=n +Label="1125" +Extension=1125 +Context=local +Mailbox=1125 +Icon=1 + +[SIP/1126] +Position=n +Label="1126" +Extension=1126 +Context=local +Mailbox=1126 +Icon=1 + +[SIP/1127] +Position=n +Label="1127" +Extension=1127 +Context=local +Mailbox=1127 +Icon=1 + +[SIP/1128] +Position=n +Label="1128" +Extension=1128 +Context=local +Mailbox=1128 +Icon=1 + +[SIP/1129] +Position=n +Label="1129" +Extension=1129 +Context=local +Mailbox=1129 +Icon=1 + +[SIP/1130] +Position=n +Label="1130" +Extension=1130 +Context=local +Mailbox=1130 +Icon=1 + +[SIP/1131] +Position=n +Label="1131" +Extension=1131 +Context=local +Mailbox=1131 +Icon=1 + +[SIP/1132] +Position=n +Label="1132" +Extension=1132 +Context=local +Mailbox=1132 +Icon=1 + +[SIP/1133] +Position=n +Label="1133" +Extension=1133 +Context=local +Mailbox=1133 +Icon=1 + +[SIP/1134] +Position=n +Label="1134" +Extension=1134 +Context=local +Mailbox=1134 +Icon=1 + +[SIP/1135] +Position=n +Label="1135" +Extension=1135 +Context=local +Mailbox=1135 +Icon=1 + +[SIP/1136] +Position=n +Label="1136" +Extension=1136 +Context=local +Mailbox=1136 +Icon=1 + +[8001] ; Meetme must be defined by its room number +Position=37 +Label="Conf 8001" +Extension=8001 +Context=confroom +Icon=6 + +[8002] +Position=n +Label="Conf 8002" +Extension=8002 +Context=confroom +Icon=6 + +[8003] +Position=n +Label="Conf 8003" +Extension=8003 +Context=confroom +Icon=6 + +[8004] +Position=n +Label="Conf 8004" +Extension=8004 +Context=confroom +Icon=6 [Zap/1] -Position=10 -Label="External 1" +Position=41 +Label="PSTN1" Extension=-1 -Icon=2 +Context=local +Icon=4 [Zap/2] -Position=11 -Label="External 2" +Position=n +Label="PSTN2" Extension=-1 -Icon=2 +Icon=4 -[QUEUE/SALES] ; queues must be defined by its name -Position=12 -Label="Sales Queue" -Extension=-1 ; -1 to disable transfers to this button -Icon=3 -Alarm=30^alarm.php?queue=sales^_new^ ; Timer Alarm. If timer reachs 30 seconds, open/popup alarm.php in _new target +[Zap/3] +Position=n +Label="PSTN3" +Extension=-1 +Icon=4 -[QUEUE/SUPPORT] -Position=13-18 ; each position will be used by users waiting - ; on that position number -Label="Support Queue" -Extension=-1 ; -1 to disable transfers to this button -Icon=3 +[Zap/4] +Position=n +Label="PSTN4" +Extension=-1 +Icon=4 -[Local/5555555@sip] -Position=26 -Label="Speed Dial" -Extension=5555555 -Context=sip -Icon=2 +[Zap/5] +Position=n +Label="PSTN5" +Extension=-1 +Icon=4 -[IAX2/iaxtel] -Position=15,16 -Label="Iaxtel" +[Zap/6] +Position=n +Label="PSTN6" Extension=-1 -Icon=2 +Icon=4 -[SIP/provider] -Position=20 -Label=Sip Provider +[Zap/7] +Position=n +Label="PSTN7" Extension=-1 -Icon=2 +Icon=4 +[Zap/8] +Position=n +Label="PSTN8" +Extension=-1 +Icon=4 +[PARK7001] +Position=49 +Icon=2 +Extension=7001 +Label="Park 7001" -; buttons with panel context will be displayed in their -; own panel, you have to append ?context=NAME when loading -; the swf file -; -;[IAX2/iaxtel] -;Position=15,16 -;Label="Iaxtel" -;Extension=-1 -;Icon=2 -;Panel_context=sip +[PARK7002] +Position=n +Icon=2 +Extension=7002 +Label="Park 7002" ; You can draw rectangles anywhere in the screen. The canvas sixe is 996x600 -; +;30 Extensions (Blue) [rectangle] -x=748 -y=35 -width=252 -height=370 +x=-1 +y=32 +width=597 +height=540 line_width=3 -line_color=ffff10 -fade_color1=ffff10 -fade_color2=ffff3F +line_color=1010ff +fade_color1=1010ff +fade_color2=1010ff rnd_border=2 -alpha=30 +alpha=10 layer=top ; top = above buttons ; bottom = below buttons + +;6 Extensions (Blue) [rectangle] -x=498 -y=35 -width=252 -height=220 +x=595 +y=32 +width=200 +height=324 +line_width=3 +line_color=1010ff +fade_color1=1010ff +fade_color2=1010ff +rnd_border=2 +alpha=10 +layer=top + +;Conference Rooms (Pink) +[rectangle] +x=595 +y=356 +width=200 +height=217 line_width=3 line_color=ff1010 fade_color1=ff1010 fade_color2=a01000 rnd_border=2 -alpha=20 +alpha=10 layer=top -panel_context=* ; The item will be persistant across contexts + +;PSTN lines (Yellow) [rectangle] -x=498 -y=255 -width=252 -height=295 +x=794 +y=32 +width=200 +height=432 line_width=3 -line_color=10ff10 -fade_color1=10ff10 -fade_color2=10ff00 +line_color=ffff10 +fade_color1=ffff10 +fade_color2=ffff3F rnd_border=2 -alpha=20 +alpha=30 layer=top +;panel_context=* ; The item will be persistant across contexts +;Parking Area (Green) [rectangle] -x=-1 -y=35 -width=502 -height=515 +x=794 +y=464 +width=200 +height=110 line_width=3 -line_color=1010ff -fade_color1=1010ff -fade_color2=1010ff +line_color=10ff10 +fade_color1=10ff10 +fade_color2=10ff00 rnd_border=2 -alpha=10 +alpha=20 layer=top + ; you can include configuration files -; ;include => more_rectangles.cfg -[LEGEND] -x=800 -y=50 -text=Zap Lines -font_size=32 -font_color=000000 -font_family=Times New Roman ; only used when use_embed_fonts=0 -use_embed_fonts=1 ; if set to 1 it will use an embeded Arial type font - ; that looks consistently between platforms/os -[LEGEND] -x=535 -y=50 -text=Conferences -font_size=32 -font_color=FF0000 -font_family=Arial -use_embed_fonts=1 +;[SIP/10] ; Channel name +;Position=1 ; Button number in the console +;Label="10 Fax" ; Text label for the button +;Extension=10 ; Extension to reach that channel +;Context=sip ; Context where that extension is defined +;Mailbox=10@sip ; The voicemail mailbox to monitor +;Icon=1 ; There are 6 icons available +;Url=http://www.asternic.org ; Optional, add link to button label +;Target=_new ; Optional, open link in this target +;No_Rectangle=0 ; Optional: If enabled, it will not draw the button +; ; rectangle, only the icons inside +;Background=bg.jpg ; Optional: it will load that jpg as the button +; ; background. It should match the size as specified +; ; in op_style.cfg btn_width and btn_height. +;VoiceMailExt=910@vm ; extension@context to use for transferring a call +; ; directly to voicemail +;Privacy=false ; if set to true, it will hide callerid info for +; ; the button +;GroupCount=1 ; Will show number of channels in use instead of clid +;Astdbkey=10 ; If using astdb functions, enable it for this button +; ; using the key provided +;SpyExt=20@spy -[LEGEND] -x=555 -y=270 -text=Queues -font_size=32 -font_color=000000 -font_family=Arial -use_embed_fonts=1 +;[SIP/11] +;Position=n ; Position 'n' will be the next available +;Label="Multiline%0aLabel" ; %0a is the new line character +;Extension=11 +;Context=sip +;Icon=1 +;Server=1 ; If you omit the Server, it will default to 1 -[LEGEND] -x=160 -y=40 -text=Extensions -font_color=000000 -font_size=32 -font_family=Arial -use_embed_fonts=1 +;[SIP/12] +;Position=n +;Label="12 Ernest" +;Extension=11 +;Context=sip +;Icon=1 +;Server=2 ; If you monitor more than one server change this -[LEGEND] -x=75 -y=75 -text=Local -font_size=24 -font_family=Arial -font_color=000000 -use_embed_fonts=1 +;[_SIP/.*] ; You can use REGEXP. Prefix the button with an +;Position=1,2 ; underscore followed by your expression +; ; (you cannot use & and = as they are reserved) +;Label="SIP Guest" +;Extension=-1 ; If set to -1 you will not be able to transfer +; ; to this button +;Context=internos +;Icon=1 -[LEGEND] -x=315 -y=75 -text=Remote -font_color=000000 -font_size=24 -font_family=Arial -use_embed_fonts=1 +;[SIP/16] +;Position=6 +;Label="16 Nicolás" ; you can use unicode for extended characters +;Extension=16 +;Context=internos +;Icon=1 +;Mailbox=16@internos -[IMAGE] -src=logo.jpg -x=30 -y=30 +;[CAPI[contr1/NNNNNNNNN]] ; where NNNN is the ISDN number. If you +;Position=22,23 ; specify more than one position, the button +; ; will be considered a 'trunk', each call will be +; ; displayed in a separate button +;Label="External CAPI" +;Extension=-1 +;Context=in-extern +;Icon=4 + +;[SIP/17] +;Position=7 +;Label="17 Martin" +;Extension=17 +;Context=internos +;Icon=1 +;Mailbox=17@internos + +;[IAX2/3002] +;Position=3 +;Label="3002 IAX Client" +;Extension=3002 +;Context=iaxcontext +;Icon=1 + +;[QUEUE/SALES] ; queues must be defined by its name +;Position=12 +;Label="Sales Queue" +;Extension=-1 ; -1 to disable transfers to this button +;Icon=3 +;Alarm=30^alarm.php?queue=sales^_new^ ; Timer Alarm. If timer reachs 30 seconds, open/popup alarm.php in _new target + +;[QUEUE/SUPPORT] +;Position=13-18 ; each position will be used by users waiting +; ; on that position number +;Label="Support Queue" +;Extension=-1 ; -1 to disable transfers to this button +;Icon=3 + +;[Local/5555555@sip] +;Position=26 +;Label="Speed Dial" +;Extension=5555555 +;Context=sip +;Icon=2 + +;[IAX2/iaxtel] +;Position=15,16 +;Label="Iaxtel" +;Extension=-1 +;Icon=2 + +;[SIP/provider] +;Position=20 +;Label=Sip Provider +;Extension=-1 +;Icon=2 + +; buttons with panel context will be displayed in their +; own panel, you have to append ?context=NAME when loading +; the swf file +; +;[IAX2/iaxtel] +;Position=15,16 +;Label="Iaxtel" +;Extension=-1 +;Icon=2 +;Panel_context=sip +;[LEGEND] +;x=315 +;y=75 +;text=Remote +;font_color=000000 +;font_size=24 +;font_family=Arial +;use_embed_fonts=1 +; +;[IMAGE] +;src=logo.jpg +;x=30 +;y=30 # The entry below will create ONE button @@ -304,8 +624,6 @@ ;groupcount=1 -;include => more_legends.cfg - # Experimental auto_sip buttons: # they match any sip peers as de regexp # and fill all matching peers starting diff -urNad op_panel-0.30~/op_style.cfg op_panel-0.30/op_style.cfg --- op_panel-0.30~/op_style.cfg 2009-06-22 14:06:10.000000000 -0400 +++ op_panel-0.30/op_style.cfg 2010-02-16 16:47:55.406764547 -0500 @@ -31,8 +31,8 @@ ledcolor_paused=0x000000 ; Settings for the button (rectangle) -btn_width=246 -btn_height=70 +btn_width=195 +btn_height=50 btn_padding=4 btn_line_width=2 btn_line_color=0x000000 @@ -42,22 +42,22 @@ btn_highlight_color=ff0000 ; Settings affecting the button label -label_font_size=20 -label_font_family=Verdana ; only valid when use_embed_fonts is disabled +label_font_size=11 +label_font_family=DejaVu Sans ; only valid when use_embed_fonts is disabled label_font_color=000000 label_shadow_color=dddddd -label_margin_top=20 +label_margin_top=17 label_margin_left=38 label_shadow=1 -label_extent_x=10 ; If the label does not fit horizontally, increase this number +label_extent_x=30 ; If the label does not fit horizontally, increase this number label_extent_y=0 ; Settings affecting the button clid -clid_font_color=00dd00 -clid_font_size=13 +clid_font_color=000000 +clid_font_size=12 clid_centered=1 -clid_font_family=Verdana +clid_font_family=DejaVu Sans clid_margin_top=0 clid_margin_left=25 @@ -65,48 +65,49 @@ timer_font_color=4000ff timer_font_size=13 timer_font_family=Courier -timer_margin_top=48 -timer_margin_left=6 +timer_margin_top=33 +timer_margin_left=10 + ; Settings for the oval led -led_scale=90 -led_margin_top=34 +led_scale=60 +led_margin_top=25 led_margin_left=20 ; Settings for the arrow -arrow_scale=70 -arrow_margin_top=10 -arrow_margin_left=15 +arrow_scale=65 +arrow_margin_top=9 +arrow_margin_left=185 ; Settings for MWI Icon mail_margin_left=-23 mail_margin_top=13 -mail_scale=9 +mail_scale=7 ; Settings for icons -icon1_margin_top=43 -icon1_margin_left=-34 -icon1_scale=17 +icon1_margin_top=25 +icon1_margin_left=-27 +icon1_scale=12 -icon2_margin_top=46 +icon2_margin_top=25 icon2_margin_left=-29 -icon2_scale=14 +icon2_scale=12 -icon3_margin_top=34 +icon3_margin_top=25 icon3_margin_left=-36 -icon3_scale=20 +icon3_scale=12 -icon4_margin_top=33 +icon4_margin_top=25 icon4_margin_left=-34 -icon4_scale=16 +icon4_scale=7 -icon5_margin_top=32 +icon5_margin_top=25 icon5_margin_left=-33 -icon5_scale=16 +icon5_scale=12 -icon6_margin_top=32 +icon6_margin_top=25 icon6_margin_left=-33 -icon6_scale=16 +icon6_scale=12 ; Settings for Status Bar at the top show_security_code=1 debian/patches/06_ming43.dpatch0000644000000000000000000002455211467144407013430 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 06_ming43.dpatch by Jean-Michel Dault ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Correct code to build with Ming 0.4.3 @DPATCH@ diff -urNad op-panel-0.30~dfsg/ming-source/operator_panel.pl.orig op-panel-0.30~dfsg/ming-source/operator_panel.pl --- op-panel-0.30~dfsg/ming-source/operator_panel.pl.orig 2010-02-16 15:03:29.542764358 -0500 +++ op-panel-0.30~dfsg/ming-source/operator_panel.pl 2010-02-16 15:07:18.362764749 -0500 @@ -42,7 +42,7 @@ $font = shift; $str = shift; - $txtfield = new SWF::TextField( SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_WORDWRAP | SWFTEXTFIELD_USEFONT ); + $txtfield = new SWF::TextField( SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_WORDWRAP ); $txtfield->setHeight(254); $txtfield->setBounds(200,30); $txtfield->setName($name); @@ -62,7 +62,7 @@ ################################################# ## SELECT TIMEOUT BOX ################################################# -$dropbox1 = new SWF::Sprite(); +$dropbox1 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5600, 0); @@ -207,7 +207,7 @@ $font_general = new SWF::Font($fuente); -$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT | SWFTEXTFIELD_NOSELECT ); +$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $s8->setBounds(1411, 398); $s8->setFont($font_general); #$s8->setFont(new SWF::Font("_sans")); @@ -228,7 +228,7 @@ ## MovieCLIP progress graphic ## -$progressclip = new SWF::Sprite(); +$progressclip = new SWF::MovieClip(); ### Shape 2 ### $s2 = new SWF::Shape(); @@ -1761,7 +1761,7 @@ #$font_general = new SWF::Font($fuente); # Ventana INPUT del security code -$codebox = new SWF::Sprite(); +$codebox = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $g = new SWF::Gradient(); @@ -1828,7 +1828,7 @@ $s3->drawLine(-4713, 0); $i4 = $codebox->add($s3); -$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_NOSELECT ); $s5->setBounds(5650, 653); $s5->setFont($font_general); $s5->setHeight(320); @@ -1839,7 +1839,7 @@ $i5 = $codebox->add($s5); $i5->moveTo(2704, 3067); -$s6 = new SWF::TextField( SWFTEXTFIELD_PASSWORD | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField( SWFTEXTFIELD_PASSWORD ); $s6->setBounds(4579, 398); $s6->setFont($font_general); $s6->setHeight(320); @@ -2032,7 +2032,7 @@ # with the number constructed from javascript while setting # the frame of the movieclip. # -$numdial = new SWF::Sprite(); +$numdial = new SWF::MovieClip(); $numdial->add(new SWF::Action(<<"EndOfActionScript")); _global.numero_a_discar+="0"; stop(); @@ -2119,7 +2119,7 @@ # Detail Window movieclip -$detail_window = new SWF::Sprite(); +$detail_window = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $g = new SWF::Gradient(); @@ -2164,7 +2164,7 @@ $s1->drawLine(0, -3966); $s1->drawCurve(0, -44, -30, -33); -$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s3->setBounds(3112, 377); $s3->setFont($font_general); $s3->setHeight(280); @@ -2173,7 +2173,7 @@ $s3->setName('title'); $s3->addString('Last call details:'); -$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s5 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s5->setBounds(907, 330); $s5->setFont($font_general); $s5->setHeight(260); @@ -2182,7 +2182,7 @@ $s5->setName('label'); $s5->addString('From:'); -$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s6->setBounds(1097, 330); $s6->setFont($font_general); $s6->setHeight(260); @@ -2191,7 +2191,7 @@ $s6->setName('duration_label'); $s6->addString('Duration:'); -$s7 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s7 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s7->setBounds(2517, 330); $s7->setFont($font_general); $s7->setHeight(260); @@ -2199,7 +2199,7 @@ $s7->align(SWFTEXTFIELD_ALIGN_LEFT); $s7->setName('clid'); -$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_USEFONT ); +$s8 = new SWF::TextField(SWFTEXTFIELD_NOEDIT ); $s8->setBounds(2116, 330); $s8->setFont($font_general); $s8->setHeight(260); @@ -2391,7 +2391,7 @@ # Superdetail window -$superdetails = new SWF::Sprite(); +$superdetails = new SWF::MovieClip(); $s1 = new SWF::Shape(); $g = new SWF::Gradient(); $g->addEntry(0.000000, 0xff, 0xff, 0xff); @@ -2435,7 +2435,7 @@ $s1->drawLine(0, -3966); $s1->drawCurve(0, -44, -30, -33); -$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_USEFONT ); +$s3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE ); $s3->setBounds(4939, 4740); $s3->setFont($font_general); $s3->setHeight(260); @@ -2592,7 +2592,7 @@ "); -$fs3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$fs3 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $fs3->setBounds(939, 200); $fs3->setName('titlefs3'); $fs3->setFont($font_general); @@ -2601,7 +2601,7 @@ $fs3->align(SWFTEXTFIELD_ALIGN_LEFT); $fs3->addString('Queue'); -$fs2 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$fs2 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $fs2->setBounds(939, 200); $fs2->setName('titlefs2'); $fs2->setFont($font_general); @@ -2610,7 +2610,7 @@ $fs2->align(SWFTEXTFIELD_ALIGN_LEFT); $fs2->addString('Call'); -$sptab = new SWF::Sprite(); +$sptab = new SWF::MovieClip(); $sptab->add($s8); $sptab->add($s8a); $sptab->nextFrame(); @@ -2674,7 +2674,7 @@ -$ventana_debug = new SWF::Sprite(); +$ventana_debug = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(120, -120); @@ -2750,7 +2750,7 @@ $s4->drawLine(0, -3966); $s4->drawCurve(0, -44, -30, -33); -$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT | SWFTEXTFIELD_USEFONT ); +$s6 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_NOSELECT ); $s6->setBounds(8104, 398); $s6->setFont($font_general); $s6->setHeight(320); @@ -2874,7 +2874,7 @@ $s11->drawLine(0, -3620); $s11->drawLine(8158, 0); -$s13 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_USEFONT ); +$s13 = new SWF::TextField(SWFTEXTFIELD_NOEDIT | SWFTEXTFIELD_MULTILINE ); $s13->setBounds(8000, 3606); $s13->setFont($font_general); $s13->setHeight(320); @@ -2918,7 +2918,7 @@ -$ledcolor = new SWF::Sprite(); +$ledcolor = new SWF::MovieClip(); $s1 = new SWF::Shape(); $s1->movePenTo(524, 125); $s1->setLeftFill(255, 0x00, 0x00); @@ -2940,7 +2940,7 @@ $ledcolor->nextFrame(); # end of frame 1 -$ledsombra = new SWF::Sprite(); +$ledsombra = new SWF::MovieClip(); $s2 = new SWF::Shape(); $s2->movePenTo(216, -124); $s2->setRightFill(0x00, 0x00, 0x00, 0x32); @@ -3038,7 +3038,7 @@ $i2->addColor(0x00, 0x00, 0x00); $ledsombra->nextFrame(); -$ledbrillo = new SWF::Sprite(); +$ledbrillo = new SWF::MovieClip(); $s4 = new SWF::Shape(); $g = new SWF::Gradient(); $g->addEntry(0.368627, 0x00, 0x00, 0x00, 0x00); @@ -3111,7 +3111,7 @@ ####### Arrow -my $fle = new SWF::Sprite(); +my $fle = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5642, 3859); @@ -3751,7 +3751,7 @@ $s_icon2->drawLine(20, 0); # icon3 Movieclip -my $i_icon2 = new SWF::Sprite(); +my $i_icon2 = new SWF::MovieClip(); my $item = $i_icon2->add($s_icon2); $item->scaleTo(0.5); $i_icon2->nextFrame(); @@ -4758,7 +4758,7 @@ $s_icon1_f2->drawCurve(-73, 273, -12, 177); # Icon1 Movieclip -my $i_icon1 = new SWF::Sprite(); +my $i_icon1 = new SWF::MovieClip(); $item = $i_icon1->add($s_icon1); $item->scaleTo(0.5); $item->moveTo(-3000, -2100); @@ -4770,7 +4770,7 @@ $i_icon1->nextFrame(); -$envelope = new SWF::Sprite(); +$envelope = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(8722, 1745); @@ -4954,7 +4954,7 @@ -$telefono3 = new SWF::Sprite(); +$telefono3 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(7575, 1918); @@ -5027,7 +5027,7 @@ ### Shape 1 ### -$telefono4 = new SWF::Sprite(); +$telefono4 = new SWF::MovieClip(); $s1 = new SWF::Shape(); $s1->movePenTo(8338, 3364); $s1->setLeftFill(0x00, 0x00, 0x00); @@ -5268,7 +5268,7 @@ -$conference1 = new SWF::Sprite(); +$conference1 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(7708, 2179); @@ -5961,7 +5961,7 @@ $conference1->nextFrame(); # end of frame 1 -$conference2 = new SWF::Sprite(); +$conference2 = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(6139, 1671); @@ -6167,7 +6167,7 @@ # status log toolbar -# $statusbar = new SWF::Sprite(); +# $statusbar = new SWF::MovieClip(); ### Shape 1 ### # $s1 = new SWF::Shape(); # $s1->movePenTo(19920, 0); @@ -6185,7 +6185,7 @@ -$extrainfo = new SWF::Sprite(); +$extrainfo = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(5400, 0); @@ -6212,7 +6212,7 @@ $i2 = $extrainfo->add($s1); $i2->scaleTo(0.5); -#$s3 = new SWF::TextField(SWFTEXTFIELD_USEFONT ); +#$s3 = new SWF::TextField(); #$s3->setBounds(3740, 398); #$s3->setFont($font_general); #$s3->setHeight(320); @@ -6228,7 +6228,7 @@ -$boton_ayuda = new SWF::Sprite(); +$boton_ayuda = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(439, 222); @@ -6421,7 +6421,7 @@ $boton_ayuda->nextFrame(); # end of frame 1 -$boton_debug = new SWF::Sprite(); +$boton_debug = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(415, 159); @@ -6669,7 +6669,7 @@ -$boton_reload = new SWF::Sprite(); +$boton_reload = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(424, 154); @@ -6866,7 +6866,7 @@ $boton_reload->remove($i1); -$boton_security = new SWF::Sprite(); +$boton_security = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(493, 135); @@ -7057,7 +7057,7 @@ $boton_security->nextFrame(); # end of frame 1 $boton_security->remove($i1); -$boton_security_unlock = new SWF::Sprite(); +$boton_security_unlock = new SWF::MovieClip(); ### Shape 1 ### $s1 = new SWF::Shape(); $s1->movePenTo(493, 135); debian/patches/op_server.pl0000644000000000000000000000542111467144454013172 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01_op_server.pl.dpatch by Alejandro Rios P. ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad op-panel-0.26.dfsg~/op_server.pl op-panel-0.26.dfsg/op_server.pl --- op-panel-0.26.dfsg~/op_server.pl 2006-09-09 07:00:06.000000000 +0000 +++ op-panel-0.26.dfsg/op_server.pl 2006-09-09 07:01:11.000000000 +0000 @@ -308,6 +308,9 @@ $directorio = $confdir; } +open( CONFIG, "<$directorio/op_server.cfg" ) + or die("Could not open op_server.cfg. Aborting..."); + if ( $logdir ne "" ) { open( STDOUT, ">>$logdir/output.log" ) or die "Can't open output log $logdir/error.log"; @@ -319,7 +322,8 @@ defined( my $pid = fork ) or die "Can't Fork: $!"; exit if $pid; setsid or die "Can't start a new session: $!"; - open MYPIDFILE, ">$pidfile"; + open MYPIDFILE, ">$pidfile" + or die "Failed to open PID file $pidfile for writing." ; print MYPIDFILE $$; close MYPIDFILE; @@ -9100,11 +9104,11 @@ =head1 NAME -op_server.pl - Proxy server for the Asterisk Flash Operator Panel +op_server - Proxy server for the Asterisk Flash Operator Panel =head1 SYNOPSIS -op_server.pl [options] +op_server [options] Options: -?, --help @@ -9125,11 +9129,11 @@ =item B<--pidfile> -Specify the pid file to use when running in daemon mode. Defaults to /var/run/op_panel.pid +Specify the pid file to use when running in daemon mode. Defaults to /var/run/op_panel.pid. See /etc/init.d/op-panel for Debian defaults. =item B<--confdir> -Specify where to look for the configuration files. If omited, it will look for them in the same directory where op_server.pl resides +Specify where to look for the configuration files. If omited, it will look for them in the same directory where op_server resides =item B<--logdir> @@ -9151,6 +9155,31 @@ =head1 DESCRIPTION -B will read the given input file(s) and do someting useful with the contents thereof. +B is a proxy server for the Flash Operator Panel. It reads configuration files and updates the data to display on the panel. -=cut +=head1 FILES + +=over 8 + +=item B + +The configuration files of the operator panel daemon reside in that directory +(may differ on other distributions). Those include: + +=item B + +The server's configuration file. See remarks in file for documentation. + +=item B + +Defines the layout of the operator panel, and also which phones to track. + +=item B + +The standard output of the daemon, including debugging prints and dumps. + +=item B + +The standard error of the daemon. Should normally be empty. + +=cut debian/patches/series0000644000000000000000000000023111467151407012034 0ustar #op_server.pl 08_sampleconfig.dpatch cfgcomments libmingfonts remove_SWFTEXTFIELD_USEFONT 04_callerid.dpatch 05_register.dpatch 07_ming43_buttons.dpatch debian/patches/libmingfonts0000644000000000000000000000072411467144454013250 0ustar Description: Replace the non-free Arial with DejaVu Sans Avoid the need to embed the non-free Arial font. Replace it with a free alternative. --- a/ming-source/operator_panel.pl +++ b/ming-source/operator_panel.pl @@ -34,8 +34,8 @@ $movie->setRate(20); -$fuente="/usr/src/ming/util/fonts/Arial.fdb"; -$fuente_nombre="Arial"; +$fuente="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"; +$fuente_nombre="DejaVu Sans"; sub maketextfield { $name = shift; debian/patches/07_ming43_buttons.dpatch0000644000000000000000000000310411467144407015175 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 07_ming43_buttons.dpatch ## ## http://permalink.gmane.org/gmane.comp.telephony.pbx.asterisk.fop/1225 ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Gradient buttons for Ming 0.4.3 @DPATCH@ diff -urNad op-panel-0.30~dfsg/ming-source/operator_panel.pl.orig op-panel-0.30~dfsg/ming-source/operator_panel.pl --- op-panel-0.30~dfsg/ming-source/operator_panel.pl.orig 2010-02-16 15:03:29.542764358 -0500 +++ op-panel-0.30~dfsg/ming-source/operator_panel.pl 2010-02-16 15:07:18.362764749 -0500 @@ -3045,26 +3045,25 @@ $g->addEntry(0.913725, 0x00, 0x00, 0x00, 0x99); $f1 = $s4->addFill($g, SWFFILL_RADIAL_GRADIENT); $f1->skewXTo(0.234316); -$f1->scaleTo(0.06, -0.06); +$f1->scaleTo(1.5); $f1->rotateTo(165.488144); -$f1->moveTo(383, 415); $g = new SWF::Gradient(); $g->addEntry(0.000000, 0xff, 0xff, 0xff); $g->addEntry(0.282353, 0xff, 0xff, 0xff, 0x8d); $g->addEntry(1.000000, 0xff, 0xff, 0xff, 0x00); $f2 = $s4->addFill($g, SWFFILL_RADIAL_GRADIENT); $f2->skewXTo(0.234808); -$f2->scaleTo(0.030644, -0.027754); +$f2->scaleTo(1,0.9); $f2->rotateTo(165.465546); -$f2->moveTo(405, 500); +$f2->moveTo(60, 180); $g = new SWF::Gradient(); $g->addEntry(0.196078, 0xff, 0xff, 0xff); $g->addEntry(0.921569, 0xff, 0xff, 0xff, 0x00); $f3 = $s4->addFill($g, SWFFILL_RADIAL_GRADIENT); $f3->skewXTo(0.103049); -$f3->scaleTo(0.015, -0.009); +$f3->scaleTo(0.4,0.25); $f3->rotateTo(170.450867); -$f3->moveTo(291, 115); +$f3->moveTo(-80, -210); $s4->movePenTo(669, 336); $s4->setRightFill($f1); $s4->drawCurve(-34, -124, -113, -85); debian/patches/cfgcomments0000644000000000000000000000263711467150520013056 0ustar Author: Alejandro Rios P. Description: Fix sample configuration Debian-specific fixes to the sample configuration. - reference the examples. - Connect to Asterisk on localhost by default. - The .swf file is in /usr/share/op-panel/flash . --- a/op_astdb.cfg +++ b/op_astdb.cfg @@ -1,3 +1,6 @@ +; Here you can configure Asterisk Database settings for op-panel. +; See /usr/share/doc/op-panel/examples + ; FOP will ask for the value of the asterisk database families ; specified between brackets. If the value is non empty, it will ; send the commands to the flash client. Note that the family --- a/op_server.cfg +++ b/op_server.cfg @@ -3,7 +3,7 @@ use_amportal_conf=0; ; host or ip address of asterisk -manager_host=192.168.0.1 +manager_host=127.0.0.1 manager_port=5038 ; user and secret for connecting to * manager manager_user=user @@ -53,7 +53,7 @@ ; location of the .swf file in your disk (must reside somewhere ; inside your web root) -flash_dir=/var/www/html/panel +flash_dir=/usr/share/op-panel/flash ; secret code for performing hangups and transfers security_code=dkd4393kld --- a/op_buttons.cfg +++ b/op_buttons.cfg @@ -1,6 +1,9 @@ #Sample config file for 8 PSTN lines and 36 extensions #More examples at the end of the file +# Here you can configure Asterisk Database settings for op-panel. +# See /usr/share/doc/op-panel/examples + [SIP/1101] Position=n Label="1101" debian/patches/05_register.dpatch0000644000000000000000000000171511467147104014143 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 05_register.dpatch by Jean-Michel Dault ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Grey out phones that don't have an IP even if they do not use "qualify". @DPATCH@ --- a/op_server.pl +++ b/op_server.pl @@ -5319,8 +5319,14 @@ } if ( $state =~ /^Unm/ ) { - $texto = "®istered"; - $estado_final = "registrado"; + #JMD Grey out phones that don't have an IP, even if unmonitored + if ( $hash_temporal{"IP"} =~ /Unspecified/ ) { + $texto = "¬registered"; + $estado_final = "noregistrado"; + } else { + $texto = "®istered"; + $estado_final = "registrado"; + } $unico_id = "YYYY-$server"; if ( $canalid !~ /(.*)-XXXX$/ ) { $canalid = $canalid .= "-XXXX"; debian/patches/04_callerid.dpatch0000644000000000000000000000127211467147064014100 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 04_callerid.dpatch by Jean-Michel Dault ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Show both caller number and caller name @DPATCH@ --- a/op_server.pl +++ b/op_server.pl @@ -5147,6 +5147,8 @@ } $saved_clidnum{"$server^$hash_temporal{'Channel'}"} = $save_clidnum; $saved_clidname{"$server^$hash_temporal{'Channel'}"} = $save_clidname; + #JMD: Show both caller number and caller name + $saved_clidnum{"$server^$hash_temporal{'Channel'}"} = "$save_clidnum $save_clidname"; } # From now on, we only look for the State of the datos block debian/install0000644000000000000000000000060611467144407010571 0ustar op_lang*.cfg /etc/op-panel/ op_buttons.cfg /etc/op-panel/asternic/ op_server.cfg /etc/op-panel/asternic/ op_style.cfg /etc/op-panel/asternic/ op_astdb.cfg /etc/op-panel/asternic/ debian/manager.d/ /etc/asterisk/ flash /usr/share/op-panel/ dhtml /usr/share/op-panel/ op_server /usr/sbin/ operator_panel.swf /usr/share/op-panel/flash/ comunicator.swf /usr/share/op-panel/dhtml/ debian/source/0000755000000000000000000000000011467152302010467 5ustar debian/source/format0000644000000000000000000000001411467144454011706 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000023511467144407010227 0ustar version=3 opts=uversionmangle=s/^/0./,dversionmangle=s/[\.~]dfsg// \ http://www.asternic.org/download.php files/op_panel-0.(.*)\.tar\.gz debian svn-upgrade debian/changelog0000644000000000000000000001260411467152261011050 0ustar op-panel (0.30~dfsg-3ubuntu1) natty; urgency=low * Merge from Debian Unstable, remaining changes: - debian/patches/ : + 04_callerid.dpatch : Print callerid name and number + 05_register.dpatch : Grey out phones that don't have an IP address + 07_ming43_buttons.dpatch : Gradient buttons for Ming 0.4.3 + 08_sampleconfig.dpatch : Improved sample config files - Modify all the patches to fit properly with the Debian patches - Removed patch 06_ming43.dpatch as it is now in Debian. -- Bilal Akhtar Fri, 12 Nov 2010 08:43:12 +0300 op-panel (0.30~dfsg-3) unstable; urgency=low [ Gabriele Giacone ] * Team upload. * Added patch to remove SWFTEXTFIELD_USEFONT refs (Closes: #582377). * Standards version to 3.9.1. * Forced source format to 1.0. * Fixed init script for dependency based boot sequence. [ Tzafrir Cohen ] * Use a @debian.org email. * Dpkg V3 format. Refresh patches while we're at it. -- Tzafrir Cohen Mon, 16 Aug 2010 01:12:49 +0300 op-panel (0.30~dfsg-2ubuntu1) lucid; urgency=low * Merge from Debian (pkgvoip svn) * New patches: * 04_callerid.dpatch : Print callerid name and number * 05_register.dpatch : Grey out phones that don't have an IP address * 06_ming43.dpatch : Correct code to build with Ming 0.4.3 * 07_ming43_buttons.dpatch : Gradient buttons for Ming 0.4.3 * 08_sampleconfig.dpatch : Improved sample config files * Modified patch 2 to not re-patch the op_buttons.cfg file -- Jean-Michel Dault Tue, 19 Jan 2010 14:11:51 -0500 op-panel (0.30~dfsg-2) unstable; urgency=low [ Alejandro Rios P. ] * New ming can use TTF fonts, so we won't use ming-fonts-dejavu anymore (Closes: #560635). * Added ${misc:Depends} to op-panel binary. * Move op_server to op_server.pl in debian/install. [ Tzafrir Cohen ] * Use dh_link and dh_install rather than direct copying files -- Alejandro Rios P. Sat, 02 Dec 2009 14:49:31 -0500 op-panel (0.30~dfsg-1) unstable; urgency=high * New upstream release. [ Tzafrir Cohen ] * New upstream release (Closes: #472658) * Add myself to uploaders. * Fix bashism in postinst script (Victor Seva) (Closes: #453727). * Documented patches we use. * Use binary-indep rules rather than binary-arch. * Bump standards version to 3.8.0 (no change needed). * wget -N conflicts with -O (Closes: #482175). * Fix get-orig-source for ~dfsg. [ Patrick Matthäi ] * Do not ignore errors in postrm script. Thanks lintian. [ Alejandro Rios P. ] * Remove prototype.js and symlink to libjs-prototype (Closes: #475294). * Remove scriptaculous.js and symlink to libjs-scriptaculous to make lintian happy. * Don't install files under /var/www (Closes: #553551). * Depend on libjs-prototype >= 1.6.0.2 to fix CVE-2007-2383 and CVE-2008-7220, urgency=high (Closes: #555234). * Bump standards version to 3.8.3: * Create /var/run/op-panel on init script. * Added debian/README.source to describe dpatch usage. -- Alejandro Rios P. Sat, 14 Nov 2009 17:49:31 -0500 op-panel (0.27.dfsg-2) unstable; urgency=low * prerm: remove alternatives only if they exist (Closes: #434598) -- Santiago Ruano Rincón Sat, 01 Sep 2007 19:53:05 -0500 op-panel (0.27.dfsg-1) unstable; urgency=low * New upstream version: 0.27 * Added debian/watch -- Santiago Ruano Rincón Fri, 27 Apr 2007 17:54:34 -0500 op-panel (0.26.dfsg-6) unstable; urgency=medium * Included missing license statements on copyright (Closes: #409570). -- Alejandro Rios P. Sat, 3 Feb 2007 17:49:31 -0500 op-panel (0.26.dfsg-5) unstable; urgency=high * Added LSB part to init script. * Removed unneeded debian/todo file * Added missing stuff on debian/copyright. * Use asterisk user instead of op-panel to allow restarting for processes on asterisk group (say daestar, freepbx, etc.) (Closes: #398380). -- Alejandro Rios P. Tue, 14 Nov 2006 00:50:06 -0500 op-panel (0.26.dfsg-4) unstable; urgency=low * Spelling mistake in package description (Closes: #390244) * Updated ming version dependencies -- Santiago Ruano Rincón Thu, 26 Oct 2006 00:46:28 -0500 op-panel (0.26.dfsg-3) unstable; urgency=low * Moved op-panel .pid file to /var/run/op-panel -- Santiago Ruano Rincón Fri, 13 Oct 2006 10:07:40 -0500 op-panel (0.26.dfsg-2) unstable; urgency=low [Diego Iastrubni] * This package provides a manager user for asterisk * Now op-panel runs with a separate user. * Improved postinst. [Kilian Krause] * fix clean target in debian/rules:68: *** missing separator [Alejandro Rios] * Fixed man page and updated README.Debian * Remove all alternatives at package removal. * Changed /var/www/ op-panel links to flash and dhtml frontends. * Fixed init file so it won't break on upgrading, purging, etc. Closes: #386638 -- Alejandro Rios P. Sun, 10 Sep 2006 14:20:55 -0500 op-panel (0.26.dfsg-1) unstable; urgency=low [Santiago Ruano Rincón] * Fixed the ming's fonts dependencies [Alejandro Rios P.] * Initial Release, based on the Tzafrir Cohen's package. Closes: #323689 -- Alejandro Rios P. Mon, 15 Aug 2006 15:29:55 -0500