Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hide in Web View


Current Date and Time

HTML
<span class="page-title-pdf">#<>How to count the number of concurrent calls on a trunk</span>



HTML
<div class="fb-like" data-href="#https://confluence.wildix.com/x/HYAbB" data-layout="button_count" data-action="recommend" data-size="large" data-show-faces="true" data-share="true"></div>

...

HTML
 <div class="lang-box-pdf">
		</div><div>
		<div class="google-lang">
			<div id="google_translate_element">
			</div>
			<script type="text/javascript">
					function googleTranslateElementInit() {
						new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'de,es,fr,it,nl', autoDisplay: false}, 'google_translate_element');
						}
			</script>
			<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
		</div>
		
		<div class="pdf-button">
			<a href="#https://confluence.wildix.com/spaces/flyingpdf/pdfpageexport.action?pageId=68911133" alt="Convert to .pdf" title="Convert to .pdf"><img src="https://confluence.wildix.com/download/attachments/14549012/pdf-button-download-wildix-documentation.png"></a>
		</div>
	</div>
</div>


Info

Document descriptionThe Article describes how to see the number of concurrent calls on a trunk by adding a tag so it is recorded in CDR-View.

Created: March 2020

Permalinkhttps://confluence.wildix.com/x/HYAbB

Table of Contents

Introduction

There might be a scenario where someone needs to know the  number of concurrent calls over a trunk. This can sometimes be important in terms of capacity planning, example; for billing purposes or just to limit/control how many concurrent calls are placed on a trunk.

This custom application can be used to provide this data in CDR-View on a call by call basis.  And of course, CDR-View could then be used to pull records for a specific time frame or filter, then sort by the tag field and locate the maximum number for the “concurrent calls” tag.

Prerequisites

There are 2 applications that are needed in order to be able to count concurrent calls, please read carefully each one.

...

Once our channels are marked (Grouped), all we have to do is count them.  That is the purpose of GROUP_COUNT application.

Dialplan Configuration

Outbound calls

As mentioned, two applications need to be used to count channels.  Probably the easiest way to do this is in the Dialplan entries that “Dial the trunk”.  Let's assume you have an entry in your  Dialplan to dial National numbers in the USA. So, for example, 1 followed by 10 digits.  With the following Dialplan you can count all concurrent calls that dialed a national number: 

...

In this example Dialplan, it will ONLY count national calls.  But of course you can choose to count all calls, international calls separately, or whatever you’d like.  You simply need to use the Set Group methodology for the group of calls that you're interested in.

Inbound calls

For inbound calls we also need to use the above mentioned applications.  Most likely the best place to put such applications is in your "main" Dialplan procedure (default Dialplan for inbound calls).  So, let's assume that your trunk has 10 DIDs and that you want to count ALL incoming calls. You would need to put something like the following in every DID entry: 

...

In the previous picture, the first 3 calls were concurrent (all 3 were active at the same time) and you can see in tags that every new incoming call made increased the count.

All calls (total concurrent calls)

In the Dialplans below, inbound and outbound calls are all grouped together.  This results in a tag that will tell you a total concurrent count on the trunk being used.  You see that this is accomplished simply by using the same label in both inbound and outbound calls. So for instance, just use Trunk instead of TrunkOUT and TrunkIN.  Example below:

...

In the previous picture only the first 2 calls are inbound and the third one was outbound. Notice however that all 3 of them were active concurrently and  were counted together.

Notes

When assigning a label to channels, please make sure the label is not used anywhere else (Call group names, Trunk names, Dialplans names  and so on). Otherwise, it could lead to incorrect counting.

...

HTML
<div class="fb-like" data-href="#https://confluence.wildix.com/x/HYAbB" data-layout="button_count" data-action="recommend" data-size="large" data-show-faces="true" data-share="true"></div>

...