- Joined
- May 12, 2020
- Messages
- 3
- Reaction score
- 1
Hello, having an issue with custom template that any outbound call is not sent to custom CRM - any inbound is fine - query to CRM will happen after call ended.
Tried to simplify the template as possible and still does not work, could you check that, please?
Tried to simplify the template as possible and still does not work, could you check that, please?
<?xml version="1.0"?>
<Crm xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Country="CZ" Name="skodadily" Version="1">
<Number Prefix="Plus" MaxLength="16" />
<Connection MaxConcurrentRequests="16" />
<Parameters>
<Parameter Name="ReportCallEnabled" Type="Boolean" Editor="String" Title="Enable Call Journaling" Default="True" />
<Parameter Name="Subject" Type="String" Parent="ReportCallEnabled" Editor="String" Title="Call Subject:" Default="3CX PhoneSystem Call" />
<Parameter Name="InboundCallText" Type="String" Parent="ReportCallEnabled" Editor="String" Title="Answered Inbound Call:" Default="[DateTime]: Answered incoming call from [Number] to [Agent] ([Duration])" />
<Parameter Name="MissedCallText" Type="String" Parent="ReportCallEnabled" Editor="String" Title="Missed Call:" Default="[DateTime]: Missed call from [Number] to [Agent]" />
<Parameter Name="OutboundCallText" Type="String" Parent="ReportCallEnabled" Editor="String" Title="Answered Outbound Call:" Default="[DateTime]: Answered outgoing call from [Agent] to [Number] ([Duration])" />
<Parameter Name="NotAnsweredOutboundCallText" Type="String" Parent="ReportCallEnabled" Editor="String" Title="Unanswered Outbound Call:" Default="[DateTime]: Unanswered outgoing call from [Agent] to [Number]" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="" Type="REST">
<Request SkipIf="" Url="https://www.url.com/api/general/client.php?phone=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">contact.id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="contact.id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="contact.firstname">
<Filter />
</Variable>
<Variable Name="LastName" Path="contact.lastname">
<Filter />
</Variable>
<Variable Name="CompanyName" Path="contact.company">
<Filter />
</Variable>
<Variable Name="Email" Path="contact.email">
<Filter />
</Variable>
<Variable Name="PhoneMobile" Path="contact.phone">
<Filter />
</Variable>
<Variable Name="CustomValue" Path="contact.last_order_id">
<Filter />
</Variable>
<Variable Name="ContactUrl" Path="contact.url">
<Filter />
</Variable>
</Variables>
<Outputs AllowEmpty="false">
<Output Type="ContactID" Passes="0" Value="[ContactID]" />
<Output Type="FirstName" Passes="0" Value="[FirstName]" />
<Output Type="LastName" Passes="0" Value="[LastName]" />
<Output Type="CompanyName" Passes="0" Value="[CompanyName]" />
<Output Type="Email" Passes="0" Value="[Email]" />
<Output Type="PhoneMobile" Passes="0" Value="[PhoneMobile]" />
<Output Type="CustomValue" Passes="0" Value="[CustomValue]" />
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall">
<Request SkipIf="[ReportCallEnabled]!=True" Url="https://www.url.com/api/3cx/call.php?phone=[Number]&agent=[Agent]&duration=[Duration]&calltype=[CallType]&date=[DateTime]" RequestType="Get" ResponseType="Json" />
</Scenario>
</Scenarios>
</Crm>