QueueMetrics > Running QueueMetrics

Cluster, agent logon page problem. Remote Asterisk 1.8, shown as SIP not Local

(1/4) > >>

corkuck:
Cluster, agent logon page problem. Remote Asterisk 1.8, shown as SIP not Local

We have 55 Asterisk 1.8 Asterisk servers with thousands of phone. Been using QM for years and love it…..

What we have done is built a SIP phone (not registered/hooked up to anything) in the 1.8 Asterisk as a sip extension XXXX having the "Dial" set to Local/9XXXXXXXXXX@from-internal/n. This “Dial” is in the FreePBX SIP extension build page. This 9XXXXXXXXXX is so when you dial or call SIP XXXX it will call out PSTN to a remote queue agent. We have also built this XXXX extension into our queue, as a dynamic agent.

How we login into our QM Cluster machine using this agent/XXXX. Once logged in we make this agent XXXX, logged into our queue. Note: We are counting on the pause/up-pause in the QM Cluster agent page to work. As remote agents need this feature.

Here is the issue:
When running QM Cluster using the agent web page you log into the QM agent web page by using your agent/XXXX. Once logged in, you log your agent into the queue. The queue they are already dynamically assigned too. It all seems to work fine to this point.

Here is the problem.

You look into your remote 1.8 Asterisk you type in: asterisk -rvx 'queue show XXXX'. It shows your extension is logged into your queue as "SIP/XXXX" not "Local/XXXX".

Here is what it looks like (other than the XXXX) using the QM Cluster:
   Members:
      SIP/XXXX (dynamic) (Not in use) has taken no calls yet

Here is what it should look like (other than the XXXX) if you are not using QM Cluster:
Members:
      XXXX Some Queue (Local/XXXX@from-queue/n) (dynamic) (Not in use) has taken no calls yet

We feel this SIP/XXXX vs Local/XXXX is our problem when running 1.8 Asterisk/ FreePBX 2.9.0.12 with QM.

In your 1.8 Asterisk you can build a SIP extension XXXX with a Dial: Local/9XXXXXXXXXX@from-internal/n
This Local/9XXXXXXXXXX is so our queue calls will go out to remote agent(s) cell/Home/office across our PSTN lines. The problem is when you call the queue number, it doesn’t know your agent is logon because it’s logon as an SIP/XXXX not a Local/XXXX.

As soon as you logout your agent from the QM Cluster agent page. Then log back in using any other phone/softphone, even when using the toggle feature, *45XXXX*XXXX it logs your back correctly as shown below (other than the XXXX and Some Queue description).

XXXX Some Queue (Local/XXXX@from-queue/n) (dynamic) (Not in use) has taken no calls yet

If you try calling your queue using any logged in phone using *45XXXX*XXXX it works.

But if you logout and back in using QM Cluster agent page, it breaks it. Because 1.8 Asterisk doesn’t seem to want to see QM Cluster's SIP/XXXX. But wishes to see Local/XXXX………..

Here is the version and equipment list of the TWO machines. QM Cluster and the Asterisk/FreePBX/QM remote machine:

QM Custer is a dedicated machine shown here:

Software release:   Loway QueueMetrics - 16.10.13
B: 184 - 2017.03.23-08:34
Firefox client version:   CURRENT - Install now: Firefox – Chrome
Operating System:   O.S.: Linux - Ver: 3.10.0-514.el7.x86_64 - amd64
Java Runtime:   Version: 1.6.0_22
Vendor: Sun Microsystems Inc.
Class Version: 50.0
Java Home: /usr/local/queuemetrics/jdk1.6.0_22/jre
System path:   /usr/local/queuemetrics/tomcat/webapps/queuemetrics/WEB-INF
Storage type:   Cluster (Members: *)
Loway TPF:   Version: TPF 264p/P B:264p - 2016.11.29-16:11
Language pack:   V:2017-03-16 10:39
System time:   Java Time: 2017-06-22 13:25:05
Java Time Zone: America/Boise
MySQL Time: 2017-06-22 13:25:05.0
MySQL Time is aligned with Java Time

Here is the 1.8 Asterisk/FreePBX/QM Remote machine:

Software release:   Loway QueueMetrics - 12.5.1
B: 4015 2012-05-15 21:37
Firefox client version:   0.2.6 - Install now: Firefox - Chrome
 
 
Operating System:   O.S.: Linux - Ver: 2.6.32-220.17.1.el6.i686 - i386
Java Runtime:   Version: 1.6.0_22
Vendor: Sun Microsystems Inc.
Class Version: 50.0
Java Home: /usr/local/queuemetrics/jdk1.6.0_22/jre
System path:   /usr/local/queuemetrics/tomcat/webapps/queuemetrics/WEB-INF
Storage type:   Flat file: (/var/log/asterisk/queue_log)
Loway TPF:   Version: $Revision: 1.93 $ J:193/P B:25
Language pack:   V:2012-05-09 15:24
System time:   Java Time: 2017-06-22 13:28:59
Java Time Zone: America/Boise
MySQL Time: 2017-06-22 13:28:59.0
MySQL Time is aligned with Java Time

