<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Call Quota</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5258303" />
  <subtitle>Call Quota</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5258303</id>
  <updated>2013-05-24T09:13:47Z</updated>
  <dc:date>2013-05-24T09:13:47Z</dc:date>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5714932" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5714932</id>
    <updated>2012-05-11T15:37:36Z</updated>
    <published>2012-05-11T15:37:36Z</published>
    <summary type="html">Well Mark, I searched it and found mentioned link.....Its not supported on RCD &amp; termination call detail table as there are some sql bulk upload query running in background and also risky as you are playing with your live HDS tables.....

http://ciscosupport45.solutionset.com/thread/271622

I am feeling RIP :)</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-05-11T15:37:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5714666" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5714666</id>
    <updated>2012-05-11T13:16:10Z</updated>
    <published>2012-05-11T13:16:10Z</published>
    <summary type="html">[quote]@Mark,

We are moving this mechanism in our production but we are facing issue as the table Route_Call_DetailTmp1 table doesnt copy the desired data in other table, no error no response. we put trigger on Router_Call_DetailTmp1 table. 
We test this scenario by creating two different tables and it works but it doesnt work with Route_Call_DetailTmp1.

Any idea ????[/quote]

Hmm, an interesting issue but I'm not sure I'd be able to recommend a fix without playing around with it.  If it help (and you may already know this), tables Route_Call_DetailTmp1 and Route_Call_DetailTmp2 are written to first and the Route_Call_Detail view is then updated.  Perhaps you could use a trigger off the view instead, not sure if that would work.
 
Also check the DBWORKER process on the CallLogger at FFFF tracing levels to see if it gives you any clues.
 
 
Good luck
MT
 
 
 
Mark Tindal
Engineering Manager
JAMIP</summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-05-11T13:16:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5713472" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5713472</id>
    <updated>2012-05-11T12:23:24Z</updated>
    <published>2012-05-11T12:23:24Z</published>
    <summary type="html">@Mark,

We are moving this mechanism in our production but we are facing issue as the table Route_Call_DetailTmp1 table doesnt copy the desired data in other table, no error no response. we put trigger on Router_Call_DetailTmp1 table. 
We test this scenario by creating two different tables and it works but it doesnt work with Route_Call_DetailTmp1.

Any idea ????</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-05-11T12:23:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5430415" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5430415</id>
    <updated>2012-04-10T09:34:55Z</updated>
    <published>2012-04-10T09:34:55Z</published>
    <summary type="html">[quote]Hey Mark, GLAD to announce that i have successfully implement call quota in our enviornment. It work exactly you define. It require good knowledge of SQL and Scripting. Thanks again.....[/quote]
 
 
Hi Farhan, very pleased to hear you got it working, glad to be of help.
 
 
 
 
 
 
Mark Tindal
Engineering Manager
JAMIP (Kcom)</summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-04-10T09:34:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5424646" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5424646</id>
    <updated>2012-04-09T13:56:28Z</updated>
    <published>2012-04-09T13:56:28Z</published>
    <summary type="html">Hey Mark, GLAD to announce that i have successfully implement call quota in our enviornment. It work exactly you define. It require good knowledge of SQL and Scripting. Thanks again.....</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-04-09T13:56:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262900" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262900</id>
    <updated>2012-03-08T12:01:14Z</updated>
    <published>2012-03-08T12:01:14Z</published>
    <summary type="html">Marvelous Thanks Mark......</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-03-08T12:01:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262895" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262895</id>
    <updated>2012-03-08T11:59:22Z</updated>
    <published>2012-03-08T11:59:22Z</published>
    <summary type="html">Mark,  I have done what you explain. I manualy create a table insert some ANI with count detail and restrict them through script also. BUT i want to know how that table automaticaly updated as customers calls. LIKE if I call to IVR with ANI 12345 the SQL table automaticaly updated as 12345 with count 1. again i call then table updated as ANI 12345 count 2 and after reaching the threshold value i restrict it. I cant create or update the table manualy.



The ROUTE_CALL_DETAIL table gets updated automatically for each call so if you run your query every 15 minutes, it'll update your custom table using the latest data.
 
 
Regards
MT



 
 
 </summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-03-08T11:59:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262852" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262852</id>
    <updated>2012-03-08T11:49:22Z</updated>
    <published>2012-03-08T11:49:22Z</published>
    <summary type="html">[quote]Mark,  I have done what you explain. I manualy create a table insert some ANI with count detail and restrict them through script also. BUT i want to know how that table automaticaly updated as customers calls. LIKE if I call to IVR with ANI 12345 the SQL table automaticaly updated as 12345 with count 1. again i call then table updated as ANI 12345 count 2 and after reaching the threshold value i restrict it. I cant create or update the table manualy.[/quote]

