background preloader

Projet voxalis

Facebook Twitter

Projet Tutoré Asterisk 2010-2011. Lancement d'Asterisk Pour lancer Asterisk, il faut d'abord se loguer en root : root@asterisk:~# sudo -s root Lancer Asterisk : root@asterisk:~# /etc/init.d/asterisk start Lancer la CLI (Command-Line Interface) : root@asterisk:~# asterisk -vvvvvvvvvr Les commandes de la CLI Le nombre de commandes est important. Sip debug : active le mode debug et affiche les tramessip show users : affiche les utilisateurs inscritsreload : recharge les fichiers de configurationshow dialplan : affiche extensions.conf Vous pouvez accéder à toutes les commandes ici.

Les fichiers de configuration Les fichiers de configuration d'Asterisk se trouvent dans /etc/asterisk/ et portent l'extension .conf. Configuration de base d'Asterisk Pour mieux comprendre le fonctionnement d'Asterisk, on se basera sur des modèles simplifiés d'extensions.conf et sip.conf. Pour modifier les fichiers de configuration, il faut utiliser un éditeur de texte, de préférence gedit. root@asterisk:~# gedit /etc/asterisk/extensions.conf &

Asterisk : paramètres du fichier sip.conf - Wiki Nicolas Lambert - Julien Quement. Problème AMD sur Trunk SIP - Archive de la communauté Asterisk-France. Dtmf. CALLERID() Function in Asterisk dialplan. Returns or sets information about the caller. The field is one of the following: name Name of the caller, as an alphanumeric string. Keeping this string short is recommended ( e.g. 15 characters). num Number of the caller, digits only. All Name and number with the number in angle brackets, e.g. : " Robert Cossack " ani ANI [Automatic Number Identification] , for outgoing calls dnid DNID [Dialed/Destination Number Identification Service] number. Rdnis RDNIS [Redirected Dialed Number Identification Service] number. The old channel variable ${CALLERIDNUM} is replaced by the function ${CALLERID(num)} as of Asterisk 1.4 (Similarly, ${RDNIS} is replaced by $(CALLERID(rdnis)) etc. . ) . ; Set the variable foo to the complete caller ID: exten => 123,1,Set(foo=${CALLERID(all)}) ; Set the caller namer to "Robert Cossack": exten => 123,1,Set(CALLERID(name)="Robert Cossack") Internal help for this application in Asterisk 1.4: diff output to internal help in Asterisk 1.2: 5c5 ]) --- > CALLERID(datatype) 13d12.

Asterisk cmd Record. Record user voice or video input to a filePrior to ca. 2004-11-01Record(filename:format[|silence][|maxduration][|option]) After 2004-11-01 (cvs) and in Asterisk v1.2Record(filename.format[|silence][|maxduration][|option]) Records from the current channel to a sound file saved with the given filename. The format parameter specifies the sound format and the extension of the file. If you don't specify a full path, the file will be stored in the /var/lib/asterisk/sounds directory. If filename contains %d, these characters will be replaced with a number incremented by one each time the file is recorded, and the resulting filename will be returned in the channel variable ${RECORDED_FILE}. The supported sound formats are: sln, g723, g729, gsm, h263, ulaw, alaw, vox, wav, WAV (WAV is the GSM format of wav files).

The optional parameters are: silence: seconds of silence allowed before the recording is stopped. Option parameters in 1.4: Option parameters in 1.8: Returns -1 when the user hangs up. Untitled. Portail: Clockover.org. Métadonnées du document: [ Auteur : Clockover ][ Création le : 01/11/2007 ][ Dernière modification le : 02/11/2007 ][ Version : 1.1 ] Introduction: Cet article me permettra de vous présenter le projet de mise en place d'une infrastructure utilisant l'excellent logiciel qu’est Asterisk.

J'ai volontairement passé les détails car de nombreuses sources d'informations sont disponibles sur Internet mais également car l'article deviendrait trop conséquent. Tout d’abord, Asterisk permet de se servir d'un poste/serveur informatique comme d’un IPBAX (PABX sur IP). Il s’agit d’un logiciel libre diffusé sous Licence GPL et il peut fonctionner sur différentes plateformes comme *BSD, GNU/Linux et Windows. Logo de Asterisk Ce logiciel gère de nombreux protocoles de communication de Voix sur IP comme : H323, SIP, IAX/IAX2. Présentation du projet: Le projet est inscrit dans un cadre d'une auto-formation personnelle.

