Saturday, December 3, 2011

Régler le nombre de sonneries avant messagerie

Par défaut, la Messagerie Vocale 3103 se déclenche au bout de vingt secondes, soit quatre sonneries.

Modifier le nombre de sonneries avant le déclenchement de votre messagerie

Une sonnerie dure environ 5 secondes. Le paramétrage s'effectue en secondes par multiples de 5. Pour modifier le nombre de sonneries avant le déclenchement de votre messagerie :
  1. Décrochez le combiné de votre ligne fixe, attendez la tonalité.
  2. Composez sans faire de pause, la séquence suivante :
  • Pour deux sonneries : étoile 6 1 0 étoile 1 0 dièse
     
  • Pour trois sonneries : étoile 6 1 0 étoile 1 5 dièse
     
  • Pour quatre sonneries : étoile 6 1 0 étoile 2 0 dièse
     
  • Pour cinq sonneries : étoile 6 1 0 étoile 2 5 dièse
     
  • Pour six sonneries : étoile 6 1 0 étoile 3 0 dièse
     
  • Pour sept sonneries : étoile 6 1 0 étoile 3 5 dièse
     
  • Pour huit sonneries : étoile 6 1 0 étoile 4 0 dièse
  1.  Vous entendez "Votre demande est acceptée et enregistrée". Vous pouvez raccrocher votre combiné.

Thursday, November 10, 2011

syslog setup for SPA3102

Create a new file named "/etc/rsyslog.d/30-spa3102.conf":

$ModLoad imudp
$UDPServerRun 514

:HOSTNAME,isequal,"192.168.1.252" /var/log/spa3102.log


Note: 192.168.1.252 is the IP of the SPA3102

Restart the rsyslog daemon:
> sudo service rsyslod restart

In the System tab, set the syslog server and the debug level:
NB: 192.168.1.105 is the address of my Ubuntu server VirtualBox .

Note: 192.168.1.105 is the IP of my ubuntu host that runs rsyslogd.

In the PSTN Line tab, set SIP Debug Option to "full":

In the Line 1 tab, set SIP Debug Option to "full":

Thursday, September 22, 2011

Add an Apache2 virtual host in Ubuntu

Add the following file into /etc/apache2/sites-available
fart:
<VirtualHost *:80>
    ServerAdmin jerome.gallinari@gmail.com
    ServerName fart.ulticom.com

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Activate the vhost: this creates a symlink from sites-enabled to sites-available
sudo a2ensite fart
Activate the new configuration
sudo /etc/init.d/apache2 reload

Make a correspondance between the new vhost and the local host
/etc/hosts:
127.0.0.1 localhost fart

Wednesday, September 21, 2011

Cannot access QNAP administration page

Symptoms: Accessing to the QNAP web administration page (http://192.168.1.102:8080) gives a blank page. Curiously, this does not happen with IE9 or Chrome, but only with Firefox 6 and does not concern access via https.

Solution: This is related to the filtering of web pages by Eset NOD32 v5.
To fix this:

NOD32 Setup | Web access protection | Configure
Web and email | Web access protection | Protocol filtering | Excluded IP addresses
and add address 192.168.1.102

Monday, September 5, 2011

How to access a guest Ubuntu web server installed in VirtualBox from a Windows 7 host OS

1) Reserve the IP address of the VirtualBox VM in the router DNS, e.g. 192.168.1.103

2) In C:\windows\system32\drivers\etc\hosts, add
192.168.1.103 fart.ulticom.com Then http://fart.ulticom.com on W7 will match the root document of the Apache web server on Ubuntu.

Thursday, August 4, 2011

Configure ATM on a PH301

First find SN#.

liasse> linkupgrade
Boards found in CE liasse :
Board 0, Ulticom 0200 type, sn# 22138, with 16 links , revision 2H
Board 0, Ulticom 0301 type, sn# 45877, with 2 links , line interface type ATM ,revision B1

Then upgrade the EEPROM on the board:

/export/home/omni_9S6/bin/test/makekey 45877 2 -b 0301 -i ATM -mode nonchan

Then restart SW and the board will be flashed.

Generate a new license file

Prendre un fichier existant: ULCM_Signalware_9_license.lic.
Rajouter/remplacer une machine.

/export/home/omni/bin/generateUlticomHostId

