serfreeman1337 / asterlink

Asterisk integration with Bitrix24 and SuiteCRM
MIT License
27 stars 18 forks source link

Match caller ID with contact #19

Open lmercor opened 3 months ago

lmercor commented 3 months ago

Hello. I have installed the module and all works as intended. Calls are being logged on suitecrm and pop up window is popping with caller id information but I cannot match caller id phone number with contact, the phone number is being showed correctly on the logs and on the little window but nor the logs or the pop up window show contact information. I have tried different relationships with the modules and still no luck.

Any advise to make this work?

Thanks In advance Luis

serfreeman1337 commented 3 months ago

Hello.

Relationship settings example ![Screenshot 2024-04-17 at 09-03-02 SuiteCRM](https://github.com/serfreeman1337/asterlink/assets/2133936/f2b42f1d-cf83-4c03-9de2-17e0dbc0e321) (hold CTRL to select multiple phone fields)
Pop up card on suitecrm 8.6.0 ![Screenshot 2024-04-17 at 09-02-08 SuiteCRM](https://github.com/serfreeman1337/asterlink/assets/2133936/b74b99c6-0083-4ee6-8f86-0f46ce3febf9)

Make sure you don't have any trail spaces in the contact phone number.

lmercor commented 3 months ago

Those are the settings I have. I am using version 8.4.0 would that be the issue?

Relationship

![image](https://github.com/serfreeman1337/asterlink/assets/42086204/c229f4be-9ea7-4d2d-bb8a-ab99740f02d9)

Details

![image](https://github.com/serfreeman1337/asterlink/assets/42086204/13e231ac-1569-4e7d-8cf9-1885e0b63a39)

serfreeman1337 commented 3 months ago

SuiteCRM 8.4.0

Your asterlink version is also v0.5.0 ? If so, try to update public/legacy/modules/AsterLink/AsterLinkEntryPoint.php file to the recent one.

There was a bug with relationships that was fixed in v0.5.1.

lmercor commented 3 months ago

Your asterlink version is also v0.5.0 ?

Yes sir..

I have replaced the file and now the pop up does not pop

also got an error on the service

image

serfreeman1337 commented 3 months ago

Something wrong with the file.

Try to:

  1. Open AsterLinkEntryPoint.php.
  2. Press ctrl+s to download it.
  3. Replace public/legacy/modules/AsterLink/AsterLinkEntryPoint.php with it.

Line 67 should be changed from: if (!$rel['row_count']) { to: if (!count($rel['list'])) {

lmercor commented 3 months ago

My bad.... did "save as" on the previous link 😓

That did the trick. is working fine now. Thank you for your help.