Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - WRP

Pages: 1 2 [3] 4
31
Yes, they appear to be sending correctly. Safari for Mac still can't play the files directly from the monitor link. Only after downloading the file and then opening it in Safari from the local hard drive.

What else could the issue be?

32
Any luck with this?

33
.WAV

34
When trying to play a call recording in the Safari browser, I'm prompted with a Quicktime logo with a white question mark over it. If I download the audio recording first, it will play fine, even when opened with Safari.

In Firefox, the file plays directly from the website just fine. I believe Chrome has some issues (both of these are on a Mac).

I have a suspicion that this has to do with a MIME type not being set correctly in Tomcat or perhaps an issue with the audio URL having a ".do?<etc...>" extension, but am unsure as to how to fix it.

Any ideas? BTW, we are recording in wav49 format.

Thanks!

35
Running QueueMetrics / Re: Queuemetrics / Java - High CPU Usage
« on: March 03, 2010, 19:23:26 »
Hmm, that didn't seem to help the issue.  I changed /etc/init.d/queuemetrics to the following:

Code: [Select]
#!/bin/sh
# chkconfig: 345 20 80
# description: Starts/stops QueueMetrics' internal Tomcat

CATALINA_HOME=/usr/local/queuemetrics/tomcat; export CATALINA_HOME
JAVA_HOME=/usr/local/queuemetrics/java; export JAVA_HOME
JAVA_OPTS="-Xms1024M -Xmx1024M"
export JAVA_OPTS
TOMCAT_OWNER=root; export TOMCAT_OWNER

start() {
        echo -n "Starting QueueMetrics:  "
        su $TOMCAT_OWNER -c $CATALINA_HOME/bin/startup.sh
        sleep 2
}
stop() {
        echo -n "Stopping QueueMetrics: "
        su $TOMCAT_OWNER -c $CATALINA_HOME/bin/shutdown.sh
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        start
        ;;
  *)
        echo $"Usage: queuemetrics {start|stop|restart}"
        exit
esac

This gave it 10X the amount of memory (128MB to 1024MB).  I'm still seeing a java cpu utilization that bounces in 100% range and spikes to 250%-300%.  What is also interesting is that at night when there are no calls, it's still up there, though not quite as high.

Other ideas?

36
Go right ahead.  Hope it helps others!

37
Running QueueMetrics / Queuemetrics / Java - High CPU Usage
« on: March 02, 2010, 21:23:33 »
I've noticed via top that "java" is consistently using 100-300% CPU.  Is this normal?  It's putting a significant load on our server, which isn't handling a very large call volume.  Here are some numbers to provide perspective:

System:
2x quad core 64 bit processors (in the neighborhood of 2.2Ghz I believe)
3GB memory


Configuration:
asterisk 1.4.29 x64, queuemetrics, freepbx 2.6
Four queues, three with ~12 agents, once with 2 agents
    (sip_additional.conf formatted as SIP/[exten] to reduce cpu overhead associated with freepbx local/[exten] + dialparties.agi)

Usage:
~20 total extensions
~6 queue calls during peak hours
~8 simultaneous calls during peak hours
 
I've included a screenshot of top to show the high CPU usage of "java".  Also to note: I realized that I had about 30GB of java logs from tomcat after running queuemetrics for a little over a month.  Thinking that this level of logging might be slowing the system down, I disabled all logging.  This, unfortunately, did not make a noticeable difference.

Any advice is appreciated.  I can't imagine that queuemetrics actually runs this hot!



38
This was a bit of a hairy one.  To those interested in disabling all logging, here are the changes I made:

Code: [Select]
[root@PBX ~]# diff /usr/local/queuemetrics/tomcat/conf/server.xml.original /usr/local/queuemetrics/tomcat/conf/server.xml
163,165d162
<       <Logger className="org.apache.catalina.logger.FileLogger"
<               prefix="catalina_log." suffix=".txt"
<               timestamp="true"/>
373,376d369
<         <Logger className="org.apache.catalina.logger.FileLogger"
<                  directory="logs"  prefix="localhost_log." suffix=".txt"
<             timestamp="true"/>
<
[root@PBX ~]# diff /usr/local/queuemetrics/tomcat/bin/catalina.sh.original /usr/local/queuemetrics/tomcat/bin/catalina.sh
206d205
<   touch "$CATALINA_BASE"/logs/catalina.out
218c217
<       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
---
>       >> /dev/null 2>&1 &
230c229
<       >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
---
>       >> /dev/null 2>&1 &

39
I'm having the same problem.  We've been running queuemetrics for about two months and our tomcat logs folder has reached 32G!  This is a server that generally has three callers being serviced in a queue at any given time.  Is this a normal size?  We've been having a lot of issues with asterisk queues acting up (stuck calls, etc).  Could there be any indicators in this log file of bigger problems seeing that the size is so huge?

40
The login-logoff we do is using a built in feature of freepbx I believe. 

We dial..

*11 - logs user into device.  user is prompted for their user number and password
*12 - logs user out of device.

41
Running QueueMetrics / Re: realtime.refresh_time not working
« on: January 06, 2010, 19:43:16 »
Thanks for your response.  It's now working.  It looks like it just took some time to kick in? 

Is there a way to make the change take effect more quickly in the future?  I restarted tomcat this time, but like I mentioned, it didn't seem to take effect within the first 10 minutes or so.

42
Running QueueMetrics / realtime.refresh_time not working
« on: December 29, 2009, 20:22:53 »
I tried updating realtime.refresh_time to equal '3' instead of '18'.  I restarted queuemetrics.  The changes do not seem to have taken though.  I found a doc that recommends not going below 10 for this setting, however, I'd still expect a setting of 3 to produce a result.  Am I doing something wrong?

Thanks for your help.

43
To add static members to queues, you just type in the extensions under the respective queue in FreePBX.  This ends up creating the following config under /etc/asterisk/queues.conf:

member=Local/501@from-internal/n,0
member=Local/502@from-internal/n,0
member=Local/503@from-internal/n,0
member=Local/504@from-internal/n,0
member=Local/505@from-internal/n,0
member=Local/506@from-internal/n,0
member=Local/507@from-internal/n,0
member=Local/508@from-internal/n,0
member=Local/509@from-internal/n,0
member=Local/510@from-internal/n,0


For the device/users, I edit /etc/amportal.conf and set AMPEXTENSIONS=deviceanduser .  This then removes the 'extensions' section from FreePBX and replaces it with a 'devices' section and a 'users' section.

44
From a queue perspective, users are statically assigned.  From a 'device' perspective, users log in and out of devices (hard/soft phones).

45
Is there any way that I can achieve this?  Basically, here is our setup:

- We are using asterisk/freepbx in device+user mode instead of extension mode.
- Specific users are statically assigned to queues.
- When users come in to work, they sign into dynamic devices via asterisk.

This is how we control tracking which users answer calls, as well as limit which phones ring when no one is there to take the call.

Our customer would like to see the listing of users in the queue just for the sake of seeing them there.  Is there any modification you can think of that we can make (either in QM or *) that will allow us to keep a similar behavior as above but also show agents?

Pages: 1 2 [3] 4