- Joined
- Jan 5, 2021
- Messages
- 52
- Reaction score
- 10
Creating new thread for this issue since the old one was accidently closed.
Old Thread:
https://www.3cx.com/community/threa...-sql-during-call-reporting.86233/#post-406638
Respond back to @edossantos
"The call being recorded or not shouldn't make any change..." but I think it is. Let me explain my steps and logic.(Note that our incoming numbers are in E164 format)
My Logic:
What should happen:
Old Thread:
https://www.3cx.com/community/threa...-sql-during-call-reporting.86233/#post-406638
Respond back to @edossantos
"The call being recorded or not shouldn't make any change..." but I think it is. Let me explain my steps and logic.(Note that our incoming numbers are in E164 format)
- Be on V16
- Purge all Contacts
- Take full backup
- Open zip and review xxxxxxxx
b.xml file to make sure there is no residual data left that would potentially tie anything to a lead or contact in CRM.- Confirmed db was clean
- Install V18
- Import backup
- Add new CRM Integration xml
- Confirm that setting for digit match is set to minimum with Value of 7
- Run test lookup and confirm everything works, including pulling EntityId and EntityType as mentioned in previous thread
- Place call to a CRM test contact that has country code missing, but all other 10 digits are a match. (Greater than 7 min requirement)
- Look at Verbose logs and it pulls the contact information
- When ReportCall method is run, EntityId and EntityType are blank
- I do a partial backup so I can see what is in the "PhoneBookEntries" for the newly created PhoneBookEntry record
- I notice that the EntityId and EntityType are already in 3CX database and that phone number is also correct.
- Go into CRM and update the phone number to include country code so now all 11 digits are a perfect match
- I don't even delete the record because I'm brazen
- Place test call
- Check CRM and RecordCall works!
- Check logs and 3CX updated the existing record with the now new phone number
- Repeated this with multiple contacts and confirmed the behavior is the same.
My Logic:
What should happen:
- Call comes in
- Pull record from CRM including EntityId and EntityType based on parameters set.
- The phone number for the contact SHOULD be what 3CX sees from SIP provider, and all other data from CRM
- Then when reporting call it should match the Number for the call with the internal DB number. This should be an exact match since it is supposed to be the number pulled from the SIP provider.
- Call comes in
- Pull record from CRM including EntityId and EntityType based on parameters set.
- ALL fields are updated using CRM data, ****including the phone number****
- Then when reporting call, there is no exact match since the call [Number] is not the same as the PhoneBookEntry <AddressNumberOrData3>
