Disable overwriting existing contacts

Status
Not open for further replies.

Sebi

Forum User
Joined
Jul 1, 2019
Messages
1
Reaction score
0
Hello everyone,

I would like to use the CRM integration to log in real time which telephone calls were made and when. Works well so far.

However, if I resolve against a URL, then I have to return a contact for the phone number, which is then transferred to the phone book, or even overwrites the existing entry. But that's exactly what I don't want, how can I deactivate it?

My XML looks like this:

XML:
<?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="abc" Version="3">

  <Number Prefix="Plus" MaxLength="" />

  <Connection MaxConcurrentRequests="16" />

  <Parameters>

    <Parameter Name="SID" Type="String" Editor="String" Title="Account SID: " />

  </Parameters>

  <Authentication Type="No">

    <Value>[SID]</Value>

  </Authentication>

  <Scenarios>

    <Scenario Type="REST">

      <Request  Url="----.php?data=name&amp;sid=[SID]&amp;number=[Number]" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />

      <Rules>

        <Rule Type="Any" Ethalon="">number</Rule>

      </Rules>

      <Variables>

        <Variable Name="PhoneBusiness">number<Filter /></Variable>

        <Variable Name="FirstName">first<Filter /></Variable>

        <Variable Name="MiddleName">middle<Filter /></Variable>

        <Variable Name="LastName">last<Filter /></Variable>


      </Variables>

      <Outputs AllowEmpty="true">     

        <Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />     

        <Output Type="FirstName" Passes="0" Value="[FirstName] [MiddleName]" />

        <Output Type="LastName" Passes="0" Value="[LastName]" />

        <Output Type="ContactId" Passes="0" Value="123" />

        <Output Type="PhoneMobile" Passes="0" Value="234" />

        <Output Type="Email" Passes="0" Value="[email protected]" />

        <Output Type="ContactUrl" Passes="0" Value="----.php" />


      </Outputs>



    </Scenario>



    <Scenario Id="ReportCall" Type="REST">

      <Request  Url="----.php?number=[Number]&amp;agent=[Agent]&amp;CallType=[CallType]" RequestEncoding="Json" RequestType="Post" ResponseType="Json">

        <PostValues>

          <Value Key="Number" Passes="1" Type="String">[Number]</Value>

        </PostValues>

      </Request>

       <Outputs AllowEmpty="true" />

    </Scenario>

  </Scenarios>

</Crm>



Maybe there is a better way?

Thanks!!
 
CRM integrations work synchronizing CRM contacts to 3CX contacts. There is no way to disable this.

Another possible approach could be parsing the CDRs generated by 3CX using your own program, and send the information to your server. Here you have more information on this:
https://www.3cx.com/docs/cdr-call-data-records/
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,324
Messages
591,897
Members
165,475
Latest member
lastshadow