<div dir="auto"><div>There are no sip show channels on AMI. Also, the output that you sent is not a AMI output. Are u using AMI ou running commands on console? <div dir="auto"><br></div><div dir="auto">Running commands on console and parsing the output is the worst way to obtain data, first because it is not easily parseable. </div><div dir="auto"><br></div><div dir="auto">Second, it doesn't show you all data. </div><div dir="auto"><br></div><div dir="auto">Third, you can have these truncate problems, because that's not intention of CLI. </div><div dir="auto"><br></div><div dir="auto">Using proper AMI Actions you will probably achieve your goals </div><div dir="auto"><br></div><div dir="auto"><a href="https://wiki.asterisk.org/wiki/display/AST/AMI+Actions">https://wiki.asterisk.org/wiki/display/AST/AMI+Actions</a><br></div><div dir="auto"><br></div><div dir="auto">Regards, </div><br><div class="gmail_extra"><br><div class="gmail_quote">On 7 Jul 2017 10:32 pm, "Antony Stone" <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
I'm trying to get a list of the channels currently in use on an Asterisk server (1.8.32.1 if it matters) over AMI.<br>
<br>
I send the command "sip show channels", and I get back a response along the lines of (* used to protect the innocent...):<br>
<br>
Peer User/ANR Call ID Format Hold Last Message Expiry Peer<br>
*8.22.*0.34 02035644444 0221e874158bb62 0x4 (ulaw) No Tx: ACK SIPtrunkNu<br>
*.1*.19.70 (None) 2021549013484-1 0x0 (nothing) No Rx: OPTIONS <guest><br>
*.34.*.208 200101 712173267@192.1 0x4 (ulaw) No Rx: ACK 200101<br>
*.1*.19.70 (None) 149831567021051 0x0 (nothing) No Rx: REGISTER <guest><br>
<br>
So, firstly, the "Call ID" column is clearly truncated, because it should show more than is indicated above,<br>
but more importantly for me, the "Peer" column is truncated, and what should show as "SIPtrunkNumber8"<br>
is only shown as "SIPtrunkNu".<br>
<br>
How can I get the full column widths of these items shown in the output?<br>
<br>
Note that it is not a solution just to say "don't call it 'SIPtrunkNumber8'; call it 'SIPtrunk8' instead", because<br>
this name has also been modified slightly to conceal the real name of the trunk, which is actually longer<br>
than "SIPtrunkNo8", but still with the most important information at the end.<br>
<br>
What I'm looking for is how to get the *full* details of all the channels shown.<br>
<br>
I have checked, and there is no "verbose" option to the "sip show channels" command.<br>
<br>
<br>
Thanks,<br>
<br>
<br>
Antony.<br>
<font color="#888888"><br>
--<br>
Ramdisk is not an installation procedure.<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br>
</font></blockquote></div><br></div></div></div>