ATech Machine LIBRA-02 M Informations techniques Page 160

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 734
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 159
There are many predefined channel variables available for use within the dialplan,
which are explained in the Asterisk wiki at https://wiki.asterisk.org/wiki/display/AST/
Channel+Variables. Channel variables are set via the Set() application:
exten => 202,1,Set(MagicNumber=42)
same => n,SayNumber(${MagicNumber})
You’re going to be seeing a lot more channel variables. Read on.
Environment variables
Environment variables are a way of accessing Unix environment variables from within
Asterisk. These are referenced using the ENV() dialplan function.
*
The syntax looks like
${ENV(var)}, where var is the Unix environment variable you wish to reference. Envi-
ronment variables aren’t commonly used in Asterisk dialplans, but they are available
should you need them.
Adding variables to our dialplan
Now that we’ve learned about variables, let’s put them to work in our dialplan. We’re
going to add three global variables that will associate a variable name to a channel name:
[globals]
LEIF=SIP/0000FFFF0001
JIM=SIP/0000FFFF0002
RUSSELL=SIP/0000FFFF0003
[LocalSets]
exten => 100,1,Dial(${LEIF})
exten => leif,1,Dial(${LEIF})
exten => 101,1,Dial(${JIM})
exten => jim,1,Dial(${JIM})
exten => 102,1,Dial(${RUSSELL})
exten => russell,1,Dial(${RUSSELL})
[TestMenu]
exten => 201,1,Answer()
same => n,Background(enter-ext-of-person)
same => n,WaitExten()
exten => 1,1,Dial(DAHDI/1,10)
same => n,Playback(vm-nobodyavail)
same => n,Hangup()
exten => 2,1,Dial(SIP/Jane,10)
same => n,Playback(vm-nobodyavail)
same => n,Hangup()
* We’ll get into dialplan functions later. Don’t worry too much about environment variables right now. They
are not important to understanding the dialplan.
124 | Chapter 6:Dialplan Basics
Vue de la page 159
1 2 ... 155 156 157 158 159 160 161 162 163 164 165 ... 733 734

Commentaires sur ces manuels

Pas de commentaire

TDK T61789 manuels

Manuels d'utilisation et guides de l'utilisateur pour Écouteurs TDK T61789.
Nous fournissons des manuels en pdf 1 TDK T61789 à télécharger gratuitement par type de document : Fiche technique


Tdk T61789 Fiche technique (1 pages)


marque: Tdk | Catégorie: Headphones | Taille: 0.83 MB |

 

Table des matières





Plus de produits et de manuels pour Écouteurs TDK

Modèles Type de document
T61974 Fiche technique   TDK EB410, 1 pages
T61819 Fiche technique   TDK ST550, 1 pages
T61957 Fiche technique   TDK EB260, 1 pages
T61981 Fiche technique   TDK EB100, 1 pages
T62073 Fiche technique   TDK EB5, 1 pages
T61799 Fiche technique   TDK EB300, 1 pages
T61865 Fiche technique   TDK IE500, 1 pages
T61912 Fiche technique   TDK BA100, 1 pages
T61994 Fiche technique   TDK MP100, 1 pages
T62000 Fiche technique   TDK ST410, 1 pages
T61815 Fiche technique   TDK EB750, 1 pages
T61821 Fiche technique   TDK NC150, 1 pages
T61951 Fiche technique   TDK ST750, 1 pages
T78695 Fiche technique   TDK ST-550, 1 pages
T78688 Fiche technique   TDK BA-100, 1 pages
T78692 Fiche technique   TDK IE-500, 1 pages
T78691 Fiche technique   TDK EB-750, 1 pages
T78689 Fiche technique   TDK EB-100, 1 pages
T78754 Fiche technique   TDK EB-950, 1 pages
T78696 Fiche technique   TDK NC-150, 1 pages