Skype e SIP

March 24th, 2009

Dopo tante richieste da parte degli utenti finalmente ieri skype ha annunciato l’apertura al protocollo SIP per l’integrazione con i centralini VOIP come il nostro Asterisk.

Stando a quanto si legge, si potrà finalmente interagire con la rete di utenti Skype (che resta comunque bella blindada) inviando e ricevendo chiamate. Una prima lista di features è disponibile qui.

Ok si tratta sempre di un sistema chiuso che non ci fa proprio impazzire ma avere accesso ad un bacino di oltre 400 milioni di utenti voip vale una sbirciatina e un iscrizione al programma di betatesting

Per la gestione della posta elettronica, IMAP è decisamente una figata,  soprattutto per chi ha diverse postazioni da cui consultare la posta (pc fisso in ufficio, portatile, casa, palmare etc) oppure chi ha la necessità di condividere una casella email tra diverse persone. In pratica i messaggi ricevuti ed inviati vengono visualizzati sul computer ma rimangono salvati sul server, a disposizione.
Da quando usiamo thunderbird nelle varie versioni mac/linux tutto funziona perfettamente tranne una cosa: la gestione e il caricamento dei messaggi con degli allegati. Visto il nervoso che mi ha provocato nei mesi il problema e vista l’assenza di menzioni in taliano al problema, ho deciso di postare qui la mia esperienza, sperando sia d’aiuto a qualche googolatore disperato.
Il problema, in pratica  è che ogni messaggio con un’allegato di qualche mega, ogni volta che viene visualizzato, se non si salvano delle copie sul disco locale, viene scaricato per intero senza limitarsi a header e corpo del messaggio.  Questo vuol dire che per avere un’anteprima di un messaggio con scritto “CIAO” e una foto da 3 mega allegata, occorre attendere che l’intero messaggio sia scaricato, per poi riscaricarlo se lo si vuole salvare su disco.  Ovviamente è sufficiente cambiare mesasggio o cartella per sbaglio (o perchè ci è arrivato un nuovo messaggio) che l’attesa diventa inutile e il download riparte da zero. Se ricevete tanti allegati, è davvero fastidioso.

Fino alla versione 1.5 si trattava di un bug conosciuto con cui seppur a fatica, abbiamo convissuto aspettando un fix ma da li in poi nonostante i tentativi saltuari di cambiare settagi e preferenze, il problema non ha mai trovato soluzione.

Almeno finquando non ho trovato questo articolo su mozillazine che, oltre a lisatre tutte le possibili cause, segnala anche un bug che si è poi rivelato essere il mio problema e che mai ero riuscito a trovare.

After few tests i succesfully configured my Nokia E60 to connect to our Asterisk / TrixBox local server. We have a working trixbox server with static ip address and a Nokia E60 with wireless lan configured and already working.
Here what you have to do:
1. Connect via browser to asterisk FreePBX control panel. Select Setup>Extension and create a new sip extension with these settings:

Extension number: [the number you want to set for your nokia "2021" for example]
Secret: [the password you want to set. "pizza" for example]
type: friend
qualify: no
port: 5060
notransfer: yes
host: dynamic
context: from-internal
disallow: all
allow: alaw

If you don’t have FreePBX installed you can add this extension by editing sip.conf file.

2. Now grab your nokia and start to configure it to connect to asterisk.

Open tools > Settings > Conection > Sip Settings and change settings as follow:

Add a new profile by select “use default profile” and add these settings

Profile name: [give a name to your profile
Service profile: IETF
Default access point: [Select your wifi lan from the list]
Public user name: sip:[thenumberyouchose es 2021]@[domain assigned to your phone]
Use compression: No
Regristration: Always on
Use security: No

3. Now enter the Proxy server settings and add:
Proxy server address: sip:[ip of your asterisk server]
Realm: asterisk (this is the default for trixbox but it may be different on other installations)
User name: [your SIP user, 2021 in our example]
Password: [Your password, pizza in our example
Allow loose routing: Yes
Transport type: UDP
Port: 5060

4. Now enter in Registar server and add:
Registrar serv.addr.: sip:asterisk
Realm: -
User name: -
Password: -
Transport type: UDP
Port: 5060

Then navigate to Tools->Settings->Connection->Internet tel. settings: and create a new profile in the Options menu with the following settings:

name: choose a name
SIP profile: previously defined profile

If you did everything correclty you should read a notification message and your phone should be registered on your server, now digit any internal number in your lan, select options>call> internet call and your phone should ring.

ImageVue Hack

November 6th, 2006

Image vue hack

This weekend, one of our server has been turned off because our ISP find on it a Phishing site. After some analisys we find that all problems comes from a domain with imageVue (a flash/php image gallery) installed.

The vulnerability is damn simple: the upload script doesn’t check credentials and doesn’t check file extension so anyone can go to http://urlofscript/admin/upload.php?path=../pathyouwant and upload everything.

Fortunately the system is clean and uncompromized, but the exploiter installed on it a “nice” phishing site for http://banca-bancolombia.com the same damn thing also described on this post.

The vulnerability is well described on securityfocus. So if you run ImageVue on your website make sure it’s a safe version.

After we upgrade all linux machines to FC6, the Adobe Acrobat Reader (v. 7.0.8-1 installed via rpm) application failed to start entering a sort of loop eating a lot of cpu %.

Launching Acrobat from commandline the error repeated was: “expr: syntax error”

Googoling a little i found a solution that works on all machines:

Open /usr/bin/acroread with your text editor

Go to line 418 and replace this line:

echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

with this one:

echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'

All in the same line without line breaks.

Now kill all Acrobat process alredy opened and try to relaunch Acrobat. It should works