now this is the logs of PSDK which allow to see the requests needed with all paramters set::
[quote]
PID:14A8, TID:000A [bdo.dll 1.0.0.2] Query object type: CFGTenant
Query filters:
Key: name, Value: Environment
PID:14A8, TID:000A [bdo.dll 1.0.0.2] next time you should call wcb_Instanciate() before !
PID:14A8, TID:000A [bdo.dll 1.0.0.2] interaction server: wcb_Instanciate(): ok
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect('tcp://demosrv.genesyslab.com:4420')
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: strUri: tcp://demosrv.genesyslab.com:4420
strClientName: SIP_Server_Place3
tenantId: 1
strPlaceName: Place_iWD
strPerson: demo
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect(): Success
PID:14A8, TID:000C [bdo.dll 1.0.0.2] ISrvAccs.cs: --- proto_Opened ---
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestAgentLogin' ('135')
message attributes:
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: SubmitMail(True)
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestSubmit' ('101')
message attributes:
attr_itx_subtype [str] = "OutboundNew"
attr_media_type [str] = "email"
attr_queue [str] = "E-Mail Out"
attr_itx_type [str] = "Outbound"
attr_tenant_id [int] = 1
attr_ref_id [int] = 3
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] reaction is removed
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: isConnected(): True
PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'RequestInsertInteraction' ('17')
message attributes:
InteractionAttributes =
EntityTypeId=EmailOut
Id=03717D2HGY2G8004
MediaTypeId=email
Status=Pending
Subject=e-mail subject by Ceritek
TenantId=1
TypeId=Outbound
SubtypeId=OutboundNew
EntityAttributes =
FromAddress=account@premier.com
FromPersonal=Thierry Brémard
ReplyToAddress=account@premier.com
ToAddresses=jones@demosrv.genesyslab.com
InteractionContent =
Content=System.Byte[]
MimeType=text/html
StructuredText=<html>structured text <b>this is bold in html in StructuredText field <b><br><i>italic</i><br> dumping InteractionContent: <pre>
Content=System.Byte[]
MimeType=text/html
StructuredText=<html>structured text <b>this is bold in html in StructuredText field <b><br><i>italic</i><br> dumping InteractionContent:
StructTextMimeType=text/html
Text=This is the e-mail body.
</pre></html>
StructTextMimeType=text/html
Text=This is the e-mail body.
ReferenceId = 1
PID:14A8, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'EventInsertInteraction' ('117')
message attributes:
InteractionId = 03717D2HGY2G8004
ReferenceId = 1
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Itx_PlaceInQueue(03717D2HGY2G8004, E-Mail Out, False)
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestChangeProperties' ('103')
message attributes:
attr_itx_id [str] = "03717D2HGY2G8004"
attr_added_prop [bstr] = KVList:
'FromAddress' [str] = "account@premier.com"
'To' [str] = "jones@demosrv.genesyslab.com"
'EmailAddress' [str] = "jones@demosrv.genesyslab.com"
'Subject' [str] = "stark test"
'DispositionCode.Key' [str] = "DispositionCode"
'DispositionCode.Label' [str] = "Disposition Code"
'DispositionCodeValues.Processed' [str] = "Processed"
'DispositionCodeValues.NeedsFollowUp' [str] = "Needs Follow-Up"
'ContactId' [str] = "0001Ba5SW8PJ0027"
attr_ref_id [int] = 4
PID:14A8, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestPlaceInQueue' ('105')
message attributes:
attr_itx_id [str] = "03717D2HGY2G8004"
attr_queue [str] = "E-Mail Out"
attr_ref_id [int] = 5
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] reaction is removed
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:14A8, TID:0010 [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
[/quote]
my mail client indicates the folowing message source once received:
[quote]
Return-Path: account@premier.com
Received: from demosrv ([192.168.0.47])
by DEMOSRV
; Wed, 22 May 2013 10:06:34 +0300
Date: Wed, 22 May 2013 10:06:34 +0300 (EEST)
From: =?utf-8?Q?Thierry_Br=C3=A9mard?= <account@premier.com>
Reply-To: account@premier.com
To: jones@demosrv.genesyslab.com
Message-ID: <03717D2HGY2G8004@premier.com>
Subject: e-mail subject by Ceritek
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_31_1949006958.1369206394220"
X-Mailer: Genesys E-Mail 8.1.201.05
------=_Part_31_1949006958.1369206394220
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
This is the e-mail body.
------=_Part_31_1949006958.1369206394220
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>structured text <b>this is bold in html in StructuredText field <b><b=
r><i>italic</i><br> dumping InteractionContent: <pre>
Content=3DSystem.Byte[]
MimeType=3Dtext/html
StructuredText=3D<html>structured text <b>this is bold in html in Structure=
dText field <b><br><i>italic</i><br> dumping InteractionContent:=20
StructTextMimeType=3Dtext/html
Text=3DThis is the e-mail body.
</pre></html>
------=_Part_31_1949006958.1369206394220--
[/quote]
this is functionnal but not optimized, some part of code must be cleaned, but at least it works.
Thierry Brémard
tbremard@ceritek.com