QueueMetrics > Outbound and QueueMetrics

Quemeterics not recognising remote caller hangup

<< < (6/7) > >>

derrickhix:
Hi guys,
Sorry to drag up such and old post, but I am also having this issue.

I am running TrixBox with * ver 1.2.23.

If the person called hangs up, the queue_log gets written to fine, If my agents initiate the hangup queue_log does not get updated with the hangup info so it appears that the call goes on forever...


here is a snippet of my agi-log.txt file from when an agent hangs up, like others who have posted it does not appear to be a complete log. *Dialed number edited*

*QueueDial ---- 4253****- ZAP/g0/4253****----Wed Jan 30 16:00:51 2008
*Dial Num: '4253677415' Chan: 'ZAP/g0/4253677415' on Queue: 'q-101' Agent: 'Agent/208'
*SetVar: 'QDIALER_NUMBER' = '4253****' - 200 result=1

*SetVar: 'QDIALER_CHANNEL' = 'ZAP/g0/4253****' - 200 result=1

*SetVar: 'QDIALER_QUEUE' = 'q-101' - 200 result=1

*SetVar: 'QueueName' = 'q-101' - 200 result=1

*SetVar: 'QDIALER_AGENT' = 'Agent/208' - 200 result=1

It seems that the previous poster was able to get around this issue by "tracking the h extension".

I do not understand this statement, could somebody point me in the right direction with what tracking an extension refers too?

kcmon:
Derrickhix

Here was my final solution to this problem.

[custom-outbound-queue]
exten => s,1,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => s,2,Macro(outbound-callerid,1)
exten => s,3,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => s,4,DeadAGI(queueDial.agi|${MY_NUM}|Zap/g4/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => s,5,Congestion
exten => h,1,System( echo "${EPOCH}|${UNIQUEID}|${QUEUENAME}|${AGENT}|COMPLETECALLER|0|${ANSWEREDTIME}" >> /var/log/asterisk/queue_log )
exten => h,2,NoOp,Epoch: ${EPOCH} UniqueID: ${UNIQUEID} QueueName: ${QUEUENAME} Agent: ${AGENT} AnsweredTime: ${ANSWEREDTIME}"
exten => h,3,Macro(hangupcall)

With it being so long ago, I am not sure if this was the only change that I made.  Give it a go and see if it works for you.

pat2man:

--- Quote from: QueueMetrics on November 04, 2007, 13:27:25 ---If anybody is using * 1.4, try the following:


--- Quote ---A locally executed AGI script will receive SIGHUP on hangup from the channel except when using DeadAGI. This can be disabled by setting the AGISIGHUP channel variable to "no" before executing the AGI application.

--- End quote ---

And see if the application behaves correctly. If you're running 1.2, this cannot be done. I believe the cause of this problem is the script receiving HANGUPs.



--- End quote ---

I am using 1.4.17 and I am getting the same error. Here is my outbound section of extensions.conf:


--- Code: ---exten => _NXXNXXXXXX,1,noop(2)
exten => _NXXNXXXXXX,n,Set(AGENT="Agent/1${CALLERID(num)}")
exten => _NXXNXXXXXX,n,Set(CALLERID(num)="5555555555")
exten => _NXXNXXXXXX,n,Set(CALLERID(name)="Intercorp")
exten => _NXXNXXXXXX,n,GotoIf($["${CDR(ACCOUNTCODE)}" = "service"]?outbound,${EXTEN},101)
exten => _NXXNXXXXXX,n,Dial(ZAP/G1/${EXTEN},60,t)
exten => _NXXNXXXXXX,n,Hangup
exten => _NXXNXXXXXX,101,Set(AGISIGHUP=no)
exten => _NXXNXXXXXX,n,AGI(queueDial.agi|${EXTEN}|ZAP/G1/${EXTEN}|service_outbound|${AGENT})
exten => _NXXNXXXXXX,n,Hangup                                     

--- End code ---

QueueMetrics:
You should try with the 'h' trick.

kayodea:
Hi Guys,

I honestly don't know if this is the right place to post this, or I should start a new post with this, but I am having similar issue.

 I get "agent/CALLERID(num)" (i.e e.g agent/1000) shown as one of the logged on agent on the realtime screen after the call have been terminated. It seems that queuemetrics is logging on the agent after the call ended. I need to stop this, as the agents are already logged on, and only needs to do "pause" with a pause code so that calls can stop coming to them, and they can make calls and then unpause to start receiving calls again, when done with making calls.

How can I stop queuemetrics from logging them on as specified above after making calls?

I use Asterisk-1.4.18 and here is what I currently do in my queuedial context.

[queuedial]
exten => _XXX.,1,Set(MY_QUE=${EXTEN:0:3})
exten => _XXX.,n,Set(MY_NUM=${EXTEN:3})
exten => _XXX.,n,Set(MY_AGENT=${CALLERID(num)})
exten => _XXX.,n,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE}
exten => _XXX.,n,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)
exten => _XXX.,n,Set(AGISIGHUP=no)
exten=>_XXX.,n,AGI(queueDial.agi|${MY_NUM}|Zap/g0/${MY_NUM}|q-${MY_QUE}|Agent/${MY_AGENT})
exten => _XXX.,n,Congestion()
exten => h,1,Hangup()

Cheers to all.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version