Dear James;
Thanks a lot for your kindly help and reply.
Here is the question: what is the CONSOLE variable
that is related to the channel? What it means and to
what it indicates this variable?
So when we say that Console/dsp, what does that mean?
Because console term is related to the console used
with the asterisk command that we connect to it using:
/usr/sbin/asterisk -r
So what is the diffrenece between this and the console
variable related to the channel?
Regards
Bilal
> At the extensions.conf file, at [demo] context,
there> is a line:
>
> exten => 1234,n,Macro(stdexten, 1234,
> ${GLOBAL(CONSOLE)})
>
> In this line, I understand that it calls the macro
> name stdexten [macro-stdexten] but about the other
> variables, do we consider 1234 is ARG1 and the
> ${GLOBAL(CONSOLE)} is the ARG2? This is important to
> distinguish the arguments inside the macro.
Correct.
>From the other side, why it used ${GLOBAL(CONSOLE)}
to> retreive the variable and did not write it directly
> ${CONSOLE} as already CONSOLE is configured in the
> [global] or what is the storey :) - ?
Using ${CONSOLE} relies on magic - it looks for a
channel variable, and
when
one is not found, it falls back to the global var. If
CONSOLE happened
to
be defined on the channel, it would be returned
instead of the global
var.
Using the GLOBAL dialplan function lets you get at
global variables
whether
or not direct access to them is occluded by a
like-named local or
channel
variable.
--
j.
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/