<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 11.00.9600.16476">
<style title="owaParaStyle"><!--P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
--></style>
</head>
<body ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">Thanks that's perfect!</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">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</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div id="divRpF227236" style="DIRECTION: ltr">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> asterisk-users-bounces@lists.digium.com [asterisk-users-bounces@lists.digium.com] On Behalf Of Richard Mudgett [rmudgett@digium.com]<br>
<b>Sent:</b> Tuesday, January 21, 2014 6:12 PM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> Re: [asterisk-users] core show channels truncates channel names?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jan 21, 2014 at 3:39 PM, Michelle Dupuis <span dir="ltr">
<<a href="mailto:mdupuis@ocg.ca">mdupuis@ocg.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr"><font color="#000000" face="Tahoma">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</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">SIP</font></div>
<div dir="ltr">Privilege: Command<br>
Channel              Location             State   Application(Data)" <br>
IAX2/FONEMITEL123456 <a href="mailto:1296197222@entryhome">1296197222@entryhome</a> Ringing AppDial((Outgoing Line))<br>
SIP/200-093e4998        <a href="mailto:s@macro-dialexternal">s@macro-dialexternal</a> Ring    Dial(IAX2/FONEMITEL1234567890/<br>
2 active channels<br>
1 active call<br>
</div>
<div dir="ltr"><font face="times new roman">How can I get the full username of all active channels?  (I realize I can use the AMI but trying to avoid that)</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr"><font face="times new roman">Note that the above output is generated on an Ast 1.4 system</font></div>
</div>
</blockquote>
<div><br>
</div>
<div>Use "core show channels concise".  It was intended for script querying of the channels.<br>
However, you really should AMI actions where possible as they are not likely to change<br>
</div>
<div>from version to version where CLI commands can and do change.<br>
</div>
<div><br>
Richard<br>
</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>