- Joined
- Jan 30, 2019
- Messages
- 3
- Reaction score
- 0
Hello,
my company has given me the task to programm an interface to log incoming calls from our 3CX system on one of our servers. I tried to using a the CRM Integration and creating a XML like explaned in https://www.3cx.com/docs/crm-integration/. Currently it does nothing. Nothing to see in my script or server logs and nothing to the in the 3CX logs either.
My goal is to call a script on our servers and transfer the calling number and the called extension number.
Here is the XML I tried to use, can anyone help me find the mistake?
<?xml version="1.0"?>
<Crm xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Country="DE" Name="IncomingCall" Version="1">
<Number Prefix="Zeros" MaxLength="" />
<Connection MaxConcurrentRequests="16" />
<Parameters>
<Parameter Name="******************" Type="String" Title="ApiKey" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="LogCall">
<Request Url="https://************/incomingcall.php" Message="IncomingCall" RequestType="Post" ResponseType="Json">
<PostValues>
<Value Key="requester_id" Type="Integer">[Contact::ContactId]</Value>
<Value Key="phone">[Number]</Value>
<Value Key="description" Passes="2" If="[CallType]==Inbound">InboundCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Missed">MissedCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Outbound">OutboundCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Notanswered">NotAnweredOutboundCallText</Value>
<Value Key="source" Type="Integer">3</Value>
<Array Key="tags">
<Value>[CallType]</Value>
<Value>Call</Value>
<Value>[Agent]</Value>
</Array>
</PostValues>
</Request>
<Variables />
<Outputs Next="" AllowEmpty="true" />
</Scenario>
</Scenarios>
</Crm>
my company has given me the task to programm an interface to log incoming calls from our 3CX system on one of our servers. I tried to using a the CRM Integration and creating a XML like explaned in https://www.3cx.com/docs/crm-integration/. Currently it does nothing. Nothing to see in my script or server logs and nothing to the in the 3CX logs either.
My goal is to call a script on our servers and transfer the calling number and the called extension number.
Here is the XML I tried to use, can anyone help me find the mistake?
<?xml version="1.0"?>
<Crm xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Country="DE" Name="IncomingCall" Version="1">
<Number Prefix="Zeros" MaxLength="" />
<Connection MaxConcurrentRequests="16" />
<Parameters>
<Parameter Name="******************" Type="String" Title="ApiKey" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="LogCall">
<Request Url="https://************/incomingcall.php" Message="IncomingCall" RequestType="Post" ResponseType="Json">
<PostValues>
<Value Key="requester_id" Type="Integer">[Contact::ContactId]</Value>
<Value Key="phone">[Number]</Value>
<Value Key="description" Passes="2" If="[CallType]==Inbound">InboundCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Missed">MissedCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Outbound">OutboundCallText</Value>
<Value Key="description" Passes="2" If="[CallType]==Notanswered">NotAnweredOutboundCallText</Value>
<Value Key="source" Type="Integer">3</Value>
<Array Key="tags">
<Value>[CallType]</Value>
<Value>Call</Value>
<Value>[Agent]</Value>
</Array>
</PostValues>
</Request>
<Variables />
<Outputs Next="" AllowEmpty="true" />
</Scenario>
</Scenarios>
</Crm>