BlindCallTransfer: Need for converting ConnectionId to PTS CallId

Hi,
I am an absolute newbie to Genesys. I have a legacy C++ code like this & this method is invoked on [shadow=yellow,left]EventPartyChanged [/shadow]response where the previousCallID of this event is updated by passing the connection id of the event which had occurred before EventPartyChanged. The scenario is a [shadow=yellow,left]Blind Call Transfer[/shadow] 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;

}

1 Like