[asterisk-users] core show channels truncates channel names?

Michelle Dupuis mdupuis at ocg.ca
Tue Jan 21 17:31:00 CST 2014


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 at lists.digium.com [asterisk-users-bounces at lists.digium.com] On Behalf Of Richard Mudgett [rmudgett at 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 at ocg.ca<mailto:mdupuis at ocg.ca>> wrote:
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 at entryhome<mailto:1296197222 at entryhome> Ringing AppDial((Outgoing Line))
SIP/200-093e4998        s at macro-dialexternal<mailto:s at macro-dialexternal> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140121/6a7416a7/attachment.html>


More information about the asterisk-users mailing list