The ROUTE_CALL_DETAIL table gets updated automatically for each call so if you run your query every 15 minutes, it'll update your custom table using the latest data.
 
 
Regards
MT</summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-03-08T11:49:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262805" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262805</id>
    <updated>2012-03-08T11:24:26Z</updated>
    <published>2012-03-08T11:24:26Z</published>
    <summary type="html">Mark,  I have done what you explain. I manualy create a table insert some ANI with count detail and restrict them through script also. BUT i want to know how that table automaticaly updated as customers calls. LIKE if I call to IVR with ANI 12345 the SQL table automaticaly updated as 12345 with count 1. again i call then table updated as ANI 12345 count 2 and after reaching the threshold value i restrict it. I cant create or update the table manualy.</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-03-08T11:24:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262691" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5262691</id>
    <updated>2012-03-08T10:17:34Z</updated>
    <published>2012-03-08T10:17:34Z</published>
    <summary type="html">[quote]Thanks Mark,
Yes you understand the scenario correctly.
Can you please brief more in detail related to "DTS package running on SQL" and simplify your provided solution also.... I mean how its possible that by using DB LOOKUP node in my script can count the number of hits for any CLI.[/quote]

Okay, so the DTS and the SQL code are the bits that do the couting.  Here's a step by step guide:
 
 
Create SQL code to populate a new table with all of the ANI/CLI that have called 10 times or more (pseudo code below):
 
UPDATE TABLE (TBLRESTRICT)
COUNT OF ANI SELECT FROM ROUTECALLDETAIL
GREATER THAN 10 COUNT
 
 
Create a new DTS package that runs the above code on a schedule every 15 minutes.
 
You now have a table of ANIs that have called more than 10 times
 
In your ICM script, you do a DBLOOKUP of your current ANI and if it matches one in the list (True/False) then perform whatever action in the script.
 
 
I know this is probably just as confusing but hope you get it working.
 
 
Regards
MT
 
 
Mark Tindal
Engineering Manager
JAMIP
 
 </summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-03-08T10:17:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258194" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258194</id>
    <updated>2012-03-07T18:49:34Z</updated>
    <published>2012-03-07T18:49:34Z</published>
    <summary type="html">Thanks Mark,
Yes you understand the scenario correctly.
Can you please brief more in detail related to "DTS package running on SQL" and simplify your provided solution also.... I mean how its possible that by using DB LOOKUP node in my script can count the number of hits for any CLI.</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-03-07T18:49:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258341" />
    <author>
      <name>Mark Tindal</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258341</id>
    <updated>2012-03-07T13:36:22Z</updated>
    <published>2012-03-07T13:36:22Z</published>
    <summary type="html">Hi Farah,
 
To make sure I understand your question correctly, you want to log how many times a caller has dialled your IVR script and if it exceeds 10 then you'll take an action to restrict the service?  Also assuming you have an ICM based system and not CVP standalone or UCCX IVR.
 
Assuming above is correct you have a few ways to do it, here's one:
 
Have a DTS package running on SQL that counts unique CLIs, if it finds more than 10 you populate a custom table called tblBlock with the CLI
 
Each time the call hits the script, you use a DBLookup node to interrogate the tblBlock table
If it matches then restrict
If not then carry on.
 
 
Happy to take a look at your DTS and SQL if you struggle with this bit.
 
 
Best Regards
MT
 
 
Mark Tindal
Engineering Manager
JAMIP
 
 
 
 
 
[quote]Hi All, 
I want to implement the mechanism of call quota on my IVR.
my IVR restrict CLI if i call more than 10 times a day. Need to built the mechanism.
 
Help require.
 
 
--
Farhan[/quote]</summary>
    <dc:creator>Mark Tindal</dc:creator>
    <dc:date>2012-03-07T13:36:22Z</dc:date>
  </entry>
  <entry>
    <title>Call Quota</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258302" />
    <author>
      <name>Farhan Mazhari</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5258302</id>
    <updated>2012-03-07T13:03:30Z</updated>
    <published>2012-03-07T13:03:30Z</published>
    <summary type="html">Hi All, 
I want to implement the mechanism of call quota on my IVR.
my IVR restrict CLI if i call more than 10 times a day. Need to built the mechanism.
 
Help require.
 
 
--
Farhan</summary>
    <dc:creator>Farhan Mazhari</dc:creator>
    <dc:date>2012-03-07T13:03:30Z</dc:date>
  </entry>
</feed>