Pour cela, la solution la plus séduisante fut de mettre en place deux serveurs Asterisk: 1. . #! Extensions.conf et tonalité... Extensions.conf et tonalité... Salut les gens, J'ai un truc qui m'énerve dans mon extensions.conf : Quand je reçois un appel, l'appelant n'a qu'une sonnerie, puis du silence jusque je décroche X-Lite Cela fait Ring => Asterisk décroche => Asterisk appelle mon X-Lite => cela sonne sur X-Lite mais silence chez le correspondant => je décroche (en espérant que le correspondant ait pas raccroché pensant à une panne) et la communication passe très bien. Voici mon contexte, si cela inspire quelqu'un : Code: J'ai tenté le paramètre r qui doit faire ring..ring... sans succès, j'ai tenté le m pour mettre de la musique d'attente, j'ai tenté m(default) sans plus de succès. Asterisk variables. Asterisk can make use of global, shared and channel-specific variables for arguments to commands.

Variables are referenced in the dialplan (extensions.conf) using the syntax where foo is the name of the variable, offset is an optional field indicating which characters should be excluded, and length is an optional field indicating the number of characters from the offset to be returned (see "Substrings" below for details and examples). A variable name may be any alphanumeric string beginning with a letter. User-defined variable names are not case sensitive — ${FOO} and ${Foo} refer to the same variable — but Asterisk-defined variables are case-sensitive — ${EXTEN} works, but ${exten} doesn't. There are four types of variables: global variables, shared variables, channel variables, and environment variables. Global variables can be set either in the [globals] category of extensions.conf or by using the SetGlobalVar command.

(Note the use of the NoOp command to assist in debugging.) Example. AsteriskEtForfaitOVH.

À lire - pas traité

Asterisk zeperyl: Petit script en php utilisant le manager Asterisk pour lancer un appel. Envoi e-mail avec Asterisk - Archive de la communauté Asterisk-France. How To Configure Asterisk: Your First Installation. Deploying your first Asterisk system can be a frustrating task, espcially if you attempt to utilize the more advanced features and functions of Asterisk without having a solid foundation of the basic concepts. This article will walk you through the process of downloading, compiling and configuring your first instance of Asterisk that will allow you to place and receive calls between two Linksys SPA-942s and an asterisk voip provider. To get started, if you are running a new installation of Linux , you will need to resolve a few external dependencies before attempting to compile Asterisk from source code. voip :/usr/src# apt-get install build-essential libssl-dev \ zlib1g-dev libncurses5-dev Using Debian one can use apt-get to acquire the necessary packages.

Other Liunx distros should use similar package names. Download the latest 1.4 version of Asterisk from ftp.digium.com. Note: For this series of How To’s we will focus on Asterisk version 1.4. Extract and compile the Asterisk source: AsteriskAutoCall. Asterisk auto-dial out. Asterisk call files are structured files which, when moved to the appropriate directory, are able to automatically place calls using Asterisk. Call files are a great way place calls automatically without using more complex Asterisk features like the AGI, AMI, and dialplan, and require very little technical knowledge to use.The Asterisk dial plan extensions.conf responds to someone calling an extension on a channel.

If you want to initiate a call from an external application, there are several ways to do this. There are basically four ways to initiate outgoing calls in Asterisk Use .call files. A call file is a text file that when placed in the correct directory makes Asterisk make an outgoing call. Use the manager API to activate a call. New in Asterisk 1.8: A new application Originate has been introduced, that allows asynchronous call origination from the dialplan. How Does It Work? Syntax of call files Specify where and how to call Channel: <channel>: Channel to use for the call. Example. Asterisk dial plan - working example. Agicallback - Inachos. Le forum officiel de l'Association Asterisk France - Créer votre service de réveil avec votre Asterisk.

Publié le 10/09/2010 11h48 Voici une manière comme une autre de mettre en place sur votre asterisk un service de réveil sommaire sur vos téléphones internes. Il suffira pour enregistrer l'heure du réveil de composer un numéro avec la date et l'heure du réveil dedans par exemple : Je veux être réveiller le 14 août 2010 à 05:49 Vous composerez donc le numéro comme suit : Voici donc le code de l'AGI et le bout de dialplan : A coller dans le fichier /var/lib/asterisk/agi-bin/reveil.agi : Code: #!

Ne pas oublié de rendre executable le fichier... A coller dans votre extensions.conf : Faire outgoing calls - Community Asterisk France. Asterisk Dialplan Patterns. Extension Names Dialplan extensions can be simple numbers like "412" or "0". They can be alphanumeric names like "john" or "A93*". Although a typical telephone can't dial an extension called "john" (some can though), often your Dialplan logic will involve jumping from one extension to a different extension, and for those jumps you may define exension names with any name you like, as you don't wish them to be dialed directly.

Of course, touchtone telephones don't just have the digits 0 through 9, they also have * (star) and # ("pound" or "hash", depending on where in the world you live). And some touchtone (DTMF) telephones have the extra four "digits", A, B, C and D. If you have such handsets within your organization, there's nothing stopping you making use of those extra buttons for some special purpose of your own.

