TUTORIAL Tally of Concurrent Calls

deano

Member
Joined
May 26, 2008
Messages
212
Reaction score
7
This is very cool!

Only thing, how come it is reporting 5 concurrent calls. this is impossible since I only have 5 lines........!

Odd....

So, I guess, that it also looks at internal calls right?

Thanks
 

deano

Member
Joined
May 26, 2008
Messages
212
Reaction score
7
Once you get this the way you like it, i would suggest that you send it to freepbx so they can include it in the mix of reports.
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
No - it ignores internal calls. It only looks at calls originating or terminating with 7 or more digits. So, unless you're using 7-digit extensions, it should not be looking at internal calls.

Do you have any VoIP trunks?
 

deano

Member
Joined
May 26, 2008
Messages
212
Reaction score
7
no voip trunks.

So, not sure what is happening.

Do you want to see some logs?

let me know, I can send them to you offline later if you like.
 

rjefferis

New Member
Joined
Mar 27, 2008
Messages
24
Reaction score
0
This is very cool!

Only thing, how come it is reporting 5 concurrent calls. this is impossible since I only have 5 lines........!

Odd....

So, I guess, that it also looks at internal calls right?

Thanks


huh?

have i misunderstood something here, 5 calls, 5 lines. whats impossible about that?
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
As rjefferis points out, I don't think it's impossible, but I'll look at your CDRs if you'd like. PM with your contact info.
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
Version 1.0.4 of the module is available. This one shows the number of concurrent calls used over time. It also shows how much time is spent utilizing a given number of concurrent calls.

Please see this post to download the most recent version.
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
There's a new version of this module available.

In this version, I changed the definition of an "occurrences" from "any time there is a change in the given number of calls in progress" to "the number of calls which cause the concurrent number of calls to increase".

For example, using the old definition, if a call were to be made while another call was already in progress, and then the initial call ended while the second call continued, this would be counted as three "occurrences"; two occurrences with a single call, and one occurrence of two concurrent calls (since the termination of the original call would leave a single call in progress). I feel this artificially inflates the number of calls. Applying the new definition of an "occurrence", this scenario would be counted as two occurrences; one occurrence with a single call and one with two concurrent calls.

If anyone disagrees with this reinterpretation, please feel free to voice their opinion.

Please see this post to download the most recent version.
 

imekul

Member
Joined
Feb 7, 2011
Messages
97
Reaction score
2
Hopefully this doesn't sound too ignorant, but where do I go to access the module once it's installe in FreePBX? I can't seem to find it.
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
Click on the Tools tab directly underneath the FreePBX logo in the top left and "Concurrent Calls" should be listed under the Maintenance heading.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

I had a hand in building this module, on the distro I build, I use ACL access provided by FreePBX, coupled with Apache authentication overlaid over the FreePBX security, for extra security.

The presence of the .htaccess files in PBX in a Flash, and most other distros is not an issue, as .htaccess files are set to be ignored by the apache configuration.

However, where .htaccess files are enabled in the apache configuration, then the presence of them will be a problem.

Therefore I would advise that you remove the .htaccess file in this module, but be aware that it is likely that any authenticated FreePBX user, when using DB Auth or Webserver mode in FreePBX, may well be able to view the module by simply typing in the path to the module in the address bar.

The .htaccess file was an attempt to stop logged on users being able to do this. Unauthenticated people should not be able to see any part of FreePBX when in webserver or DB Auth mode.

Joe
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
So I am crystal clear, this is default FreePBX behavior,...

Hi,

In my experience, 3rd party modules all suffer from this behaviour when using DB Auth mode. However, this may be due to some setting we are forgetting when creating 3rd party modules.

To be clear, this is not an issue with distros that use Apache directory security such as PiaF, as you can go anywhere anyway, once logged in.

The only modules that likely to come with a .htaccess file would be ones that I or TShif have had a hand in developing.

Joe
 

bodywave

New Member
Joined
Dec 20, 2010
Messages
5
Reaction score
0
I put beta 4 on 3 boxes running FreePBX 2.9.0.7 and all seemed to work fine. I noticed that the Parameters seem to remember the last type of date range I used (like "Last Month") but not the Trunk nor Minimum # Length, which would be convenient.

Thanks very much for this useful tool!
 

carlosmp

Member
Joined
Jan 20, 2008
Messages
120
Reaction score
1
Loaded this b4 on a few boxes, and getting a :

You don't have permission to access /pbx/modules/concurrentcalls/concurrentcalls.php on this server.

I have already disabled modsecurity on our box, since that was thinking it was a sql injection attack, and not getting that error any longer.

Permissions on teh directory itself appear correct. Our http.conf file has:
Code:
Alias /pbx /var/www/html/admin/
DocumentRoot /var/www/html
<Directory />
        Options FollowSymLinks
        AllowOverride None
</Directory>

<directory /var/www/html/admin/>
        AllowOverride all
        Options FollowSymLinks
        order allow,deny
        allow from all
        AuthType Basic
        AuthBasicAuthoritative off
        AuthMySQLAuthoritative On
        AuthGroupFile /dev/null
        AuthUserFile /dev/null
        AuthName PBX-Administration
        AuthMySQLEnable On
        AuthMySQLHost localhost
        AuthMySQLDB asterisk
        AuthMySQLUserTable ampusers
        AuthMySQLUser asteriskuser
        AuthMySQLPassword password1
        AuthMySQLNameField username
        AuthMySQLPasswordField password_sha1
        AuthMySQLPwEncryption sha1
        Require valid-user
</directory>

Any ideas?

TIA
 

bodywave

New Member
Joined
Dec 20, 2010
Messages
5
Reaction score
0
Broken in FreePBX 2.10

This is a very handy tool. It was working great for me in FreePBX 2.9, then I decided to be brave and jump to FreePBX 2.10. Now the Concurrent Calls module shows up on the new menu bar as "Other" and it doesn't do anything. I can set parameters, and the links like "Last Week" are filling the correct values, but clicking Update produces nothing. There is never any graph.
 

Boolah

Guru
Joined
Nov 16, 2007
Messages
331
Reaction score
20
I can clean this up and get it working with FreePBX v2.10. I don't have a v2.10 system to play with so will have to build that first. I won't be able to start playing with this stuff until the end of next week, so it might be a week or two until something comes out of this. If someone else wants to pick up the ball, please post and let everyone know.
 

Members online

No members online now.

Forum statistics

Threads
25,819
Messages
167,800
Members
19,247
Latest member
abuhyder
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top