Can't trigger other scenarios then default

Status
Not open for further replies.

Rumen Balev

Free User
Joined
Mar 7, 2024
Messages
1
Reaction score
0
Hi there and please help. Where am I getting wrong. The CRM template attached only triggers the empty ID scenario (default), but nothing else. I need a CreateContact, ReportCallMissed, CreateContactRecord,
 

Attachments

When the call arrives to 3CX, only the contact lookup scenarios are triggered (those with empty Id). The other scenarios are triggered on specific cases, for example "CreateContactRecordFromClient" is invoked when the user creates a contact from the Web Client. Or the "ReportCall" scenario is invoked when the call ends.
 
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]==&quot;&quot;,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]==&quot;&quot;,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={{
 
Status
Not open for further replies.