Author Topic: Real-life example of Tracking IVR Activity  (Read 4708 times)

wilsonchua

  • Newbie
  • *
  • Posts: 16
  • Karma: 2
    • View Profile
    • Email
Real-life example of Tracking IVR Activity
« on: March 18, 2011, 09:28:15 »
I wanted to share my experience and thank Lenz for helping me out with the tracking of the DNIS . Some of the things I did:

1. Like the earlier posts, i made the error of coding the changes in the ext-queues in the extensions_additional.conf which is always written over when a new restart is done. So i created the changes to the dialplan in the extensions_custom.conf instead.

2. Next in the extensions_custom.conf , i created a new dial plan:
[ext-queues-7201]
exten => s,1,Answer
exten => s,n,QueueLog(7201,${UNIQUEID},NONE,INFO,DID|$CALLERID(DNID)})
exten => s,n,Goto(ext-queues,7201,1)

Where i just got dead air whenever the call hit this.

3. So Lenz got in and helped with the use of the [echo] command:

 
 [ext-queues-7201]
  exten => s,1,Answer
  ; exten => s,n,QueueLog(7201,,NONE,INFO,DID)
   exten => s,n,System(echo "${EPOCH}|${UNIQUEID}|7201,NONE,INFO,DID|${FROM_DID}" >>  /var/log/asterisk/queue_log )
  ; transfer to queue
   exten => s,n,Goto(ext-queues,7201,1)
 ; end of [ext-queues-7201]
 

 And here are the results:
 
 1299673810|1299673810.12096|7201|NONE|INFO|DID|2127865XXX
 1299673818|1299673818.12097|7201|NONE|INFO|DID|2127865XXX

 
 Thanks to Lenz for your patience in working this issue through with me!!
 Wonderful Support!!!