- Joined
- Feb 16, 2018
- Messages
- 3
- Reaction score
- 0
Dear 3cx-Fans,
I've created a simple crm integration like described in
https://www.3cx.com/docs/server-side-crm-template-xml-description/
https://www.3cx.com/blog/releases/crm-integration-diy/
Everything works fine the first time. The lookup works fine in test and productive use:
http://pbx:5000/api/CrmList/test?num=134567&ext=021
After a real call from outside, the contact was added to the "3cx Company Phone Book".
If the caller comes the second time, the "nice name" from phone book is displayed on the phone and softpfone,
BUT: 3cx calls every second the crm server for the entry lookup, and yes it is also found, and now add this entry another time to "3cx Company Phone Book".
I think this is a bug. I solved it, by rewriting the REST server, which saves now successfully found entries and send back a empty json response in that case. -> no second, third, fourth entry will be added.
Maybe the lookup can be configured in a different way in the settings. But there I did not found anything useful, only
CRMINT_DEFAULT
Any hint is welcome!
I've created a simple crm integration like described in
https://www.3cx.com/docs/server-side-crm-template-xml-description/
https://www.3cx.com/blog/releases/crm-integration-diy/
Everything works fine the first time. The lookup works fine in test and productive use:
http://pbx:5000/api/CrmList/test?num=134567&ext=021
After a real call from outside, the contact was added to the "3cx Company Phone Book".
If the caller comes the second time, the "nice name" from phone book is displayed on the phone and softpfone,
BUT: 3cx calls every second the crm server for the entry lookup, and yes it is also found, and now add this entry another time to "3cx Company Phone Book".
I think this is a bug. I solved it, by rewriting the REST server, which saves now successfully found entries and send back a empty json response in that case. -> no second, third, fourth entry will be added.
Maybe the lookup can be configured in a different way in the settings. But there I did not found anything useful, only
CRMINT_DEFAULT
Any hint is welcome!