Thanks for the clarification. I understand that, but there is an issue with that, when I make changes to the xml, at some point the system stops to read changes, and it looks like the chages I made does not work.
Now comes the new problem. The folowing scenario works
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]=="",True,[IIf([CallType]!=Inbound,True,False)])]" Url="http://213.91.177.131:8081/journaling" MessagePasses="0" Message="" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="duration" Passes="1" Type="String">[Duration]</Value>
<Value Key="time" Passes="1" Type="String">[DateTime]</Value>
<Value Key="calltype" Passes="1" Type="String">[CallType]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
</Scenario>
But the following and the next after that ReportCallNotanswered
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
never triggers becouse the server never returns [CallType] different from
“Inbound”,
“Outbound”.
same with
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]=="",True,[IIf([CallType]!=Notanswered,True,False)])]" Url="http://localhost:8081/reportmissed" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
I need to catch [CallType] =
“Missed”, or
“Notanswered”
Here is the part of the log when I make a call, but nobody picks up
with an error that I cant''t explain:
2024/05/09 18:45:32.141|105552|0019|Info|CHR: [CallFlowParser] Call processing started...
2024/05/09 18:45:32.143|105552|0005|Verb|Enqueue Deleted.CONNECTION.15
2024/05/09 18:45:32.143|105552|0005|Verb|Enqueue Deleted.CONNECTION.13
2024/05/09 18:45:32.143|105552|0005|Verb|CRM: call ended and contact lookup is complete, reporting call...
2024/05/09 18:45:32.143|105552|0032|Verb|Dequeue Deleted.CONNECTION.15
2024/05/09 18:45:32.143|105552|0032|Verb|Dequeue Deleted.CONNECTION.13
2024/05/09 18:45:32.143|105552|0032|Info|CRM: about to report 1 calls at maxConcurrency 2
2024/05/09 18:45:32.143|105552|0032|Verb|CRM: Triggering Call Journaling with values - CallType='Inbound' - PhoneNumber='0876******' - ContactName='TestForstName, TestLastName' - AgentExtension='800' - AgentFirstName='' - AgentLastName='' - AgentEmail='' - ContactRawData='660e4d4b316bb3b933eda155|Contacts' - StartTime='5/9/2024 3:45:23 PM' - EndTime='5/9/2024 3:45:32 PM' - EstablishedTime='5/9/2024 3:45:23 PM'
2024/05/09 18:45:32.143|105552|0032|Verb|CRM: Processing scenario 'ReportCall'.
2024/05/09 18:45:32.143|105552|0032|Verb|CRM: Creating new HttpClient with no authentication
2024/05/09 18:45:32.143|105552|0032|Verb|CRM: Performing POST request to '
http://localhost:8081/journaling' with message '{"phone":"0876******","duration":"00:08","time":"5/9/2024 6:45 PM","calltype":"Inbound"}'.
2024/05/09 18:45:32.144|105552|0032|Info|[System.Net.Http.HttpClient.Default.LogicalHandler] Start processing HTTP request POST
http://213.91.177.131:8081/journaling
2024/05/09 18:45:32.144|105552|0032|Info|[System.Net.Http.HttpClient.Default.ClientHandler] Sending HTTP request POST
http://213.91.177.131:8081/journaling
2024/05/09 18:45:32.144|105552|0005|Trac|###TRANSACTION.19 started
2024/05/09 18:45:32.144|105552|0005|Verb|Enqueue Inserted.TRANSACTION.19
2024/05/09 18:45:32.145|105552|0019|Verb|Dequeue Inserted.TRANSACTION.19
2024/05/09 18:45:32.145|105552|0005|Trac|+++TRANSACTION.19 updated - elapsed 0.9534
2024/05/09 18:45:32.145|105552|0005|Verb|Enqueue Updated.TRANSACTION.19
2024/05/09 18:45:32.145|105552|0005|Verb|Enqueue Updated.PARAMETER.1475
2024/05/09 18:45:32.145|105552|0005|Trac|CHR: [QM] Discard pending: 70d7075e8f010000_4
2024/05/09 18:45:32.145|105552|0005|Trac|Finalizing TRANSACTION.19
2024/05/09 18:45:32.145|105552|0005|Verb|Enqueue Deleted.TRANSACTION.19
2024/05/09 18:45:32.145|105552|0005|Trac|---TRANSACTION.19 finished 1.0691ms
024/05/09 18:45:33.147|105552|0032|Trac|CHR: [DBSaver] Executing SQL: CALL public.sp_chr__save_call( :start_dt, :end_dt, :is_answered, :ring_duration, :talk_duration, :q_wait_duration, :call_id )
Parameters: start_dt := '2024-05-09 18:45:23.312904', end_dt := '2024-05-09 18:45:32.138038', is_answered := false, ring_duration := '00:00:00.0744999', talk_duration := null, q_wait_duration := null, call_id := null
2024/05/09 18:45:33.150|105552|0032|Erro|CHR: Call type is invalid or not specified Unknown
2024/05/09 18:45:33.150|105552|0032|Erro|CHR: Call type is invalid or not specified Unknown
2024/05/09 18:45:33.150|105552|0032|Erro|CHR: Call type is invalid or not specified Unknown
2024/05/09 18:45:33.150|105552|0032|Erro|CHR: Call type is invalid or not specified Unknown
2024/05/09 18:45:33.150|105552|0032|Trac|CHR: [CallFlowParser] Processing Source ParticipantInfo: DN={10000}; DispName={TestLastName, TestFirstName }; FirstLastName={ }; CallerNumber={08766******}; DnClass={0 }; DnType={1 }; DIDNo={0876****** }; BillingCode={ }; BillingRateName={ }; BillingRate={ }; BillingCost={ }; BillingGroup={ }; RecordingUrl={ }; CRMContact={{