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

Pages: [1]
1
Hi
I did a workaround to resolve the problem when the remote caller hangs up first.  Firstly, it seems that most of the times if the remote side hangs up first, Asterisk does no send the AGI variable back to the queueDial script and then it does not terminate properly and the call just seems to go on and on.

So I put the following line into my hang-up-call macro:

exten => s,n,System( echo "${EPOCH}|${UNIQUEID}|${QUEUENAME}|${AGENT}|COMPLETECALLER|0|${ANSWEREDTIME}" >> /var/log/asterisk/queue_log )

this line then records, into queue_log, that the call is terminated properly and queuemetrics no longer displays a call as continuing indefinitely. 
I put in 'COMPLETECALLER' as I know that I only get the error when remote hangsup first and '0' as we are not interested how long the remote party took to answer the phone.

Thanks once more for a great product
Angelo
   

2
Hi
I have replaced the name with the number, but this change had no effect.  The AGI script still does not terminate properly when the remote side hangs up.  The PSTN number that I dial is correct, I just deleted the first part for anonymity.

Is there anything else that you can suggest I look at?

Thanks in advance
Angelo

3
Hi
Below is the output from the agi-log.txt, where the remote caller hangup first.


*QueueDial ---- 3461- ZAP/g2/3461----Wed May  2 11:30:50 2007
*Dial Num: '3461' Chan: 'ZAP/g2/3461' on Queue: '2220' Agent: 'Angelo'
*SetVar: 'QDIALER_NUMBER' = '3461' - 200 result=1

*SetVar: 'QDIALER_CHANNEL' = 'ZAP/g2/3461' - 200 result=1

*SetVar: 'QDIALER_QUEUE' = '2220' - 200 result=1

*SetVar: 'QueueName' = '2220' - 200 result=1

*SetVar: 'QDIALER_AGENT' = 'Angelo' - 200 result=1


As you can see it does not log anything after the agent name, although it does dial out etc. 

I seem to think that queuemetrics does not recognise the remote hangup "beep- beep" tone and that's why it does a fail-over.   

4
Hi
I did not include all of the extensions.conf, but after the line
 
exten => s,n,Goto(s-${DIALSTATUS},1)

it continues and does the fail-over to the other pri.  So when I hit the error condition it continues on to the rest of the dialplan.
What response should I be looking for if the remote hangs up first?  I could include this response in the queueDial.agi and make it terminate properly.

5
Hi
I'm using zap channels to dial out on.  I have two pri cards in my box and one is used for outgoing calls and the other is used for incoming (published number) calls.  I have set it up so that if all my outgoing lines are in use then zap will start using the pri reserved for incoming calls. Now, when the remote side hangs up,  I get the error condition and the phone falls over to the other pri and attempts to make another call.  If, however, the agent hangs up first or I get a BUSY, NOANSWER or CANCEL, then queueDial.agi terminates properly and passes control over to the rest of my dialplan.
Thanks
Angelo

6
Hi
Have installed Queuemetrics, great product, and have inbound queues working properly. I have also setup dial-out queues and everything works properly, except that if the remote caller hangs up first then queuemetrics does not see the remote hang up and the call is displayed as being on-going and the time just keeps on increasing.  After the remote phone is hung up, the local phone will then attempt to remake the call.
Could anyone please help me solve this.  I have included a snip from my extensions.conf below.
Thanks
Angelo

exten => s,n,Set(NUM=${OUTNUM})
exten => s,n,Set(DIALSTRING=${OUT_${DIAL_TRUNK}})
exten => s,n,Set(QUEUENAME=${CALLERID(number)})
exten => s,n,Set(AGENT=${CALLERID(name)})
exten => s,n,AGI(queueDial.agi|${NUM}|${DIALSTRING}/${NUM}|${QUEUENAME}|${AGENT})
exten => s,n,Goto(s-${DIALSTATUS},1)

exten => s,n(chanfull),Noop(max channels used up)

exten => s-BUSY,1,NoOp(Dial failed due to trunk reporting BUSY - giving up)
exten => s-BUSY,2,Busy(20)

exten => s-NOANSWER,1,NoOp(Dial failed due to trunk reporting NOANSWER - giving up)
exten => s-NOANSWER,2,Playtones(congestion)
exten => s-NOANSWER,3,Congestion(20)

exten => s-CANCEL,1,NoOp(Dial failed due to trunk reporting CANCEL - giving up)
exten => s-CANCEL,2,Playtones(congestion)
exten => s-CANCEL,3,Congestion(20)

exten => _s-.,1,NoOp(Dial failed due to ${DIALSTATUS} - failing through to other trunks)

exten => h,1,Macro(hangupcall)


Pages: [1]