Asterisk 1.6.2.1

Il giorno 15/01/2010 e’ stata rilasciata l’ultima versione del branch 1.6 di Asterisk. Si tratta di una minor release che risolve una serie di bugs piu’ o meno severi. L’annuncio ufficiale:

The release of Asterisk 1.6.2.1 resolved several issues reported by the
community, and would have not been possible without your participation. Thank
you!

* CLI ‘queue show’ formatting fix.
(Closes issue #16078. Reported by RoadKill. Tested by dvossel. Patched by
ppyy.)

* Fix misreverting from 177158.
(Closes issue #15725. Reported, Tested by shanermn. Patched by dimas.)

* Fixes subscriptions being lost after ‘module reload’.
(Closes issue #16093. Reported by jlaroff. Patched by dvossel.)

* app_queue segfaults if realtime field uniqueid is NULL
(Closes issue #16385. Reported, Tested, Patched by haakon.)

* Fix to Monitor which previously assumed the file to write to did not contain
pathing.
(Closes issue #16377#16376. Reported by bcnit. Patched by dant.

Release Summary

Posted in asterisk | Leave a comment

Asterisk va in ferie: giorni festivi e voicemenu

Configurando le funzioni di voicemenu, nasce spesso l’esigenza di dover lanciare un menu vocale specifico solo per  i giorni festivi. La soluzione piu’ semplice e facilemente applicabile consiste nell’utilizzare il database interno di asterisk ed eseguire un check nella macro del numero principale.

Database: per aggiungere un’entrata “giornifestivi” al database asterisk si utilizzera’ il comando ‘database’ come da esempio, sostiuendo la YYYYMMDD (key) con il giorno desiderato (es. 20101225):

asterisk -rx 'database put giornifestivi YYYYMMDD 1'

Dialplan: la funzione DB_EXISTS restituira’ valore 1 se la chiave YYYYMMDD esiste. Nel esempio sottostante il dialplan continuera’ l’esecuzione della macro “reception” se il  giorno e’  feriale, saltera’ nel menu vocale “menu-reception” durante i giorni festivi.

[macro-reception]
include = default
exten =>s,1,GotoIf(${DB_EXISTS(bankholiday/${STRFTIME(${EPOCH},,%Y%m%d)})}?vm-reception,s,2)
exten => s,n,GotoIf($[${DB(reception/away)} = break]?vm-reception-break,s,2)

Posted in asterisk | Tagged , , , , , , , | Leave a comment

Gestione centralizzata della configurazione di Asterisk

Nei centralini telefonoci di piccole/medie dimensioni, spesso nasce l’esigenza di poter centralizzare i dati di configurazione degli utenti SIP in un unico file. L’autoprovisioning dei telefoni, la rubrica telefonica e i file di asterisk condividono spesso gli stessi dati. Editare a mano ogni singolo file diventa spesso un lavoro ripetitivo.

… approfondimento qui

Posted in Python, asterisk | Tagged , , , , , , , , | Leave a comment

Voice Menu automatic language messages support

Using a simply regex we can analyse the first number of an incoming call and run a different voicemenu message. Spanish numbers start with “9″ (standard lines) or “6″ (gsm lines). Incoming call that start with a different numbers or hidden numbers go to the Background message “working-time-en”.

exten => s,n,GotoIF(${REGEX(“^[9,6]” ${CALLERID(num):0:1})}”]?es,1:en,1)
exten => es,1,Background(working-time-es)
exten => en,1,Background(working-time-en)

Posted in asterisk | Tagged , , , , , , , | Leave a comment

Nokia E51/E63/E66 e Asterisk, configurare un account sip

Grazie al software SIP VoIP software disponibile sui modelli Nokia S60 (symbian) e’ possibile configurare un client sip direttamente nel cellulare e quindi utilizzare il cellulare come telefono ibrido aziendale.

Il cellulare si collegherá automaticamente alla struttura wireless grazie al modulo WiFi integrato, effettuando automaticamente il login sul server Asterisk. Un’icona sul desktop del telefono indicherá lo stato del servizio VoIP.

Asterisk interpreta il cellulare come un semplicissimo telefono VoIP e perció non c’e’ l’esigenza di una configurazione sip specifica. Questa e’ la porzione piu’ rilevante dell’output del comando ‘sip show peer 113′  e di un nokia E66:

Codecs       : 0×106 (gsm|ulaw|g729)
Codec Order  : (g729:20,ulaw:20,gsm:20)
Auto-Framing:  No
Status       : OK (32 ms)
Useragent    : E66-1 RM-343 200.21.118
Reg. Contact : sip:113@192.168.0.200;comp=sigcomp;transport=UDP

Per configurare un account SIP nel vostro apparato Nokia S60 basta seguire i passi riportati nell’esempio di configurazione sottostante. Si assume come estensione Asterisk l’account sip “113″ con password “1234″. Il server Asterisk, raggiungibile sulla porta 5060, risponde all’indirizzo IP 192.168.0.200.

Menu --> Tools --> Settings --> Connections --> SIP settings
    Service profile:  IETF
    Public user name: sip:113@192.168.0.200
    Use Compression:  NO
    Registration:     Always on
    Use Security:     NO
    ---> Proxy server
         Proxy server address: sip:192.168.0.200
         Realm:                asterisk
         User name:            113
         Password:             1234
         Allow loose rout.:    YES
         Transport type:       UDP
         Port:                 5060
    ---> Registrar server
         Registrar server address: sip:192.168.0.200
         Realm:                asterisk
         User name:            113
         Password:             1234
         Allow loose rout.:    YES
         Transport type:       UDP
         Port:                 5060

Menu --> Tools --> Settings --> Connections --> Internet telephone
         Options --> New profile, select SIP profile


Posted in VoIP, asterisk | Tagged , , , , , , | Leave a comment