Thoughts? Help? Suggestion? Corrections?

/rk

mirkox:
Hi there;

actually we like to use SIP/ in order to keep everything compatible with all flavours of Asterisk (freePBX and so on); that may cause some incompatibility with built in login/logout/pause/unpause methods and other issues; basically better not mix up QM login methods with other one.
Anyway you can modify the QueueMetrics dialplan (usually /etc/asterisk/extensions_queuemetrics.conf) in order to log in the queues the kind of interface you prefer so you can make it compatible with your Asterisk implementation, (seach SIP/ in the document to see where it is used).

Remember to reload the dialplan after you save the file (asterisk -rx "dialplan reload")

corkuck:
First of all thank you, so much in helping us. We learned allot from looking into your suggested action and possible direction. In doing so this is what we found.

We looked into your thought’s about:
“Anyway you can modify the QueueMetrics dialplan (usually /etc/asterisk/extensions_queuemetrics.conf) in order to log in the queues the kind of interface you prefer so you can make it compatible with your Asterisk implementation, (seach SIP/ in the document to see where it is used).”

We found our system (1.8 Asterisk/FreePBX/QM) doesn’t appear to be using this "usually /etc/asterisk/extensions_queuemetrics.conf" file.

We found this by looking into our /etc/asterisk/extensions_queuemetrics.conf file. At the top of the file it says:

; You should modify it to fit your system.
;
; To enable this file, copy it to /etc/asterisk
; and add the line:
;   #include extensions_queuemetrics.conf
; by the end of your extensions.conf file.

So we look into our /etc/asterisk/extensions.conf file and this “#include extensions_queuemetrics.conf” is not in this file anywhere. So we are assuming we aren't using it.

Here is what is in the file:

#include extensions_override_freepbx.conf
#include extensions_additional.conf
#include extensions_custom.conf

Then we asked the question, if “mirkox” (You) are saying this is where we can change this SIP to Local, but we are not using this extensions_queuemetrics.conf file. What file are we using? And where in the heck is this file? Any help here would be enlightening to us. 

So how is it working with out using this file? But QM Cluster is adding agents and showing them as SIP/XXXX with QM Clister vs. our 1.8 Asterisk/FreePBX/QM machine, using any phone with *45XXXX*XXXX and showing Local/XXXX? How is this happening with QM seemingly not using this extensions_queuemetrics.conf file?

Any, Thoughts, Corrections, Directions, Ideas? On how to change the agent(s) added to a queue(s) to "NOT" be SIP, but to be "Local" when add agents thru the QM Cluster agent page? But also still having login/logout/pause/un-pause ability offered thru QM Cluster agent page? Thento have it show up in the 1.8 Asterisk, FreePBX, QM box as "Local" not "SIP".

Thank again for your “mirkox” help and thought's. Hoping others will do the same as we are still looking for a fix/solution answers to SIP vs Local problem.

/rk

mirkox:
Hi, in freepbx that's normally included from extensions_custom.conf (that file won't be rewritten with freepbx updates).

BTW you can verify that the dialplan is correctly included in Asterisk with:

asterisk -rx "dialplan show queuemetrics"

I'm sure you have it and that it is working because otherwise it's impossible for QM to perform actions on the PBX

Mirko

corkuck:
Thanks again “mirkox”,

You are correct the “#include extensions_queuemetrics.conf” is found I the /etc/asterisk/extensions_custom.conf. Not the /etc/asterisk/extensions_queuemetrics.conf as defined in the file at the top.

So that’s how it’s all working.  :) Thank you again for answering back.

Now we need to see how to change this extensions_queuemetrics.conf file using Local not SIP. I will start this now.

When we looked at this before, it looked as if the:

; extension 25: agent addqueuemember (for asterisk v1.4+)
exten => 25,1,Answer
exten => 25,2,NoOp( "QM: AddQueueMember (asterisk v1.4+) Agent/${AGENTCODE} on queue ${QUEUENAME} made by '${QM_LOGIN}' with prioritylabel '${QM_AGENT_PRIOLBL}' and prioritynum '${QM_AGENT_PRIONUM}'" )
exten => 25,3,AddQueueMember(${QUEUENAME},Local/${AGENTCODE}@from-internal)
exten => 25,4,Hangup

Is doing what we would like see. Or a good place to start seeing what the file is doing for some file modification to see what happens as changes are made.

Someone has, had to have done these changes already in the past, we would think.

But the plan is to post it once we get it working for others to use if and when needed.

Thoughts, Corrections, Ideas and Directions are always invited.

Thanks again.

/rk




Navigation

[0] Message Index

[#] Next page

Go to full version