miércoles, 11 de julio de 2012

For the rate by min in Elastix Billing

For the rate by min in Elastix billing, do the following:

Go to /var/www/html/modules/billing_report
Edit index.php

Locate the following lines (249 and 260):

$charge=(($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(($cdr[8]/60)*$rate)+$rate_offset;


And replace by:

$charge=(ceil($cdr[8]/60)*$datos_tarifa['rate'])+$datos_tarifa['offset'];
$charge=(ceil($cdr[8]/60)*$rate)+$rate_offset;

jueves, 10 de mayo de 2012

Reset Admin Password (Untangle)

To reset the password for an administrator's account:
  1. Ensure that the Untangle Server is turned on.
  2. Connect a monitor, keyboard, and mouse to the Untangle Server. The monitor displays the Untangle Client.
  3. In the Navigation bar, click the Recovery Utilities button.
  4. When the Recovery window appears, click the Yes button. A terminal window appears.
  5. Scroll to Reset Administrative Accounts, and hit Enter. The following question appears: Reset administrative accounts to factory defaults (admin/passwd)?.
  6. Select Yes. The Untangle Server resets the password and informs you of the newly-assigned password. Once you log in to the Untangle Server using that newly-assigned password, the Untangle Client forces you to assign a new password.

jueves, 26 de abril de 2012

Install Gnome3 Ubuntu 12.04

sudo apt-get install gnome-shell gnome-theme-standard gnome-tweak-tool gnome-contacts gnome-sushi dconf-tools

If you want the most extensions to work with Gnome Shell 3.4 I'll suggest PPA: http://ppa.launchpad.net/webupd8team/gnome3/ubuntu
As most of the extensions on gnome extensions site is not updated for Gnome Shell 3.4.


To uninstall Unity completely and run Gnome Shell only:

sudo apt-get purge appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
 unity-lens-music unity-lens-applications unity-greeter unity-common unity-asset-pool unity-2d-launcher unity-2d libunity-misc4 libunity-2d-private0 gir1.2-unity-4.0 liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu compiz compiz-plugins-main-default libcompizconfig0

sudo apt-get purge lightdm
sudo apt-get install lightdm

Advisable: removing all local config files/folders/other local settings from "home" users. (I couldn't get Gnome Shell starting without doing this step at current state.

If you want to remove qt libs that are related to unity and other ubuntu applications:

sudo apt-get remove libqt4*

Note: if you have applications like vlc, ubuntuone and other qt depended. they will uninstalled as well.

jueves, 12 de abril de 2012

Asterisk Local Extension

[from-internal-block]               
exten => _1XXX,1,Log(DEBUG,Dialing local extension ${EXTEN})
exten => _1XXX,n,Dial(SIP/${EXTEN},${DIAL_TOUT},htwk)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "NOANSWER"]?lbl_dial-ext_1:)
exten => _1XXX,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?lbl_dial-ext_1:)
exten => _1XXX,n(lbl_dial-ext_0),Hangup()
exten => _1XXX,n(lbl_dial-ext_1),MailboxExists(${EXTEN})
exten => _1XXX,n,GotoIf($["${VMBOXEXISTSSTATUS}" = "FAILED"]?lbl_dial-ext_2:)
exten => _1XXX,n,VoiceMail(${EXTEN},u)
exten => _1XXX,n,GotoIf($["${VMSTATUS}" = "FAILED"]?lbl_dial-ext_3:)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_3),Log(ERROR,Caller ${CALLERID(all)}
failed to leave a voicemail for ${EXTEN} mailbox.)
exten => _1XXX,n,Goto(lbl_dial-ext_0)
exten => _1XXX,n(lbl_dial-ext_2),Hangup()

jueves, 23 de febrero de 2012

install iSymphony on elastix

wget http://www.i9technologies.com/support/internal/isymphonybuilds/2.2.0_2315/iSymphonyServer-2.2.0_2315-1.noarch.rpm

rpm -ivh iSymphonyServer-2.2.0_2315-1.noarch.rpm

cd /opt/isymphony/server
./config.sh


Type in:
/opt/openfire/jre






Make iSymphony start at boot:
nano /etc/rc.d/rc.local

Copy and paste this into the file

/opt/isymphony/server/shutdown.sh
/opt/isymphony/server/startup.sh

Install the free pbx module and your good to go

Otra Guia:

jueves, 19 de enero de 2012

The Perfect Server - CentOS 6.2 x86_64 With Apache2

http://www.howtoforge.com/perfect-server-centos-6.2-x86_64-with-apache2-ispconfig-3


http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel

OpenSSH Installations under CentOS Linux

To install the server and client type:
# yum -y install openssh-server openssh-clients

Start the service:
# chkconfig sshd on
# service sshd start

miércoles, 4 de enero de 2012

Instalar Asterisk Monitor

Esta es una guia para Instalar Asterisk Monitor (MonAst) 3.0
en Elastix 2.2.0

Ingresamos en consola de la central asterisk y ejecutamos los siguientes comandos:

cd /root

 
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 
yum install python-devel python-crypto pyOpenSSL zope
 
cd /usr/src
mkdir twist
cd twist
wget http://twistedmatrix.com/Releases/Twisted/11.0/Twisted-11.0.0.tar.bz2
tar jxvf Twisted-11.0.0.tar.bz2
cd Twisted-11.0.0
sudo python setup.py install
 
cd /usr/src
mkdir StarPy
cd StarPy
wget http://ignum.dl.sourceforge.net/project/starpy/starpy/1.0.0a13/starpy-1.0.0a13.zip 
unzip starpy-1.0.0a13.zip 
cd starpy-1.0.0a13 
python setup.py install
 
pear install HTTP_Client
cd /usr/src
mkdir monast 
cd monast 
wget http://kent.dl.sourceforge.net/project/monast/Monast%20for%20Asterisk%201.4%2C%201.6%20and%201.8/3.0b4/monast-3.0b4.tar.gz
tar zxvf monast-3.0b4.tar.gz
cd monast-3.0b4
./install.sh
 
MonAst base path [/opt/monast]:
MonAst HTML path [/var/www/html/monast]:
MonAst already instaled on this system. Overrite? [y/n]: y
MonAst instaled at /opt/monast
HTML files instaled at /var/www/html/monast
Instaling init.d scripts
I have demon monast started. I am trying to figure it out how to add extension under: y
 
Editamos:
 
nano /etc/asterisk/manager_custom.conf
 
Adicionamos:
 
[monast_user]                                                                                                                  
secret=12345                                                                                                                 
deny=0.0.0.0/0.0.0.0                                                                                                         
permit=127.0.0.1/255.255.255.0                                                                                          
writetimeout=100                                                                                                              
read=system,call,log,verbose,command,agent,user,config,originate,reporting                                
write=system,call,log,verbose,command,agent,user,config,originate,reporting
 
Editamos:
nano /etc/monast.conf
Modificamos valores de usuario, contraseña y direccion del pbx
Arrancamos el Servicio:
/etc/init.d/monast start
 
Entramos a Monast:
https://your_ip/monast