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 - kcmon

Pages: [1]
1
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.

2
Thanks for the tip.  I am now tracking the h extension and this issue seems to be fixed.

3
I am not quite understanding what you mean "while in conversation" or "while not in conversation"  It boils down to who hangs up first.  If the agent hangs up first, the call is not terminated correctly in queuemetrics.  If the customer hangs up first, the call is terminated correctly.  Currently, we have been telling our agents to allow the customer to hang up so that the numbers look correct.

As to the script getting SIGHUP, I believe this may be the case.  Since I am running Asterisk 1.2, I can't use the AGISIGHUP variable.  What harm would occur if I ignore the SIGHUP in the AGI script itself.  Will this work?

4
I am also experiencing mostly the same issue.  When we use our outbound queue and the remote party hangs up, everything gets logged correctly.  When the agent hangs up, the call never gets terminated from QM.

Here are the details.

Running Trixbox 1.1.1 and Asterisk 1.2.22

extensions_custom.conf is setup exactly as ericf has it set up.

Here is my agi-log.txt on a call where the user hangs up.

*QueueDial ---- 503*******- Zap/g4/503*******----Sat Nov  3 13:21:23 2007
*Dial Num: '503*******' Chan: 'Zap/g4/503*******' on Queue: 'q-603' Agent: 'Agent/118'*Cmd: EXEC dial "Zap/g4/503*******||g"

*  A: 200 result=0


*GetVar: 'ANSWEREDTIME' = '43'
*GetVar: 'DIALSTATUS' = 'ANSWER'
*GetVar: 'ANSWEREDTIME' = '43'
*Hangup: '0' AT: '43' DS: 'ANSWER'
*1194121290 - 1194121333 - COMPLETECALLER - 7 - 43
*Terminating

Here is my agi-log.txt where the agent hangs up.

*QueueDial ---- 503*******- Zap/g4/503*******----Sat Nov  3 13:48:55 2007
*Dial Num: '503*******' Chan: 'Zap/g4/503*******' on Queue: 'q-603' Agent: 'Agent/118'*SetVar: 'QDIALER_NUMBER' = '503*******' - 200 result=1

*SetVar: 'QDIALER_CHANNEL' = 'Zap/g4/503*******' - 200 result=1

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

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

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

Any help that you can give me in this matter would be great,

Thanks,

Pages: [1]