Reporter dans le fichier.

 cp ~/bin/scripts/resign/keystore .
 /u/gallinar/bin/scripts/resign/resign ULCM_Signalware_9_license.lic
 licenseUpdate -name Signalware -ver 9

Change php.ini on yapita

ssh yapi
su -
pwd=license4
~licweb/bin/me /etc/opt/apache/php.ini
/opt/apache/sbin/apachectl stop
/opt/apache/sbin/apachectl start

See full license My SQL req / rsp

ssh yapi
~licweb/bin/me /export/licweb/htdocs/lfgweb/conf.inc

Change ‘CONF_LOG_TRACE_LEVEL’ from ‘INFO’ into ‘ALL’.

tail -f /export/licweb/htdocs/lfgweb/log/dbproxy.<day>.log

Downgrade the license of a board

Downgrading board 0 to 2 links on king:

[gallinar@king] gallinar_cr32561_sun 698 > linkupgrade
Boards found in CE king :
Board 0, Ulticom 0200 type, sn# 23550, with 16 links , revision 4J
Board 1, Ulticom 0200 type, sn# 23507, with 16 links , revision 4J

[gallinar@king] gallinar_cr32561_sun 698 > /vob/signalware/Master/linkupgrade/unit_test/makekey 23550 2 -b PC0200 -i TDM -mode nonchan
crc=0x9EA64CF3
23550-ztkfbbfc-pwqhetyd

[gallinar@king] gallinar_cr32561_sun 698 > linkupgrade 23550-ztkfbbfc-pwqhetyd
no duplicate boards found
Upgrading board sn# 23550
Verifying board sn# 23550
Board sn# 23550 on king has been downgraded to 2 links

[gallinar@king] gallinar_cr32561_sun 698 > linkupgrade 
Boards found in CE king :
Board 0, Ulticom 0200 type, sn# 23550, with 2 links , revision 4J
Board 1, Ulticom 0200 type, sn# 23507, with 16 links , revision 4J

licenseUpdate

Can be done without stopping the stack (dyn.).

yapita / yapitatest information

Symbolic links:

/export/licweb/htdocs -> /export/apache/lfg/htdocs
/export/apache -> /export/homea/apache

phpMy Admin directory:

/export/homea/apache/yapitatest/htdocs/phpmyadmin

There is now a symlink from ~licweb/phpmyadmin to access it via: http://yapitatest.ulticom.com/phpmyadmin
To make it work, I had to change the owner of the phpmyadmin directory as well as the phpmyadmin/index.php to be (licweb, apache).

Document Root is defined as /export/homea/apache/lfg/htdocs in:

/etc/opt/apache/hosts/lfgtest.conf

Connect from xenon to yapitatest

xenon> mysql -u lfguser2 -pzolefogo -h yapitatest.ulticom.com lrsdb2

How to test a new hostid

From CR29335:

  • I changed temporarily the machine hostid to be the same as the Petra’s machine (siena2): 0×05919040. Actually, I just wanted to test the license lib against a hostid starting with 0.
  • I then re-generated the complete Ulticom host id of the machine and used it to re-sign my license file.
    This caused licenseUpdate to output the same original error message as Petra’s: “Permission denied, no valid Ulticom host identifier.”
  • I then used gdb to track what part of the code in the license lib was causing it.
    From what I saw, in expatparse.c file, function processHost Id(), we try to compare the string “05919040-Sun OS-sangria-E04CA67B1B5BBABBB83726A8”, as extracted from my license file with either “5919040-Sun OS-33BEB694D320A3A018243C2B9C” or “5919040-Sun OS-sangria-2918BA5D70D5EEA84E90339FB6”, which are the results of getMy Host Id From CE() and getMy Old Host Id From CE() respectively.

How to use deploy.xml onto lrsbet2

> /vob/common/3rdparty/jakarta-ant/apache-ant-1.8.1/bin/ant -f deploy.xml -Dlrs.instance=test2

gprof enabling

  • Add the ”-pg” option to every .o compilation + to the exe also.
  • Link with static versions of libraries that need being profiled.

Example given:

cd /vob/signalware/Master/scos
swmake gprof
cd /vob/signalware/Master/test/tcap/c7
rm /vob/signalware/Master/library/libscos.so
clearmake -V "PROT_FLAGS=-DC7_Q" gprof

Then running c7icptrans should produce a gmon.out.

To extract the information from gmon.out, use gprof:

gprof /export/home/omni_9S5/bin/test/c7icptrans gmon.out > gprof.txt