<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks but no Adtran here.<div><br></div><div>I do think these stats are indicating an issue, I just don't know how to prove it outside Asterisk.</div><div><br></div><div><br><div><hr id="stopSpelling">From: EWieling@nyigc.com<br>To: tjrlist@live.com; asterisk-users@lists.digium.com<br>Date: Mon, 19 Jan 2015 13:55:33 -0500<br>Subject: RE: [asterisk-users] sip show channelstats reliable?<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate {
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxEmailStyle18 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxBalloonTextChar {
font-family:"Tahoma","sans-serif";
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><div><p class="ecxMsoNormal"><span style="font-size:10.5pt;font-family:Consolas;color:#1F497D;">I’ve seen something similar with Adtran SIP gateways.    When a re-invite happens the Adtran gets all confused about call stats and marks the pre-reinvite leg of the call as losing large numbers of packets.    BTW, IIRC reinvites happen when a codec changes or the channel switches to T.38.</span></p><p class="ecxMsoNormal"><span style="font-size:10.5pt;font-family:Consolas;color:#1F497D;"> </span></p></div><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Also Adtran SIP gateways appear not to support OPTIONS packets when running in SIP proxy mode, which is very annoying.     At some point I’ll try and arrange a slugfest between Digium and Adtran and they can figure out why it doesn’t work.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;"><p class="ecxMsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";"> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Todd R.<br><b>Sent:</b> Monday, January 19, 2015 1:45 PM<br><b>To:</b> Asterisk-Users List<br><b>Subject:</b> Re: [asterisk-users] sip show channelstats reliable?</span></p></div></div><p class="ecxMsoNormal"> </p><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Additional info:</span></p><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">At the moment I am running 1.8.x but the other day I was getting the same results on 11.x</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Here is a sample from show channelstats. I do think this command is showing that there is trouble between specific IP's and my Asterisk box but I don't know if the numbers are accurate and reliable.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><table class="ecxMsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="1068" style="width:801.0pt;border-collapse:collapse;"><tbody><tr style="height:15.0pt;"><td width="111" style="width:83.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Peer</p></td><td width="143" style="width:107.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Call ID</p></td><td width="87" style="width:65.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Duration</p></td><td width="107" style="width:80.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Recv: Pack</p></td><td width="95" style="width:71.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Lost</p></td><td width="99" style="width:74.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">(     %)</p></td><td width="67" style="width:50.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Jitter</p></td><td width="105" style="width:79.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Send: Pack</p></td><td width="107" style="width:80.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Lost</p></td><td width="15" style="width:11.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">(</p></td><td width="80" style="width:60.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">%)</p></td><td width="55" style="width:41.0pt;padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">Jitter</p></td></tr><tr style="height:15.0pt;"><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">x.x.x.x</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">5531341d06b</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">00:07:42</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0000023123</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0000063836</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">(73.41%)</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0.0000</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0000023102</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0000000000</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">(</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0.00%)</p></td><td style="padding:0in 0in 0in 0in;height:15.0pt;"><p class="ecxMsoNormal">0.0007</p></td></tr></tbody></table></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Peer IP changed to protect the innocent :-)</span></p></div><div><p class="ecxMsoNormal" style=""><span style="font-family:"Calibri","sans-serif";"> </span></p><div><div class="ecxMsoNormal" align="center" style="text-align:center;"><span style="font-family:"Calibri","sans-serif";"><hr size="2" width="100%" align="center" id="ecxstopSpelling"></span></div><p class="ecxMsoNormal" style=""><span style="font-family:"Calibri","sans-serif";">From: <a href="mailto:tjrlist@live.com">tjrlist@live.com</a><br>To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>Date: Mon, 19 Jan 2015 12:17:25 -0600<br>Subject: [asterisk-users] sip show channelstats reliable?</span></p><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">I am seeing lots of lost packets when running the command sip show channelstats at the CLI.</span></p><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">There are issues across multiple Asterisk servers I am trying to diagnose but everything I read seems to point to this command being pretty unreliable.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Can I trust the info this command shows?</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">I am showing lots of lost packets in sip show channelstats but I can't see any packet loss when pinging the same IP's to/from.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Since I don't 100% control the network my gear is on, I need something outside of Asterisk to show the network engineer to convince here and myself that there are network issues.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">All I have is the loss that's shown from this command with no real network stats to back it up.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Is there a magic command in CentOS anyone can recommend to diagnose and match up the issues shown in Asterisk using this command?</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Moving gear around on the network changes the info Asterisk shows a LOT. For example, if I point traffic to the main physical gateway I get loss to a particular customer's IP (their PBX), if I move it to another place on the network (as a VM) their IP is good and other customers IP's start showing loss using the channelstats info.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Driving me freakin' crazy. It does appear there are network issues causing my troubles but I can't get help if I can't point to some hard and fast issues outside of Asterisk.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">The only thing I have right now is collissions showing on one of a few of our pfSense devices but they are virtual running on XenServer, still this would indicate a problem in my opinion.</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";">Thanks in advance for any assistance on this issue. Stepping back from the ledge now LOL</span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div><div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"> </span></p></div></div><p class="ecxMsoNormal"><span style="font-family:"Calibri","sans-serif";"><br>-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs: <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a> asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></p></div></div></div></div></div></div>                                       </div></body>
</html>