QueueMetrics > General Asterisk configuration

IVR Tracking

(1/2) > >>

Sandhawk:
Im currently have my IVR prompt the user to hit 1 for sales, 2 for service, 3 for other. The call then proceeds to route into a single queue.

What Im trying to do is track each incoming call by the button press

I've read through the Tracking DNIS and IVR information part of the user manual, but am having no luck.

I'm using asterisk 14 with freepbx, so Im currently modifying the extensions_additional.conf file to test and reloading the dialplan

[ext-queues]
include => ext-queues-custom
exten => 200,1,Macro(user-callerid,)
exten => 200,n,Answer
exten => 200,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 200,n,Set(__BLKVM_BASE=${EXTEN})
exten => 200,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 200,n,ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]?Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)))
exten => 200,n,Set(__NODEST=${EXTEN})
exten => 200,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
exten => 200,n,Set(__CWIGNORE=TRUE)
exten => 200,n,QueueLog(200,${UNIQUEID},NONE,INFO,IVR|${MYIVR})
exten => 200,n,Queue(200,t,,)
exten => 200,n,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 200,n,Set(__NODEST=)
exten => 200,n,Set(__CWIGNORE=)
exten => 200,n,Goto(ext-queues,200,1)
exten => 200*,1,Macro(agent-add,200,)
exten => 200**,1,Macro(agent-del,200)
exten => *45200,1,Set(QUEUENO=200)
exten => *45200,n,Goto(app-queue-toggle,s,start)


Here is the output to the queue_log file
1280689708|1280689705.10|200|NONE|INFO|IVR|


Any help is appreciated!

QueueMetrics:
You need to set the MYIVR variable to like 1,2,3.... etc so that you have a line like:


--- Quote ---1280689708|1280689705.10|200|NONE|INFO|IVR|1
--- End quote ---

Basically it all works but you always write a blank choice for IVR.

Sandhawk:
Thanks for your reply! Was an easy fix

Simply added

exten => 2,n,Set(MYIVR=Service)
 and
exten => 3,n,Set(MYIVR=Track)

to my ivr contect

QueueMetrics:
 ;D

soulrider4ever:
Hi,

I got this working, but the moment I do a new reload it overwrites the extensions_additional.conf file.  Is there some other file that I can get this to work after a reload for other things?

EDIT - Ok so I found the custom_extensions and finally figured it out and got it working lol.

Navigation

[0] Message Index

[#] Next page

Go to full version