Author Topic: IVR Tracking  (Read 5231 times)

Sandhawk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
IVR Tracking
« on: August 02, 2010, 02:42:12 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: IVR Tracking
« Reply #1 on: August 02, 2010, 11:22:26 »
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

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


Sandhawk

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IVR Tracking
« Reply #2 on: August 03, 2010, 18:29:20 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: IVR Tracking
« Reply #3 on: August 04, 2010, 09:50:58 »
 ;D

soulrider4ever

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: IVR Tracking
« Reply #4 on: October 27, 2010, 18:25:25 »
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.
« Last Edit: October 27, 2010, 21:45:11 by soulrider4ever »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: IVR Tracking
« Reply #5 on: October 28, 2010, 09:54:48 »
I think you are right :-)