Author Topic: How to find out Campaign data  (Read 5908 times)

Offline eferreyra

  • Jr. Member
  • **
  • Posts: 78
  • Karma: 0
  • Pachu
How to find out Campaign data
« on: June 14, 2007, 01:42:46 PM »
Hi, when i login on OCS i receive an UserEvent with the Campaign status (CampaignLoaded, CampaignStarted, etc.) but if the agent has already login with the extension (AgentStatus > 0 on EventRegistered) how i can get the active Campaign data: GSW_APPLICATION_ID and GSW_CAMPAIGN_NAME ?

Thanks!



Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: How to find out Campaign data
« Reply #1 on: June 19, 2007, 04:22:03 PM »
The simples way is to logout/login agent to receive events with campaign data

Offline eferreyra

  • Jr. Member
  • **
  • Posts: 78
  • Karma: 0
  • Pachu
Re: How to find out Campaign data
« Reply #2 on: June 21, 2007, 04:53:08 PM »
Yes, but still had a problem if there is 2 or more applications running on client each one as his own activex objects, if i logout from one the other logs out too.

Assuming i register the DN and in event registered i find out there is already a agent logged in in this dn (same im going to login) i continue with the app since there is really no problem about that, but...

in this case how to find out campaign data ?

One alternative is on the first event received from OCM (including ringing of an OutBound call) i receive the full campaign data...

Thanks
Pachu

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: How to find out Campaign data
« Reply #3 on: June 22, 2007, 08:39:44 AM »
There is alternative, but rather nesty one. You need to connect to configuration server, get all campaigns, get groups for those campaigns that agent belongs and then connect to OCS and check which campaigns are running. Sample code in .NET can be found on Genesys DevZone forum.

Paul

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1416
  • Karma: 18
Re: How to find out Campaign data
« Reply #4 on: July 09, 2007, 01:57:41 AM »
I am surprised you cannot query it, even if it IS indirectly! Let me dig around and see... I suspect some sort of action that would force a reply from OCS would be sufficient...

Offline eferreyra

  • Jr. Member
  • **
  • Posts: 78
  • Karma: 0
  • Pachu
Re: How to find out Campaign data
« Reply #5 on: July 10, 2007, 07:12:25 PM »
Hi victor, i think in tthat too, but i have almost no documentation to work, anyway when receiving a OutBound call from OCM i receive campaign data too, and i reschedule or handle the record with all of his UserData, including the campaign data, but for UI reasons i would like to request campaign data at any moment...