Discussion:
[asterisk-users] CLI - displaying all channel variables
Paddy Grice
2011-05-11 15:48:58 UTC
Permalink
Hi List

This may be a silly question by web searches etc don't seem to answer it.

Is there a CLI command to display ALL channel variables - standard and user
created - for a specific channel?

something like show channel SIP/Test123 all

I'm using Version 1.4.33.1

PG
Eric Wieling
2011-05-11 15:55:28 UTC
Permalink
-----Original Message-----
Paddy Grice
Sent: Wednesday, May 11, 2011 11:49 AM
Subject: [asterisk-users] CLI - displaying all channel variables
Hi List
This may be a silly question by web searches etc don't seem
to answer it.
Is there a CLI command to display ALL channel variables -
standard and user created - for a specific channel?
something like show channel SIP/Test123 all
The dialplan application DumpChan dumps information about the channel, however, it does not display all the variables you are looking for. Generally you should insert a Noop in the dialplan to examine variables. Noop(EXTEN is ${EXTEN}) for example.
Steve Edwards
2011-05-11 16:29:12 UTC
Permalink
Post by Eric Wieling
Generally you should insert a Noop in the dialplan to examine variables.
Noop(EXTEN is ${EXTEN}) for example.
The 'verbose()' application would be an example of 'better practices.'

It's function is obvious rather than just a convenient side-effect.

It has additional functionality in that you can specify the 'verbosity'
level needed.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards ***@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
Leif Madsen
2011-05-11 19:56:48 UTC
Permalink
Post by Steve Edwards
Post by Eric Wieling
Generally you should insert a Noop in the dialplan to examine variables.
Noop(EXTEN is ${EXTEN}) for example.
The 'verbose()' application would be an example of 'better practices.'
It's function is obvious rather than just a convenient side-effect.
It has additional functionality in that you can specify the 'verbosity' level
needed.
Agreed. I tend to use NoOp() for an actual No Operation, such as using it on the
first line of an extension:

exten => something_awesome,1,NoOp()
same => n,Verbose(2,Incoming call from ${CALLERID(all)})
same => n,Dial(SIP/someone_awesome)
same => n,Hangup

That way if you want to place things ahead of any line, you can do that without
impunity. Even using Verbose() on the first line can cause problems if you want
to move the Verbose() around and place something before it -- now you have to do
some copy/pasting, and extra work that could be avoided :)

Leif.

Danny Nicholas
2011-05-11 16:03:11 UTC
Permalink
-----Original Message-----
Sent: Wednesday, May 11, 2011 10:55 AM
Discussion
Subject: Re: [asterisk-users] CLI - displaying all channel variables
-----Original Message-----
Paddy Grice
Sent: Wednesday, May 11, 2011 11:49 AM
Subject: [asterisk-users] CLI - displaying all channel variables
Hi List
This may be a silly question by web searches etc don't seem
to answer it.
Is there a CLI command to display ALL channel variables -
standard and user created - for a specific channel?
something like show channel SIP/Test123 all
The dialplan application DumpChan dumps information about the channel,
however, it does not display all the variables you are looking for.
Generally you should insert a Noop in the dialplan to examine variables.
Noop(EXTEN is ${EXTEN}) for example.
[Danny Nicholas]
Try core show channel sip/test123-0000001 - you will probably have to do a
core show channels first to get the proper -0000001 value.
Paddy Grice
2011-05-11 16:21:03 UTC
Permalink
Thanks Danny - That displays "user" created variables - by "user" this could
be application like dial but not the predefined channel variables.



-----Original Message-----
From: asterisk-users-***@lists.digium.com
[mailto:asterisk-users-***@lists.digium.com] On Behalf Of Danny Nicholas
Sent: 11 May 2011 17:03
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] CLI - displaying all channel variables
-----Original Message-----
Sent: Wednesday, May 11, 2011 10:55 AM
Discussion
Subject: Re: [asterisk-users] CLI - displaying all channel variables
-----Original Message-----
Grice
Sent: Wednesday, May 11, 2011 11:49 AM
Subject: [asterisk-users] CLI - displaying all channel variables
Hi List
This may be a silly question by web searches etc don't seem to
answer it.
Is there a CLI command to display ALL channel variables - standard
and user created - for a specific channel?
something like show channel SIP/Test123 all
The dialplan application DumpChan dumps information about the channel,
however, it does not display all the variables you are looking for.
Generally you should insert a Noop in the dialplan to examine variables.
Noop(EXTEN is ${EXTEN}) for example.
[Danny Nicholas]
Try core show channel sip/test123-0000001 - you will probably have to do a
core show channels first to get the proper -0000001 value.




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Danny Nicholas
2011-05-11 16:26:27 UTC
Permalink
You should probably use an AGI to get this rather than depending on CLI
commands. It's possible that you could do a bash AGI and call that from CLI
but that's not something I've dabbled with.
-----Original Message-----
Sent: Wednesday, May 11, 2011 11:21 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] CLI - displaying all channel variables
Thanks Danny - That displays "user" created variables - by "user" this
could
be application like dial but not the predefined channel variables.
-----Original Message-----
Nicholas
Sent: 11 May 2011 17:03
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] CLI - displaying all channel variables
-----Original Message-----
Sent: Wednesday, May 11, 2011 10:55 AM
Discussion
Subject: Re: [asterisk-users] CLI - displaying all channel variables
-----Original Message-----
Grice
Sent: Wednesday, May 11, 2011 11:49 AM
Subject: [asterisk-users] CLI - displaying all channel variables
Hi List
This may be a silly question by web searches etc don't seem to
answer it.
Is there a CLI command to display ALL channel variables - standard
and user created - for a specific channel?
something like show channel SIP/Test123 all
The dialplan application DumpChan dumps information about the channel,
however, it does not display all the variables you are looking for.
Generally you should insert a Noop in the dialplan to examine variables.
Noop(EXTEN is ${EXTEN}) for example.
[Danny Nicholas]
Try core show channel sip/test123-0000001 - you will probably have to do a
core show channels first to get the proper -0000001 value.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
http://www.asterisk.org/hello
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
Loading...