<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<head>
<title>NaturalAccess GR303 and V5 Libraries Developer's Manual: NMS_GR303GetChannelStatistics </title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<meta name=NMSConversion content="4.0.8">
<meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
<link rel="stylesheet" href="dialogic_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
<!--
if (navigator.appName !="Netscape")
{   document.write("<link rel='stylesheet' href='dialogic.css'>");}
//-->
</script>
<style type="text/css">
<!--
table.whs1 { width:100%;   x-border-left:1px table-solid; x-border-top:1px table-solid; x-border-right:1px table-solid; x-border-bottom:1px table-solid; border-collapse:separate; border-spacing:0px; }
col.whs2 { width:18.42%; }
col.whs3 { width:81.58%; }
td.whs4 { width:18.42%; background-color:#CCCCCC; vertical-align:top;   padding-right:10px; padding-left:10px; }
p.whs5 { font-weight:bold; }
td.whs6 { width:81.58%; background-color:#CCCCCC; vertical-align:top;   padding-right:10px; padding-left:10px; }
td.whs7 { width:18.42%; background-color:#ffffff; vertical-align:top;   padding-right:10px; padding-left:10px; }
p.whs8 { font-style:italic; font-weight:bold; }
td.whs9 { width:81.58%; background-color:#ffffff; vertical-align:top;   padding-right:10px; padding-left:10px; }
col.whs10 { width:36.123%; }
col.whs11 { width:63.877%; }
td.whs12 { width:36.123%; background-color:#CCCCCC; vertical-align:top;   padding-right:10px; padding-left:10px; }
td.whs13 { width:63.877%; background-color:#CCCCCC; vertical-align:top;   padding-right:10px; padding-left:10px; }
td.whs14 { width:36.123%; background-color:#ffffff; vertical-align:top;   padding-right:10px; padding-left:10px; }
td.whs15 { width:63.877%; background-color:#ffffff; vertical-align:top;   padding-right:10px; padding-left:10px; }
table.whs16 {   x-border-left:1px table-solid; x-border-top:1px table-solid; x-border-right:1px table-solid; x-border-bottom:1px table-solid; border-collapse:separate; border-spacing:0px; width:100%; }
col.whs17 { width:11.355%; }
col.whs18 { width:88.645%; }
tr.whs19 { background-color:#CCCCCC; x-cell-content-align:top; vertical-align:top; }
td.whs20 { vertical-align:top; padding-left:5px;  padding-right:5px;  }
tr.whs21 { x-cell-content-align:top; vertical-align:top; }
col.whs22 { width:23.777%; }
col.whs23 { width:76.223%; }
col.whs24 { width:17.503%; }
col.whs25 { width:82.497%; }
div.whs26 { width:100%; }
p.whs27 { text-align:center; }
p.whs28 { text-align:center; font-size:xx-small; }
-->
</style><script type="text/javascript" language="JavaScript">
<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
{
  var strNSS = "<style type='text/css'>";
  strNSS += "p.whs28 {font-size:x-small; }";
  strNSS +="</style>";
  document.write(strNSS);
}
//-->
</script>
<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
<!--
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//-->
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
-->
</style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
<script type="text/javascript" language="javascript" src="whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
</head>
<body><script type="text/javascript" language="javascript1.2">
<!--
if (window.gbWhTopic)
{
	if (window.addTocInfo)
	{
	addTocInfo("NMS GR303 function reference\nNMS_GR303GetChannelStatistics");
addAvenueInfo("Untitled","nmsgr303exit.html","nmsgr303getds1status.html");
addButton("show",BTN_TEXT,"Show table of contents for this manual","","","","",0,0,"","","");

	}
	if (window.writeBtnStyle)
		writeBtnStyle();

	if (window.writeIntopicBar)
		writeIntopicBar(1);

	if (window.setRelStartPage)
	{
	setRelStartPage("default.htm");

		autoSync(1);
		sendSyncInfo();
		sendAveInfoOut();
	}
}
else
	if (window.gbIE4)
		document.location.reload();
//-->
</script>
<h1>NMS_GR303GetChannelStatistics</h1>

<p>Retrieves HDLC channel statistics for a specified HDLC channel on an 
 active provisioned interface. </p>

<h4>Prototype</h4>

<p>NMS_GR303_RESULT_T <span style="font-weight: bold;"><B>NMS_GR303GetChannelStatistics</B></span> 
 ( NMS_GR303_INTERFACE_ID_T <span style="font-style: italic; font-weight: bold;"><I><B>interfaceId</B></I></span>, 
 NMS_GR303_CHANNEL_LOCATION_T <span style="font-style: italic; font-weight: bold;"><I><B>channel_loc</B></I></span>, 
 NMS_GR303_CHANNEL_STATISTICS_T <span style="font-style: italic; font-weight: bold;"><I><B>*channel_stat</B></I></span>)</p>

<table cellpadding="5" x-use-null-cells cellspacing="0" width="100%" border="1" class="whs1">
<col class="whs2">
<col class="whs3">

<tr>
<td bgcolor="#CCCCCC" width="18.42%" class="whs4">
<p class="whs5">Argument</p></td>
<td bgcolor="#CCCCCC" width="81.58%" class="whs6">
<p class="whs5">Description</p></td></tr>

<tr>
<td bgcolor="#FFFFFF" width="18.42%" class="whs7">
<p class="whs8">interfaceId</p></td>
<td bgcolor="#FFFFFF" width="81.58%" class="whs9">
<p>Interface ID of a provisioned interface.</p></td></tr>

<tr>
<td bgcolor="#FFFFFF" width="18.42%" class="whs7">
<p class="whs8">channel_loc</p></td>
<td bgcolor="#FFFFFF" width="81.58%" class="whs9">
<p>HDLC channel location for which you want to obtain the statistics.</p>
<p class=Example>typedef&nbsp;union&nbsp;_NMS_GR303_CHANNEL_LOCATION_T<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;struct&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;&nbsp;boardNb;<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;&nbsp;trunkNb;<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;&nbsp;timeslotNb;<br>
&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;CG;<br>
}NMS_GR303_CHANNEL_LOCATION_T</p>
<p>See the <a href="#Details">Details</a> section for field descriptions.</p></td></tr>

<tr>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="18.42%" class="whs7">
<p class="whs8">channel_stat</p></td>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="81.58%" class="whs9">
<p>Pointer to an application statistics buffer to receive the following 
 structure for channel transmit and receive statistics:</p>
<p class=Example>typedef&nbsp;struct&nbsp;{<br>
&nbsp;&nbsp;DWORD&nbsp;Size;&nbsp;&nbsp;/*&nbsp;Size&nbsp;of&nbsp;structure&nbsp;&nbsp;&nbsp;*/<br>
&nbsp;&nbsp;CHANNEL_STATISTICS_RECEIVE_T&nbsp;&nbsp;chan_stat_rx;<br>
&nbsp;&nbsp;CHANNEL_STATISTICS_TRANSMIT_T&nbsp;chan_stat_tx;<br>
}&nbsp;NMS_GR303_CHANNEL_STATISTICS_T;<br>
<br>
typedef&nbsp;struct&nbsp;{<br>
&nbsp;&nbsp;DWORD&nbsp;Octets;<br>
&nbsp;&nbsp;DWORD&nbsp;Frames;<br>
&nbsp;&nbsp;DWORD&nbsp;Drops;<br>
&nbsp;&nbsp;DWORD&nbsp;FifoOverruns;<br>
&nbsp;&nbsp;DWORD&nbsp;Aborts;<br>
&nbsp;&nbsp;DWORD&nbsp;CrcErrors;<br>
&nbsp;&nbsp;DWORD&nbsp;NonAlignedOctets;<br>
&nbsp;&nbsp;DWORD&nbsp;BufferOverflows;<br>
&nbsp;&nbsp;DWORD&nbsp;MaxFrameLengthViolCnt1;<br>
}&nbsp;CHANNEL_STATISTICS_RECEIVE_T;<br>
<br>
typedef&nbsp;struct&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;Octets;<br>
&nbsp;&nbsp;&nbsp; DWORD&nbsp;Frames;<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;Drops;<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;FifoUnderruns;<br>
&nbsp;&nbsp;&nbsp;&nbsp;DWORD&nbsp;FifoOverruns;<br>
}&nbsp;CHANNEL_STATISTICS_TRANSMIT_T;</p>
<p>See the <a href="#Details">Details</a> section for field descriptions.</p></td></tr>
</table><br>

<h4>Return values</h4>

<table cellpadding="5" x-use-null-cells cellspacing="0" width="100%" border="1" class="whs1">
<col class="whs10">
<col class="whs11">

<tr>
<td bgcolor="#CCCCCC" width="36.123%" class="whs12">
<p class="whs5">Return value</p></td>
<td bgcolor="#CCCCCC" width="63.877%" class="whs13">
<p class="whs5">Description</p></td></tr>

<tr>
<td bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_SUCCESS</p></td>
<td bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p>&nbsp;</p></td></tr>

<tr>
<td bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_INTERNAL_FAILURE</p></td>
<td bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p>Internal failure. Refer to the trace log for more information.</p></td></tr>

<tr>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_INVALID_CHANNEL</p></td>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p>Specified HDLC channel is not provisioned on this interface.</p></td></tr>

<tr>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_INVALID_INTERFACE_ID</p></td>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p>Specified interface is not provisioned.</p></td></tr>

<tr>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_INVALID_PARMS</p></td>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p><span style="font-style: italic; font-weight: bold;"><I><B>channel_stat</B></I></span> 
 buffer pointer is NULL.</p></td></tr>

<tr>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="36.123%" class="whs14">
<p>NMSGR303_NOT_INITIALIZED</p></td>
<td colspan="1" rowspan="1" bgcolor="#FFFFFF" width="63.877%" class="whs15">
<p>NMS GR303 library was not initialized with <a href="nmsgr303initialize.html"><span 
 style="color: #0000ff;
		font-weight: bold;
		x-text-underline: off;
		/*begin!kadov{{*/ text-decoration: none; /*}}end!kadov*/ "><font color=blue ><B>NMS_GR303Initialize</B></font></span></a>.</p></td></tr>
</table><br>

<h4><a name=Details></a>Details</h4>

<p><span style="font-weight: bold;"><B>NMS_GR303GetChannelStatistics</B></span>&nbsp;returns 
 channel statistics for a specified HDLC channel within a NMS_GR303_CHANNEL_STATISTICS_T 
 structure. Applications can only obtain statistics for HDLC channels that 
 have been provisioned (with <a href="nmsgr303provisioninterface.html"><span 
 style="color: #0000ff;
		font-weight: bold;
		x-text-underline: off;
		/*begin!kadov{{*/ text-decoration: none; /*}}end!kadov*/ "><font color=blue ><B>NMS_GR303ProvisionInterface</B></font></span></a>) 
 or added (with <a href="nmsgr303modifychannellocation.html"><span style="color: #0000ff;
	font-weight: bold;
	x-text-underline: off;
	/*begin!kadov{{*/ text-decoration: none; /*}}end!kadov*/ "><font color=blue ><B>NMS_GR303ModifyChannelLocation</B></font></span></a>). 
 </p>

<p>The NMS_GR303_CHANNEL_LOCATION_T structure provides the following information: 
 </p>

<table cellpadding="5" x-use-null-cells width="100%" cellspacing="0" border="1" class="whs16">
<col class="whs17">
<col class="whs18">

<tr bgcolor="#CCCCCC" valign="top" class="whs19">
<td width="11.355%" class="whs20">
<p class="whs5">Field</p></td>
<td width="88.645%" class="whs20">
<p class="whs5">Description</p></td></tr>

<tr valign="top" class="whs21">
<td width="11.355%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >boardNb</font></span></p></td>
<td width="88.645%" class="whs20">
<p>Logical board number where an HDLC instance is located (as defined by 
 NMS OAM).</p></td></tr>

<tr valign="top" class="whs21">
<td width="11.355%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >trunkNb</font></span></p></td>
<td width="88.645%" class="whs20">
<p>Logical trunk number associated with the HDLC instance (as defined by 
 NMS OAM).</p></td></tr>

<tr valign="top" class="whs21">
<td width="11.355%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >timeslotNb</font></span></p></td>
<td width="88.645%" class="whs20">
<p>Physical timeslot number associated with the HDLC instance.</p></td></tr>
</table><br>

<p>CHANNEL_STATISTICS_RECEIVE_T returns the following information: </p>

<table cellpadding="5" x-use-null-cells width="100%" cellspacing="0" border="1" class="whs16">
<col class="whs22">
<col class="whs23">

<tr bgcolor="#CCCCCC" valign="top" class="whs19">
<td width="23.777%" class="whs20">
<p class="whs5">Field</p></td>
<td width="76.223%" class="whs20">
<p class="whs5">Description</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Octets</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Bytes received count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Frames</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Frames received count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Drops</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Frames dropped count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >FifoOverruns</font></span></p></td>
<td width="76.223%" class="whs20">
<p>FIFO overrun count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Aborts</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Receive abort count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >CrcErrors</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Receive CRC errors count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >NonAlignedOctets</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Non-aligned octets count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >BufferOverflows</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Buffer overflows count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>

<tr valign="top" class="whs21">
<td width="23.777%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >MaxFrameLengthViolCnt1</font></span></p></td>
<td width="76.223%" class="whs20">
<p>Not supported.</p></td></tr>
</table><br>

<p>CHANNEL_STATISTICS_TRANSMIT_T returns the following information: </p>

<table cellpadding="5" x-use-null-cells width="100%" cellspacing="0" border="1" class="whs16">
<col class="whs24">
<col class="whs25">

<tr bgcolor="#CCCCCC" valign="top" class="whs19">
<td width="17.503%" class="whs20">
<p class="whs5">Field</p></td>
<td width="82.497%" class="whs20">
<p class="whs5">Description</p></td></tr>

<tr valign="top" class="whs21">
<td width="17.503%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Octets</font></span></p></td>
<td width="82.497%" class="whs20">
<p>Bytes transmitted count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="17.503%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Frames</font></span></p></td>
<td width="82.497%" class="whs20">
<p>Frames transmitted count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="17.503%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >Drops</font></span></p></td>
<td width="82.497%" class="whs20">
<p>Frames dropped count.</p></td></tr>

<tr valign="top" class="whs21">
<td width="17.503%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >FifoUnderruns</font></span></p></td>
<td width="82.497%" class="whs20">
<p>FIFO underrun count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>

<tr valign="top" class="whs21">
<td width="17.503%" class="whs20">
<p><span style="color: #000000;
				font-style: normal;
				font-weight: normal;
				x-text-underline: off;
				x-text-overline: off;
				x-text-line-through: off;
				text-transform: none;
				vertical-align: baseline;
				/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=black >FifoOverruns</font></span></p></td>
<td width="82.497%" class="whs20">
<p>FIFO overrun count (not supported on CG 6100C and CG 6500C boards).</p></td></tr>
</table><br>

<h4>See also</h4>

<p><a href="nmsgr303getds1status.html"><span style="color: #0000ff;
													font-style: normal;
													font-weight: bold;
													x-text-underline: off;
													x-text-overline: off;
													x-text-line-through: off;
													text-transform: none;
													vertical-align: baseline;
													/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=blue ><B>NMS_GR303GetDS1Status</B></font></span></a>, 
 <a href="nmsgr303resetchannelstatistics.html"><span style="color: #0000ff;
															font-style: normal;
															font-weight: bold;
															x-text-underline: off;
															x-text-overline: off;
															x-text-line-through: off;
															text-transform: none;
															vertical-align: baseline;
															/*begin!kadov{{*/ text-decoration: none none none; /*}}end!kadov*/ "><font color=blue ><B>NMS_GR303ResetChannelStatistics</B></font></span></a></p>

<h4>Example</h4>

<p class=Example>void&nbsp;&nbsp;GetChannelStatistics(&nbsp;void&nbsp;)<br>
{<br>
&nbsp;&nbsp;NMS_GR303_RESULT_T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NmsResult;<br>
&nbsp;&nbsp;DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InterfaceId;<br>
&nbsp;&nbsp;NMS_GR303_CHANNEL_STATISTICS_T&nbsp;&nbsp;&nbsp;Statistics;<br>
&nbsp;&nbsp;NMS_GR303_CHANNEL_LOCATION_T&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChannelLocation;<br>
<br>
<br>
<br>
&nbsp;&nbsp;printf(&quot;NMS_GR303GetChannelStatistics:\n&quot;);<br>
<br>
&nbsp;&nbsp;/*&nbsp;Get&nbsp;parameters&nbsp;*/<br>
&nbsp;&nbsp;promptdw_nodft(&quot;Enter&nbsp;interfaceId&quot;,&nbsp;&amp;InterfaceId);<br>
<br>
&nbsp;&nbsp;printf(&quot;Enter&nbsp;channel&nbsp;location:\n&quot;);<br>
&nbsp;&nbsp;GetChannelLocationNMS(&nbsp;&amp;ChannelLocation&nbsp;);<br>
<br>
&nbsp;&nbsp;NmsResult&nbsp;=&nbsp;<span style="font-weight: bold;"><B>NMS_GR303GetChannelStatistics</B></span>&nbsp;(InterfaceId,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChannelLocation,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;Statistics);<br>
<br>
&nbsp;&nbsp;printf&nbsp;(&quot;NMS_GR303GetChannelStatistics:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Result=%s\n&quot;,PRINT_RESULT(NmsResult));<br>
<br>
&nbsp;&nbsp;if&nbsp;(NmsResult&nbsp;==&nbsp;NMSGR303_SUCCESS)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;TxOctets&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_tx.Octets);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;TxFrames&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_tx.Frames);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;TxDrops&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_tx.Drops);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;TxUnderrun&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_tx.FifoUnderruns);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;TxOverrun&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_tx.FifoOverruns);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxOctets&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.Octets);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxFrames&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.Frames);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxDrops&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.Drops);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxOverrun&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.FifoOverruns);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxAbort&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.Aborts);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxCrcError&nbsp;&nbsp;&nbsp;=%i\n&quot;,&nbsp;Statistics.chan_stat_rx.CrcErrors);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxNonAligned&nbsp;=%i\n&quot;, Statistics.chan_stat_rx.NonAlignedOctets);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;RxBufferOverflow=%i\n&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Statistics.chan_stat_rx.BufferOverflows);<br>
&nbsp;&nbsp;}<br>
<br>
}</p>

<div placeholder id="footer" class="whs26">
 <p align="center" class="whs27">&nbsp;</p>
 <p align="center" class="whs27"><script type="text/javascript" language="JavaScript1.2">var mailSubject = 'Documentation link: ' + document.title;
var mailBody = 'Link to reference this topic:%0A %0A' + location.href;
var mailDisplay = '<img src="send_link.gif" border="0" alt="Send link to this topic">'; 
document.write( 
'<a href="mailto:Enter recipient email address' 
+ '?subject=' + escape(mailSubject) 
+ '&body=' + (mailBody) 
+ '">' + mailDisplay + '</a>' 
);</script></p>
 <p align="center" class="whs28">&#169; 
 Copyright 2009 Dialogic Corporation. All rights reserved.</p>
</div>
<script type="text/javascript" language="javascript1.2">
<!--
if (window.writeIntopicBar)
	writeIntopicBar(0);
//-->
</script>
</body>
</html>

