Call Lookup Only including 6 characters

Status
Not open for further replies.

HD_IT

Free User
Joined
Jun 5, 2023
Messages
4
Reaction score
0
Hi,

We have an integration using the 3CX CRM API, (where our customers upload an XML to their 3CX management console).
We have been successfully using this for almost 2 years, but this week we have had a few customers where we are only receiving 6 digits of the number in the Contact Lookup stage, rather than the full phone number. We have had this issue in the past for a few customers but it has always been resolved by selecting 'Match exactly' under the contact options - however this has not resolved it for several of our customers. We have also tried selecting 'match at least x number of characters' and filling out '10' but are still getting 6 numbers rather than the full phone number.

Any suggestions on why this has suddenly started happening/how we can resolve it?
Note: This is not happening on our own 3cx system (which i had to select to post this thread) but on several of the systems of our customers

The XML Scenario is as follows: (with our url obfuscated)

<Scenario Id="" Type="REST">
<Request Url="https://our-url-here.com.au/incoming_calls?number=[Number]&amp;call_direction=[CallDirection]" RequestContentType="application/json" RequestEncoding="Json" RequestType="Get">
<Headers>
<Value Key="X-Pbx-Type">3CX</Value>
</Headers>
</Request>
<Rules>
<Rule Type="Any">contact.id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="contact.id">
<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="ContactUrl" Path="contact.url">
<Filter/>
</Variable>
</Variables>
<Outputs AllowEmpty="false">
<Output Type="ContactID" Passes="0" Value="[ContactID]"/>
<Output Type="CompanyName" Passes="0" Value="[CompanyName]"/>
<Output Type="Email" Passes="0" Value=""/>
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]"/>
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]"/>
<Output Type="EntityId" Passes="0" Value="[ContactID]"/>
<Output Type="EntityType" Passes="0" Value="Contacts"/>
</Outputs>
</Scenario>

[ATTACH type="full" width="362px"]37871[/ATTACH]
 

Attachments

  • 1697694446235.png
    1697694446235.png
    184.1 KB · Views: 10
This indicates that has been implemented in the custom template.
You need to check the template for the get requests.
 
  • Like
Reactions: edossantos
This indicates that has been implemented in the custom template.
You need to check the template for the get requests.
I included the Scenario for the GET requests in our template above, and this is the same template that we're using for our other customers where we are getting the full number
the only other reference to the number in our XML template is the following:

<Number Prefix="AsIs" MaxLength="[MaxLength]"/>

Is that MaxLength set anywhere other than the Contact Options? We could change the MaxLength to be hard coded to 11 possibly, if that might be the issue, but I don't understand why that would suddenly have become an issue...
 
I would suggest to check one of the 3CX Supported CRM templates for reference.
 
  • Like
Reactions: edossantos
The number of digits sent to the CRM during contact lookup is controlled from the Contacts options. You should set Match Exactly there. You can also check the value of the global parameter PHONEBOOK_MIN_MATCH, which is the one holding this setting.
 
Status
Not open for further replies.