Author Topic: BlindCallTransfer: Need for converting ConnectionId to PTS CallId  (Read 3078 times)

Offline angshuman

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Hi,
I am an absolute [i][u]newbie[/u][/i] to Genesys. I have a legacy C++ code like this & this method is invoked on [b][shadow=yellow,left]EventPartyChanged [/shadow][/b]response where the previousCallID of [b]this [/b] event is updated by [b]passing [/b]the  [b]connection id [/b]of the event which had occurred [b]before [/b] [u]EventPartyChanged[/u]. The scenario is a [b][shadow=yellow,left]Blind Call Transfer[/shadow][/b] from one agent to another. I have to rewrite the same using Genesys 8 SDK in .NET ? Any insights pls ?

TIA.

tstring GetPTSCallId(const TConnectionID& genesysConnID)
{
if(IsEmptyConnectionID(genesysConnID))
return _T("");

TCHAR szCallID[CONN_ID_SIZE*2+1];
TCHAR *ptr;
int i;

// In the loop below we are deliberatelly overwriting
// the trailing \0 character from previous call of _stprintf (hence ptr+=2)
for(i=0, ptr=szCallID; i<CONN_ID_SIZE; i++, ptr+=2)
_stprintf(ptr, _T("%02x"), genesysConnID._d[i]);

return szCallID;
}

« Last Edit: July 06, 2012, 03:27:37 PM by angshuman »