What i see in java email server is an exception with a null pointer before trying to connect to smtp ( with iws sample i see inspection of udata and not in my version)
Ok, I do not post the code, i prefer to post the debut output if my requests and events in client side because you can see what i do with real content.
connection to interaction server:
[quote]
PID:1760, 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:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect(): Success
PID:1760, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: --- proto_Opened ---
PID:1760, 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:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
[/quote]
then i aks IS to give me an interaction id: ( and it gives me 0370WE2HERXFJ00B )
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: SubmitMail(False)
PID:1760, 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:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 3
attr_extension [bstr] = KVList:
'InteractionId' [str] = "0370WE2HERXFJ00B"
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 3
attr_extension [bstr] = KVList:
'InteractionId' [str] = "0370WE2HERXFJ00B"
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:1760, TID:000D [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:1760, TID:000D [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:
[/quote]
then i connect to contact server and insert interaction with content:
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: isConnected(): True
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'RequestInsertInteraction' ('17')
message attributes:
InteractionAttributes =
EntityTypeId=EmailOut
Id=0370WE2HERXFJ00B
MediaTypeId=email
Status=Pending
Subject=STARK Sample e-mail subject
TenantId=1
TypeId=Outbound
EntityAttributes =
FromAddress=account@premier.com
ToAddresses=jones@demosrv.genesyslab.com
InteractionContent =
Text=This is the e-mail body.
ReferenceId = 1
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'EventInsertInteraction' ('117')
message attributes:
InteractionId = 0370WE2HERXFJ00B
ReferenceId = 1
[/quote]
then with IS i finally send the mail to ouput queue:
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Itx_PlaceInQueue(0370WE2HERXFJ00B, E-Mail Out, False)
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestChangeProperties' ('103')
message attributes:
attr_itx_id [str] = "0370WE2HERXFJ00B"
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:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestPlaceInQueue' ('105')
message attributes:
attr_itx_id [str] = "0370WE2HERXFJ00B"
attr_queue [str] = "E-Mail Out"
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:1760, TID:000D [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:1760, TID:000D [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:1760, TID:000D [bdo.dll 1.0.0.2] reaction is removed
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
[/quote]
What is unbelievieble is that with IWS it works, I do what is suggested in the doc of genesys i do not have explicit errors... the only difference is that iws send lot more attached data, like if email server would wait for a specific field that i do not set without telling me wich field, this is my understanding.