VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mdupuis at ocg.ca Guest
|
Posted: Tue Jan 21, 2014 6:05 pm Post subject: [asterisk-users] core show channels truncates channel names? |
|
|
When I issue a 'core show channels' command I notice that long usernames (and channel number) are truncated. For example, if the username is FONEMITEL1234567890 for a trunk, then it will show
SIP
Privilege: Command
Channel Location State Application(Data)"
IAX2/FONEMITEL123456 1296197222@entryhome ([email]1296197222@entryhome[/email]) Ringing AppDial((Outgoing Line))
SIP/200-093e4998 s@macro-dialexternal ([email]s@macro-dialexternal[/email]) Ring Dial(IAX2/FONEMITEL1234567890/
2 active channels
1 active call
How can I get the full username of all active channels? (I realize I can use the AMI but trying to avoid that)
Note that the above output is generated on an Ast 1.4 system |
|
Back to top |
|
|
rmudgett at digium.com Guest
|
Posted: Tue Jan 21, 2014 6:12 pm Post subject: [asterisk-users] core show channels truncates channel names? |
|
|
On Tue, Jan 21, 2014 at 3:39 PM, Michelle Dupuis <mdupuis@ocg.ca (mdupuis@ocg.ca)> wrote:
Quote: | When I issue a 'core show channels' command I notice that long usernames (and channel number) are truncated. For example, if the username is FONEMITEL1234567890 for a trunk, then it will show
SIP
Privilege: Command
Channel Location State Application(Data)"
IAX2/FONEMITEL123456 1296197222@entryhome ([email]1296197222@entryhome[/email]) Ringing AppDial((Outgoing Line))
SIP/200-093e4998 s@macro-dialexternal ([email]s@macro-dialexternal[/email]) Ring Dial(IAX2/FONEMITEL1234567890/
2 active channels
1 active call
How can I get the full username of all active channels? (I realize I can use the AMI but trying to avoid that)
Note that the above output is generated on an Ast 1.4 system
|
Use "core show channels concise". It was intended for script querying of the channels.
However, you really should AMI actions where possible as they are not likely to change
from version to version where CLI commands can and do change.
Richard |
|
Back to top |
|
|
mdupuis at ocg.ca Guest
|
Posted: Wed Jan 22, 2014 8:37 am Post subject: [asterisk-users] core show channels truncates channel names? |
|
|
Thanks that's perfect!
I would use the AMI but I have to run against Asterisk 1.4 and the ami command 'coreshowchannels' didn't appear until Asterisk 1.6
From: asterisk-users-bounces@lists.digium.com [asterisk-users-bounces@lists.digium.com] On Behalf Of Richard Mudgett [rmudgett@digium.com]
Sent: Tuesday, January 21, 2014 6:12 PM
To: Asterisk Users List
Subject: Re: [asterisk-users] core show channels truncates channel names?
On Tue, Jan 21, 2014 at 3:39 PM, Michelle Dupuis <mdupuis@ocg.ca (mdupuis@ocg.ca)> wrote:
Quote: | When I issue a 'core show channels' command I notice that long usernames (and channel number) are truncated. For example, if the username is FONEMITEL1234567890 for a trunk, then it will show
SIP
Privilege: Command
Channel Location State Application(Data)"
IAX2/FONEMITEL123456 1296197222@entryhome ([email]1296197222@entryhome[/email]) Ringing AppDial((Outgoing Line))
SIP/200-093e4998 s@macro-dialexternal ([email]s@macro-dialexternal[/email]) Ring Dial(IAX2/FONEMITEL1234567890/
2 active channels
1 active call
How can I get the full username of all active channels? (I realize I can use the AMI but trying to avoid that)
Note that the above output is generated on an Ast 1.4 system
|
Use "core show channels concise". It was intended for script querying of the channels.
However, you really should AMI actions where possible as they are not likely to change
from version to version where CLI commands can and do change.
Richard |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|