- Joined
- Jul 7, 2019
- Messages
- 6
- Reaction score
- 0
Hey 
I created a custom crm integration but it looks like it is not working correctly...
issues:
- Outbound calls do not get reported
I tried now different scenarios with my phone number
But it seems like they only get reported if the number is found in our crm.
I would like to report every call, is that possible?
cheers
current xml template
I created a custom crm integration but it looks like it is not working correctly...
issues:
- Outbound calls do not get reported
I tried now different scenarios with my phone number
But it seems like they only get reported if the number is found in our crm.
I would like to report every call, is that possible?
cheers
current xml template
XML:
<?xml version="1.0"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="AT" Name="selionnew24" Version="1">
<Number Prefix="Plus" MaxLength="[MaxLength]" />
<Connection MaxConcurrentRequests="2" />
<Parameters>
<Parameter Name="ReportCallEnabled" Type="Boolean" Editor="String" Title="Enable Call Journaling" Default="True" />
<Parameter Name="apiToken" Type="String" Parent="General Configuration" Editor="String" Title="API Token" Default="APIKEY" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="" Type="REST">
<Request Url="https://DOMAIN/dev/3cx/contacts/search?number=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json">
<Headers>
<Value Key="Authorization" Passes="0" Type="String"> Token [apiToken]</Value>
</Headers>
</Request>
<Rules>
<Rule Type="Any">contacts.id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="contacts.id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="contacts.firstName">
<Filter />
</Variable>
<Variable Name="LastName" Path="contacts.lastName">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="contacts.businessPhone">
<Filter />
</Variable>
<Variable Name="ContactUrl" Path="contacts.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="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True" Url="https://DOMAIN/dev/3cx/calls/report" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="Authorization" Passes="0" Type="String"> Token [apiToken]</Value>
</Headers>
<PostValues Key="">
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="callType" Passes="1" Type="String">[CallType]</Value>
<Value Key="agent" Passes="1" Type="String">[Agent]</Value>
<Value Key="duration" Passes="1" Type="String">[[[DurationTimespan].get_TotalSeconds()].ToString("F0")]</Value>
<Value Key="start" Passes="2" Type="String">[[CallStartTimeUTC].ToString("yyyy-MM-ddTHH:mm:ssZ")]</Value>
<Value Key="end" Passes="2" Type="String">[[CallEndTimeUTC].ToString("yyyy-MM-ddTHH:mm:ssZ")]</Value>
</PostValues>
</Request>
<Variables />
<Outputs AllowEmpty="false" />
</Scenario>
</Scenarios>
</Crm>
Last edited: