3cx template not working

Status
Not open for further replies.

developerzeeshan

Free User
Joined
Aug 9, 2021
Messages
84
Reaction score
1
Hi sir,

I was generate the template and it was working before 3cx template was ping in the crm data was saving popup in crm was showing but now its not working even not sending request to createCall here is my template please guide me why its sudden stop working as it was working few days before

<?xml version="1.0"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="US" Name="VT Latest" Version="1" SupportsEmojis="true">
<Number Prefix="AsIs" MaxLength="[MaxLength]" />
<Connection MaxConcurrentRequests="2" />
<Parameters>
<Parameter Name="ReportCallEnabled" Type="Boolean" Editor="String" Title="Enable Call Journaling" Default="False" />
<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" EntityId="ContactID" EntityOrder="[ContactID]">
<Request Url="http://54.38.120.117/crm/search?number=[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="PhoneBusiness" Path="contact.businessphone">
<Filter />
</Variable>
<Variable Name="PhoneMobile" Path="contact.mobilephone">
<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="" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="PhoneMobile" Passes="0" Value="[PhoneMobile]" />
<Output Type="ContactUrl" Passes="0" Value="http://54.38.120.117/crm/show?ContactID=[ContactID]" />
<Output Type="EntityId" Passes="0" Value="[ContactID]" />
<Output Type="EntityType" Passes="0" Value="Contacts" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST" EntityId="ReportCall" EntityOrder="[ReportCall]">
<Request SkipIf="[IIf([ReportCallEnabled]!=True,True,[IIf([CallType]!=Inbound,True,False)])]" Url="http://54.38.120.117/crm/createCall?number=[Number]&amp;agent=[Agent]&amp;calldirection=[CallDirection]&amp;calltype=[CallType]&amp;duration=[Duration]&amp;calltext=[InboundCallText]&amp;endtime=[CallEndTimeLocal]&amp;starttime=[CallStartTimeLocal]" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Get" ResponseType="Json">
<PostValues Key="">
<Value Key="duration" Passes="1" Type="String">[Duration]</Value>
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="calltype" Passes="1" Type="String">[CallType]</Value>
<Value Key="calldirection" Passes="1" Type="String">[CallDirection]</Value>
<Value Key="agent" Passes="1" Type="String">[Agent]</Value>
<Value Key="calltext" Passes="2" Type="String">[InboundCallText]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallMissed" Type="REST" EntityId="ReportCallMissed" EntityOrder="[ReportCallMissed]">
<Request SkipIf="[IIf([ReportCallEnabled]!=True,True,[IIf([CallType]!=Missed,True,False)])]" Url="http://54.38.120.117/crm/createCall?number=[Number]&amp;agent=[Agent]&amp;calldirection=[CallDirection]&amp;calltype=[CallType]&amp;duration=[Duration]&amp;calltext=[MissedCallText]" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Get" ResponseType="Json">
<PostValues Key="">
<Value Key="duration" Passes="1" Type="String">[Duration]</Value>
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="calltype" Passes="1" Type="String">[CallType]</Value>
<Value Key="calldirection" Passes="1" Type="String">[CallDirection]</Value>
<Value Key="agent" Passes="1" Type="String">[Agent]</Value>
<Value Key="calltext" Passes="2" Type="String">[MissedCallText]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallOutbound" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallOutbound" Type="REST" EntityId="ReportCallOutbound" EntityOrder="[ReportCallOutbound]">
<Request SkipIf="[IIf([ReportCallEnabled]!=True,True,[IIf([CallType]!=Outbound,True,False)])]" Url="http://54.38.120.117/crm/createCall?number=[Number]&amp;agent=[Agent]&amp;calldirection=[CallDirection]&amp;calltype=[CallType]&amp;duration=[Duration]&amp;calltext=[OutboundCallText]&amp;endtime=[CallEndTimeLocal]&amp;starttime=[CallStartTimeLocal]" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Get" ResponseType="Json">
<PostValues Key="">
<Value Key="duration" Passes="1" Type="String">[Duration]</Value>
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="calltype" Passes="1" Type="String">[CallType]</Value>
<Value Key="calldirection" Passes="1" Type="String">[CallDirection]</Value>
<Value Key="agent" Passes="1" Type="String">[Agent]</Value>
<Value Key="calltext" Passes="2" Type="String">[OutboundCallText]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallNotanswered" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallNotanswered" Type="REST" EntityId="ReportCallNotanswered" EntityOrder="[ReportCallNotanswered]">
<Request SkipIf="[IIf([ReportCallEnabled]!=True,True,[IIf([CallType]!=Notanswered,True,False)])]" Url="http://54.38.120.117/crm/createCall?number=[Number]&amp;agent=[Agent]&amp;calldirection=[CallDirection]&amp;calltype=[CallType]&amp;duration=[Duration]&amp;calltext=[NotAnsweredOutboundCallText]" MessagePasses="0" RequestContentType="application/json" RequestEncoding="Json" RequestType="Get" ResponseType="Json">
<PostValues Key="">
<Value Key="duration" Passes="1" Type="String">[Duration]</Value>
<Value Key="phone" Passes="1" Type="String">[Number]</Value>
<Value Key="calltype" Passes="1" Type="String">[CallType]</Value>
<Value Key="calldirection" Passes="1" Type="String">[CallDirection]</Value>
<Value Key="agent" Passes="1" Type="String">[Agent]</Value>
<Value Key="calltext" Passes="2" Type="String">[NotAnsweredOutboundCallText]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="" AllowEmpty="true" />
</Scenario>
</Scenarios>
</Crm>
 
Can you provide more context information? What happened just before this stopped working? Did you apply a 3CX upgrade? Did you make any change to your web service?

In order to investigate the issue, please enable verbose logs from the 3CX Console > Dashboard > Activity Log > Settings. Then make a test call where you reproduce the issue, and check the 3cxSystemService.log file that you can download from the 3CX Console > Dashboard > Activity Log > Logs button > Instance folder.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,474
Latest member
costionofrei