Note: To have an extension that is triggered by dialing the # symbol, you must use an extension pattern (see below). "Why do people in the US call the # symbol pound? " _X! Converting WAV files into MP3's automatically for asterisk recordings - Spiceworks Community. Blog Archive » Convert all your Asterisk .wav recordings to .mp3. Posted: October 24th, 2008 | Author: Gregg | Filed under: Asterisk VoIP, Linux, Tech | Tags: Asterisk VoIP, bash, convert, cron wav to mp3, g729 to mp3, gsm to mp3, Linux, record, record calls, recordings, scripting, scripts, voip, wav to mp3 | 28 Comments » Update 20100222: From a helpful contributor.

Since the encoding has changed and I haven’t had to do file conversion in years and years. Check out Ernesto’s script here. I have had many jobs (consulting and Salary) that have involved using Asterisk in a “Call-Center” environment. Installation Instructions: 1. 2. 3. chmod +x convert_recordings.sh 4. 5. 6. cd lame-398-2 7. . 8. make 9. make install 10. 11. chmod +x mlame 12. 13.

You should see it take a few seconds for each file and go on. Cron it, at it, and happy converting. Code for .g729 to MP3 script. #all files should now be in the /recordings directory #use soxmix and mlame to convert them to one file => mp3.

Festival

Demander de l'aide concernant IVR Menu dans Asterisk. Dialplan: variables partagées avec et sans fonction Shared « Florent Fossard's Blog. Rappels téléphoniques 4.0 en français sous Asterisk 1.4 « Téléphonie « La téléphonie Internet libre basée sur Asterisk par Sylvain Thérien. Le composant de rappels téléphonique nommé « Reminders » offert par Nerd Vittles vous permet d’effectuer des rappels selon un calendrier basé sur des événements ponctuels ou futurs. Le système est accessible par téléphone ou via un fureteur. Ainsi, lorsque la date et l’heure d’un événement calendrier arrive, Asterisk passe à l’action et effectue un appel au numéro que vous avez initialement désigné, afin de transmettre un message de rappel personnalisé. La version 4 de « Reminders » offre une interface web avec synthèse vocale afin de planifier et transmettre des rappels en utilisant soit « Flite » ou « Cepstral » comme synthétiseur de parole.

Les rappels périodiques sont également pris en charge, ainsi, vous pouvez définir des rappels quotidiens, les jours de semaine, hebdomadaires, mensuels ou encore annuels. Vous trouverez plus d’information sur « Reminders » dans l’article original Telephone Reminders 4.0 for Asterisk 1.4. Pré requis : À lire si votre temps est précieux : Asterisk cmd Record. Record user voice or video input to a filePrior to ca. 2004-11-01Record(filename:format[|silence][|maxduration][|option]) After 2004-11-01 (cvs) and in Asterisk v1.2Record(filename.format[|silence][|maxduration][|option]) Records from the current channel to a sound file saved with the given filename.

The format parameter specifies the sound format and the extension of the file. If you don't specify a full path, the file will be stored in the /var/lib/asterisk/sounds directory. If a file with the same name and extension already exists, it will be overwritten.In the case of combined audio & video recording the 'format' refers only to the audio portion, while the video portion of the recording is automatically set to the active video codec (Asterisk 1.2/1.4/1.6 cannot transcode video, at least not without out-of-tree patches).

You will, for example, end up with two files: sample.wav (audio) and sample.h263 (video). The optional parameters are: Option parameters in 1.4: Example 1 Example 2. Prob asterisk+config voicemail - Débats - OS Alternatifs. Voicemail autonome derrière PABX analogique [Archives] - Community Asterisk France. Détecter que le correspondant raccroche - Community Asterisk France. Files d'attente (Queue) - Wiki Officiel Asterisk-France. De Wiki Officiel Asterisk-France. Fichier Queues.conf Voici un exemple d'un fichier de configuration queues.conf pour une queue : [NomDeVotreQueue] music=default strategy=ringall joinempty = yes annonce = MSGSgroup-AccQueue reportholdtime = no Voici une petite explication des paramètres : Paramètres du fichier music Vous indiquez ici la classe de votre musiconhold que vous souhaitez utiliser pour votre queue strategy Peut contenir les thermes suivant : ringall (Fait sonner tout les agents connecté simultanément) roundrobin (Fait sonner les agents disponibles à tour de rôle) rrmemory (Fait sonner les agents disponibles à tour de rôle, avec mémoire du dernier agent qui a répondu pour reprendre à la suite) leastrecent (Fait sonner l'agent qui a eu la conversation la moins récente) fewestcalls (Fait sonner l'agent qui a répondu au moins d'appels) random (Fait sonner les postes aléatoirement) joinempty (yes ou no) annonce (Nom du fichier son) reportholdtime (yes ou no) Code :