" /> Finding no contacted numbers in OCS calling list - Genesys CTI User Forum

Author Topic: Finding no contacted numbers in OCS calling list  (Read 3773 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Finding no contacted numbers in OCS calling list
« on: January 19, 2009, 11:37:07 PM »
Advertisement
Hi guys,
One question, have any of you created a query to find which numbers (not how many) or better said, contacts, have been not contacted after the campaign have ended at the end of the day?
Thanks

Offline blakshmikanth

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: Finding no contacted numbers in OCS calling list
« Reply #1 on: January 20, 2009, 04:27:46 PM »
select count(*) from <table_name> where attempt = 0 and chain_n in (select distinct(chain_n) from <table_name>)

Cheers,
Lucky

Offline PhoneBill

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
  • It's a swingline
Re: Finding no contacted numbers in OCS calling list
« Reply #2 on: January 20, 2009, 04:58:38 PM »
Don't forget to account for any dialing filter that might be applied to the campaign calling list as well as other factors such as if you are checking after the last dial_till time. Checking after you unload the campaign will ensure there aren't any in progress as well.


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Finding no contacted numbers in OCS calling list
« Reply #3 on: January 20, 2009, 05:35:44 PM »
Yes attempt=0 will do a part, but for example, a chain_id with 3 chain_n and all 3 chains gave me No Answer will have attempt > 0 and even is not a contacted customer because we dialed and tried but no answer from remote side. Same for busy, faxes, SIT, etc.
I have a query with these values but I believe I might be missing some ideas.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Finding no contacted numbers in OCS calling list
« Reply #4 on: January 26, 2009, 09:16:05 PM »
Taking blakshmikanth query as a base I believe this can be the one:

select * from <table> where call_result!=33
and chain_id not in(select distinct chain_id from <table> where call_result=33)

What do you think?

Offline blakshmikanth

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
Re: Finding no contacted numbers in OCS calling list
« Reply #5 on: January 27, 2009, 11:01:59 AM »
Cavangro,

As you are aware, chain_id may contain 'n' records for a single contact and will return more number of records than expected.

To find the no. of contacts, I modified the query as below

select count(*) from
(
select distinct chain_id from <table> where chain_id not in
(select chain_id from <table> where call_result=33)
)

Is it helpful?

Regards,
Lucky

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Finding no contacted numbers in OCS calling list
« Reply #6 on: January 27, 2009, 05:58:52 PM »
Yes, in order to determine the ammount of customers  :D
Thanks!